Asp.net - Give Permission In Web.config File For Users - Admin - Others?
Apr 25, 2012
I am getting confused to give permission for user's ,admin and others in web.config.
this is my web.config
[Code]...
Now i login with name neerajjadon then one new page is coming on this page i have one link button to move to another page.If i am clicking on this linkbutton then its not going to next page it is going to login page again.
View 1 Replies
ADVERTISEMENT
Dec 28, 2010
I'm having trouble with copying file with permission. In my program, my objective is just to copy a file to another directory, however I'm having some permission problems with "Access to path denied" error appearing when I run the program. I'm logged on in the computer with an Administrator account, and I kept having that error. I can manually copy the file, with UAC dialog box popping up. (I'm using Server 2008, I don't want changing UAC settings/permissions in the computer)
how can I copy a file to another directory, with an administrator permission? Is this possible? Can you give me a sample code.
Here is the code I used for copying the file.
Dim sourcefile As String = "C:Sample Path Location" & "thefile.exe"
Dim destinationfile As String = "D:Sample Path Location" & "thefile.exe"
System.IO.File.Copy(sourcefile, destinationfile)
View 4 Replies
Oct 10, 2010
i have a script with a login form that creates a folder per user with username.txt, password.txt, firstname.txt, and lastname.txt. - auto creates when creating new user.after i log in and change form i want an label showing the first and last name of the person logged in,how am i supposed to do that? is there any way to make like an "admin" form where new account applies will pop-up when "admin" log in and then either accept or reject new users?
View 8 Replies
Sep 6, 2009
I have created Installation package and installed in Admin login. When i am logging into limited user i cannot write any files which i was created as Admin user. I want to update the files from limited user account which was created from admin user.
View 2 Replies
Jun 22, 2009
I use VB.NET2005 on windows XP with NTFS, and I create an application for folder management. In this I want do.
I created folder for user. When a new windows Use login on system then create a new folder on a particular location and login use have rights for open and delete this folder.
For example on windows have to user A and B. when User A login on system then one folder will create as login user name C:A. only user A have to permission to access this folder. Who I do?
View 4 Replies
Feb 5, 2010
I am deploying my application on a 64 bit windows 7 system (setting the platform property to x86) , after the installation process the app needs to set its connection string in the config file; and this is where I am having issues, the app is not able to write to the config file if/when its located under the program files directory (no admin privileges??), the app works fine when installed on a public folder.Please let me know how to give admin or write access to my app when its installed to the default program files directory
View 2 Replies
Apr 23, 2010
I develop and maintain several VB6 applications used internally by my employer.All PCs (both my development machine and the users' workstations) run Windows XP. My normal procedure is to develop and test the application, and build an installation package (using the Package and Deployment Wizard), on my machine, and then at each user's machine do the following:
1.log on using a domain administrator account
2.uninstall any previous version of the application
3.run the installation package to install the new version of the application
4.copy the Start menu entries and desktop shortcut to Documents and SettingsAll Users, so that the application can be run by any user
5.test the new version of the application to ensure proper operation
Recently, I completed, tested and built the installation package for version 2 of a particular application.One of the significant changes in this version is the removal of a listbox control and its replacement by an MS FlexGrid control (this was necessary because the users require different items to appear in different colors, which doesn't seem possible with an ordinary listbox).In order to use the FlexGrid, I had to add MSFLXGRD. OCX to the Components... list on the Projects menu.After upgrading the six existing users to version 2, and installing it for a new seventh user, I've run into a problem I've never seen before.When I log into any of the users' machines using the same domain administrator login that I used to install the application, it runs normally.But when I log out and the machine's user logs back in, when they launch the application it always aborts with the following error as soon as the form containing the FlexGrid is opened:[code]With the machine's user logged in, I attempt to manually register the control by opening a command prompt window, making WindowsSystem32 the current directory and entering regsvr32 msflxgrd.ocx at the prompt, but that always generates this error: LoadLibrary ("msflxgrd. ocx") failed - Access is denied.
Of course, if I then log out the user and log back in with the domain administrator login, I can successfully use regsvr32 to register and unregister the control, and the application runs normally for me.I'd always thought that component registrations were system-wide, but this situation seems to call that into question.I've read elsewhere that this problem can be resolved by registering the control in the HKeyCurrent User section of the registry instead of (or in addition to) the HKeyLocalMachine section, and that I can do so by using a registry script rather than (or in addition to) regsvr32 and/or the installation package, but I have no idea of how to do so.
View 4 Replies
May 15, 2010
I'm making a speed game in VB.Net (Console Application) and users have a certain time to press a certain key. So how can I give the Console.ReadKey function a timeout without just waiting until a key was pressed?
View 2 Replies
Jun 22, 2010
I have made my program but I want to give users the option of choosing a custom color for text. I have an inputbox that works and then converts it to Color.whatever. But seeing as the user types in what they want and it is not done by the program itself it can throw exceptions.
Dim directresponse As String
Dim actualcolor As String
Dim isgood As Boolean
[code]....
That is my Sub, it will make Color.(userinput) but I need to check if Color.(userinput) is actually a color that VB.NET can understand and add set.
I have tried "System.Drawing.Color" I get told it is a type and cannot be used in this context.use System.ComponentModel.TypeDescriptor to convert it to a color and check if it is real and then set it.
View 1 Replies
Jan 24, 2010
Every time I make a application and distribute it, Vista users always have to set it as "Run as Administrator" for it to work... Is there any way to make it to where they don't need to do this?
View 3 Replies
Jul 22, 2011
So I currently have the following:
2 timers
2 labels
1st label is "Clock" this pulls the time from the users current time zone/local time
2nd label is "UTCClock" Which would be UTC time
Now I have this for the first label: clock.Text = Format(TimeOfDay, "hh:mm:ss tt")
Which would give the users current time zone/local time. As for the UTC.. how would I add in for the UTC time from where the user is located at? I did some searches.. but couldnt find what I was looking for.. IM pretty sure its not as easy as getting the users current time zone/local time.. So im assuming that Theres a "bit more" code into getting UTC time..
View 5 Replies
Jan 18, 2010
is there any tool to validate configuration file?
View 1 Replies
Jun 9, 2009
on XP Pro, IsUserRole(eUserType.Administrator) returns true, if the class is administrator, and false if it's limited...
On Vista, it returns true, if it's the first administrator account, and false for anything else... I created a second administrator account on Vista, and it shows in code as "Standard" (or limited) user, the same as if I made a "Managed Account" on Vista...
My
#Region " [IsUserRole] "
Public Enum eUserType
Administrator = 0
[Code].....
View 7 Replies
Mar 11, 2010
I'm designing a system, whereby am unable to use 2 different login authorities, which are Admin and Non-Admin. I am using VB.NET and Ms. Access and need help for the codes.I want something like, if i click on admin/non admin (with different passwords) a dialog box pops onto the screen and asks for the password. If the password is correct it should take me to the form i want. Something of this sort please.
View 9 Replies
Sep 7, 2010
I have installed Visual basic 2010 Express and SQL Sever 2008 r2 Express and when I try to make a connection using the Data Source Configuration wizard, it shows "You don't have permission to open this file. Contact the owner..." I found some similar questions at the forum but are not exactly the same problem. So I would like some help. I am running my lap as administrator.
View 1 Replies
May 17, 2011
I've written a service that runs with the credential of the user "SYSTEM", this service recursively enumerates the subdirectory of a given directory. My goal is to change the file permission of the directories enumerated. For example I want to set/unset
View 2 Replies
May 25, 2009
I have a list of users with me and I need to find out programmatically which of the users present in the list have read/write permissions on a particular folder/file.
View 2 Replies
Aug 11, 2010
I get an UnautorizedAccessException running this code:
string[] fileList = Directory.GetFiles(strDir, strExt);
The exception occurs in c:usersusernameappdata How can I check if I have access permission (to list and read files) ?
View 4 Replies
Aug 1, 2011
how you can allow vb.net to access a file/folder within a domain group and retrieves it permission setting to determine if the user have access or denied access to a certain folder?
View 2 Replies
Sep 17, 2009
I use a custom tool to translate a flat text to xml text. I then create the file, with over-write set to True. When I try to write the text to the file, I get the error. The error says "Error: Invalid procedure call or argument", "System: Access is denied." It seems like the Create command is holding the file locked, so the Write command fails.
Running in VbsEdit IDE, I can see it fail. If I copy the text which is trying to be written, and paste it into UltraEdit, then attempt to save the file there, I get the same error This is expected, because the VBScript execution is holding the file locked. It should NOT be holding it locked for the script itself, right?[code]...
View 2 Replies
Feb 27, 2009
how do I clear the permission for a certain user and also add a new user with some security permission?
View 2 Replies
Apr 3, 2009
My.Computer.FileSystem.DeleteDirectory("folder location here", FileIO.DeleteDirectoryOption.DeleteAllContents)
I created a program which was deleting a particular directory for me. The program was compiled and working. Today I run the same program...did not do any system updates and now it won't delete my specified directory. I ran tests to make sure the directory is there when testing...I keep getting access/permission errors.
I rebooted system, ran my application...still gave me error. I turned off Windows Defender...still got error. If I manually delete the directory...no problem.
Is there a way to get system permission to delete the directory? I am being given an 'access denied' error...I do not have permission. I tried running my application as administrator...no good. - VB 2008 Express - VISTA OS
View 5 Replies
Apr 10, 2012
This is a simple fragment of my code:
[Code]...
The last line throws an exception "Cannot open file" with certain end-user profiles. It works perfectly fine when executing from an Admin account. I just cannot figure out what user privileges and access settings may cause the error. Note that it also works with some end-user accounts (not admins). What missing user rights can cause this?
View 6 Replies
Feb 22, 2011
I have an issue with the Windows permission system. And every time it tries to do something that needs a windows permission (to be ran as administrator) it fails !
At the moment I was trying to implement an updater which should download a file from an ftp site but because copying a file into one of the program files folder requires a permission I am not able to do this.
View 1 Replies
Feb 20, 2008
How can I determine whether the person using my app has permission to create and write to a file in a given directory? I would prefer to not use some sort of try/catch.
View 3 Replies
Jul 15, 2009
I am currently creating dynamic SSIS packages that import/export and access data between a SQL Server and several Access DB files. (Jet files if you want to get technical.)
[Code]...
View 2 Replies
Sep 2, 2011
I need to run my program as admin because it accesses the registry on load. Well I wanted to implement a drag and drop feature but have come to find there is a access issue with running as admin and the dragenter event. Is there any known workarounds for this? I have searched all over the place.Just a side note I only need to get the file location from the item being dragged in...
View 3 Replies
Jan 8, 2010
I write an HTML file with MS Word, and use it on my application. The problem is that I need to close Word or Visual Studio in order to save the file, or compile the code, because each one reserves the file permission rights. The html file is only written by word, and only read from VS. At compile time, the file is copied to execution directory. Is there a way to give both programs simultaneous permission rights?
View 4 Replies
Mar 18, 2009
How i use to save the filesWith PictureBox1 [code]...
how can i save the files in automatic format now i wannt save the files giving file name starting form 001 to unlimited.
View 10 Replies
Oct 6, 2009
HiCan i give the mouse cursor a Icon file (image)ReagrdsalvinALK
View 4 Replies