Avatar billede gulbaek Nybegynder
14. april 2003 - 22:03 Der er 2 kommentarer og
1 løsning

Access to the path "c:\inetpub\wwwroot\VBJHP\Config\DB.Config" is

Får fejl, når jeg forsøger at til gå filen DB.Config

Det er godt nok igennem en asp.net side, men regner med at fejlen ligger i opsætningen af min IIS.

Det skal siges at jeg har haft min kode til at virke, men efter at have geninstalleret windows opstod fejlen.


Her følger lige et udsnit af min fejl meddelse

Access to the path "c:\inetpub\wwwroot\VBJHP\Config\DB.Config" is denied

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\VBJHP\Config\DB.Config" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Avatar billede gulbaek Nybegynder
14. april 2003 - 22:06 #1
glemte lige at sige at jeg i samme mappe har filen NavMenu.xml liggende og den kan jeg uden problemer tilgå
Avatar billede gulbaek Nybegynder
14. april 2003 - 22:42 #2
får følgende fejl når jeg åbner filen i min browser

http://localhost/vbjhp/config/db.config

This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.config' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested Url: /vbjhp/config/db.config
Avatar billede gulbaek Nybegynder
15. april 2003 - 22:22 #3
nå fandt selv fejlen.

I C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG\Machine.Config
skulle jeg ændre processModel userName til "SYSTEM"
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Uanset kodesprog, så giver vi dig mulighederne for at udvikle det, du behøver.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester