I'm developing an application using C# in .Net Framework 3.5. In the application I create several objects from different dll (also developed in C#) using reflection. All this objects extend an abstract class (AApplication):
private AApplication BuildApplication(string path)
{
Assembly appAssembly = Assembly.LoadFrom(path...
I have several models, for which I want to show some common icons for action links (new, details, edit, delete) and some specific ones for certain models only; these iconlinks must only be showed when the user has permission to perform the action. Permissions are decided by roles, but I'd like to abstract them, so that the explicit neede...
I'd like to set the file permissions for a copied file using a rake task.
Is this possible?
...
I am able to get the Permissions associated with a List or a Site using Permissions.GetPermissionCollection(ObjectName, ObjectType). The ObjectType parameter will accept either a Site or a List. Is there any way with the out-of-the-box webservices to get the Permissions associated with a ListItem?
I mean if I have NOT inherited the Lis...
A client is receiving a "You don't have permission to read [REPORT NAME]" error message when attempting to launch a report in a MS Access database. When I go to the “Change Owner” tab under Tools > Security > User Groups and Permissions, the owner is <unknown>. If I attempt to change the owner, I get a "You don't have permission to cha...
Googling reveals many technical details and framework/OS prerequisites, but it seems to be hard to find a source that lists the permissions that are required for installing and running a ClickOnce app.
This is especially interesting for delivering software to customers that work in large corporate networks with many security restrictio...
SETUP: SQL Server 2005 & DotNetNuke 05.01.02.
This started with me trying to install a DNN Module that had "select * from dbo.sysobjects" in it's SQL scripts. That failed with the following error:
The SELECT permission was denied on
the object 'sysobjects', database
'mssqlsystemresource', schema 'sys'.
I logged into the data...
i have used the follwing function to write data to user application folder
private void WriteToLog(string source, string method, string msg)
{
string LogFile =Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\test";
LogFile = LogFile + "\\Log.txt";
StreamWriter sw = new StreamWriter(LogFile,...
I am rolling my own blogging system and I am wondering how to determine permissions and implement them in a blogging system?
What should be the permissions for a commenter, a blogger and an admin?
What is the best way to implement them?
...
Is there a way to access the file-system outside of the current ASP.NET application, without going around giving IIS_IUSRS permissions? For example, if I wanted this line to work:
logStream = File.Open("C:\logs\app.log", FileMode.Append, FileAccess.Write, FileShare.ReadWrite);
... I'd have to normally grant read/write permission to C:...
Hi guys,
is it possible to prevent browsing of a folder contents in an ASP.NET web application other than creating a default page, say using web.config?
I would like to avoid using IIS for this if possible.
Thanks
...
I am a newbie in php, mysql. I have written a hello.php script, which I am trying to copy into /var/www directory (and will later want to open it through web browser). The problem with the same is that I am not allowed to save/write any files in /var/www despite me being the root. I tried implementing steps in this question, but I get th...
I see the following in one of my database scripts:
CREATE SCHEMA [ContosoSchema] AUTHORIZATION [ContosoDeveloper]
GO
My question:
In SQL Server 2008, what does it mean to grant a user "AUTHORIZATION" over a schema?
...
I implemented the ASP.NET security model and I am allowing/denying access to users in the web.config based on what roles they are in e.g.
<system.web>
<authorization>
<allow roles = "Admin" />
</authorization>
</system.web>
When I try and visit a page I don't have access to, it prompts me to log in but I'm already logged...
I want to have user rights split into two. Some of the policies at the client's side mention that we should have a seperate user who has only the rights to add users and nothing else, and the Site Administrator should not be able to add users.
As of now, the Site Admin is used to Add users and to manage other configuration. Can we remov...
Hi All,
I'm using Windows on my servers.
I have to periodicly download some file to SERVER1 from FTP server. And then copy those files to shared folder on SERVER2 after downloading them.
For this job, I write a PHP script and I scheduled it with CURL within .BAT file like:
c:\curl\curl.exe http://localhost/getmyfiles.php
My script ...
Hi,
I am working on a ASP.NET web application. I have this well known issue: each user can belong to one or several roles (admin, public users), and each role can have one or several permissions (can edit, can delete, can upload, etc.) and vice versa. I want to do smth like this: [http://demo.sitefinity.com/Sitefinity/Admin/Modules.aspx...
I have used the ADCCSharp.dll to check if a user exists in Active Directory. I use this in the login form of a windows application. The problem is that some users can not access the program and they are (exists) in active directory. I guess there must be some right| permissions|security problem.
How can i set rights to the dll i use? t...
I have an ASP.NET app using Windows authentication, and I'm testing for the existence of a file on a remote server.
I'm authenticating as MYDOMAIN\my.username - this works.
The file is \MYSERVER\WebShare\example.txt. This file exists. I can open it from various hosts whilst logged in as MYDOMAIN\my.username. Under Windows Explorer, the...
Hello,
I build a .NET Class Library project that accesses the mshtml.HTMLDocument when called (from JavaScript). Everything works ok on my machine since I changed the permissions in .NET Configuration for Trusted Sites to have Full access.
But for the end users I would like Internet Explorer to prompt them just like, say, Windows Upda...