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

Upload u asp.net-u

[es] :: .NET :: ASP.NET :: Upload u asp.net-u

[ Pregleda: 1769 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

almir_05
Velika Kladusa

Član broj: 117971
Poruke: 25
92.36.254.*



Profil

icon Upload u asp.net-u06.09.2009. u 13:37 - pre 150 meseci
Pozdrav kolege, treba mi hitna pomoc vezana za Upload u ASP.net, a radi se o slijedecem: normalno odradim upload i na root radi uredu ali cim postavim stranicu na server i kad hocu da upload-am javi mi gresku tipa

Server Error in '/' Application.
Access to the path '...\1.bmp' 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 '...\1.bmp' 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 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 10: {
Line 11: String strFileName = System.IO.Path.GetFileName(myUpoad.FileName);
Line 12: myUpoad.SaveAs(Server.MapPath("" + strFileName));
Line 13: this.lblText.Text = strFileName + " Uploaded.<br>";
Line 14: }


Source File: ...\Default3.aspx Line: 12

Stack Trace:

Cini mi se kao da je u pitanju zastita neka, kako to odklonuti.

Ako bi ko pomogao i ako treba platiti moze se i privatno javiti na broj +387 62 193 534, voljan sam i platiti posto mi je hitno i veoma vazno.
Hvala unaprijed
 
Odgovor na temu

pl4stik
Senior .NET programmer/Consultant
oDesk
NI na nebu NI na zemlji

Član broj: 173596
Poruke: 711
93.86.5.*

Sajt: xx-auth.com.azhar.arvixe...


+31 Profil

icon Re: Upload u asp.net-u06.09.2009. u 14:14 - pre 150 meseci
Evo lepo pise ...

Citat:
almir_05:...

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 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.

...


znaci ASP.NET account treba da ima write dozvolu
To sto nekoliko miliona ljudi tvrdi da nisi u pravu ne znaci da stvarno nisi - Frank Zappa

https://youtu.be/DLe358DPGXU
 
Odgovor na temu

almir_05
Velika Kladusa

Član broj: 117971
Poruke: 25
92.36.254.*



Profil

icon Re: Upload u asp.net-u06.09.2009. u 14:36 - pre 150 meseci
Da znam da pise ali ne znam kako da to otklonim, dali je ko imao isti problem i kako ga je rijesio.
 
Odgovor na temu

v.marko

Član broj: 26565
Poruke: 223
95.180.12.*

Sajt: www.twitter.com/marko999


Profil

icon Re: Upload u asp.net-u20.10.2009. u 19:29 - pre 149 meseci
probaj da dodas sva prava nad dirom na serveru na koji hoces da uploadujes
to bi trebalo da ti resi problem

pozdrav
Marko
 
Odgovor na temu

[es] :: .NET :: ASP.NET :: Upload u asp.net-u

[ Pregleda: 1769 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

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