Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0.NET4
Hello
 
I create an project with MVC 2
I used this code
ServerManager smanager = new ServerManager();
Site site=smanager.Site[0];
 
I have changed my IIS 7 setting so
This is running correctly in IIS7
but in VS 2010 there is an error
 
Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions
and I don't know how to solve this
 
thank you
Posted 17-Mar-12 1:57am
Comments
sam.198979 at 14-May-13 6:01am
   
Hi, I got same error: Filename: redirection.config Error: Cannot read configuration file due to insufficient permissions But am working on Windows 8. I did't find this steps in Windows 8. 1.In Windows Explorer, locate the web.config file that is associated with the Web site. 2.Right-click the web.config file 3.Click Properties. 4.Click the Security tab, and then click Edit. 5.Click Add. 6.Enter the object name to select(example) Textbox will display for you type IIS_IUSRS and click check user button. as well IUSR then OK, it will be added in user list. Or Click Advanced then Click Find Now Button it shows all the users to you select the users from the users list. 7.Click OK. And and give permission for the users IIS_IUSRS and IUSR 8.Click to select the Read check box, and then click OK. 10.In the Web.config Properties dialog box, click OK. can any one help me. Thanks Regards sam.198979
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Apply the following cnhages in IIS7.
 
1.In Windows Explorer, locate the web.config file that is associated with the Web site.
2.Right-click the web.config file
3.Click Properties.
4.Click the Security tab, and then click Edit.
5.Click Add.
6.In the Enter the object names to select box, type computername\IIS_IUSRS, click Check Names, and then click OK.
Note Computername is a placeholder for the computer name.
7.Click to select the Read check box, and then click OK.
8.In the Web.config Properties dialog box, click OK.
  Permalink  
Comments
dkgawriya21 at 17-Mar-12 8:22am
   
Add user IIS_IUSRR and give the permissions with full control to web.config and restarted the solution but still same error...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Still, it doesn't work, then a correction to preserve security for the Web Server & System
 
You should avoid granting "This,The User" as general,generic permissions instead you grant rights to the "IUSR","IIS_USERS" at (ACLS),Server a limited level of rights of Read,Execute,List.
 
The "Network","Network Service" accounts should br added only if you have code that requires the older model,mode of database access.
 
For this CRM situation you should only apply permissions on a per directory level.
 
The "Admin" directories section of a CRM solution should have the least number of generic permissions granted at tthe (ACLS),server to prevent a brute force attack by a potential "Hacker"! The better permissions for the "Admin" section is the "Administrator","Root","Authenticated User" acounts only!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I beleive that you need to use isolatedstorage. Look at Isolated Storage in .NET to store application data[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

Apply the following Changes in IIS7.

1.In Windows Explorer, locate the web.config file that is associated with the Web site.
2.Right-click the web.config file
3.Click Properties.
4.Click the Security tab, and then click Edit.
5.Click Add.
6.Enter the object name to select(example) Textbox will display for you type IIS_IUSRS and click check user button. as well IUSR then OK, it will be added in user list. Or Click Advanced then Click Find Now Button it shows all the users to you select the users from the users list.
7.Click OK. And and give permission for the users IIS_IUSRS and IUSR
8.Click to select the Read check box, and then click OK.
10.In the Web.config Properties dialog box, click OK.
 
Note: You must give permission for these two users(IIS_IUSRS and IUSR) do very carefully
With Friendly
David
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 450
1 Sergey Alexandrovich Kryukov 370
2 Shai Vashdi 318
3 OriginalGriff 265
4 Peter Leow 171
0 Sergey Alexandrovich Kryukov 9,109
1 OriginalGriff 5,290
2 Peter Leow 4,010
3 Maciej Los 3,535
4 Abhinav S 3,263


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid