Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Zasto dobijam ovu poruku od servera???????

[es] :: Web razvoj :: Zasto dobijam ovu poruku od servera???????

[ Pregleda: 1657 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

VLSE
Selakovic Vladimir
Kragujevac

Član broj: 79600
Poruke: 67
*.ptt.yu.



Profil

icon Zasto dobijam ovu poruku od servera???????31.07.2007. u 17:52 - pre 204 meseci
Server Error in '/WebApplication1' Application.
--------------------------------------------------------------------------------

Access to the path "c:\inetpub\wwwroot\WebApplication1\Entries\Entry.xml" 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\WebApplication1\Entries\Entry.xml" 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.

Source Error:


Line 70: {
Line 71: String filepath=EntryFilePath+"\\" +filename;
Line 72: FileStream file = new FileStream(filepath, FileMode.Open);
Line 73: XmlSerializer serializer=new XmlSerializer(typeof(Entry));
Line 74: Entry newEntry=(Entry)serializer.Deserialize(file);


Source File: c:\inetpub\wwwroot\webapplication1\global.asax.cs Line: 72

Stack Trace:


[UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\WebApplication1\Entries\Entry.xml" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888
System.IO.FileStream..ctor(String path, FileMode mode) +52
WebApplication1.Global.LoadEntry(String filename) in c:\inetpub\wwwroot\webapplication1\global.asax.cs:72
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
*.ptt.yu.



+257 Profil

icon Re: Zasto dobijam ovu poruku od servera???????31.07.2007. u 18:16 - pre 204 meseci
Ne znas engleski?
Sve ti lepo pise, cak i kako da resis problem.

Ako ne znas engleski... hm. Nemas prava pristupa fajlu. Ovde pise:
Citat:

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.

tj. desni klik na fajl u exporeru (ne internet vec obicnom), properties, pa security, pa add paoznacis asp.net nalog i zakacis prava pristupa.

Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

[es] :: Web razvoj :: Zasto dobijam ovu poruku od servera???????

[ Pregleda: 1657 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.