Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Without permission to write with authentication Forms

$
0
0

Hello,

I've the following issue: in the hosting where my ASP.NET 4 application is deployed, I added a change which forced us to change the IIS mode from classic to integrated. This change produced that files cannot be wrote inside application directories (in classic mode I haven't this issue). It is related to authentication Forms, if I remove the security of the site, this issue is fixed.

When try to execute the following code line, the Login Page is shown and the image is not saved  : Me.File1.PostedFile.SaveAs(HttpContext.Current.Server.MapPath("~/Resources/lala.jpeg"))

How do I fix this issue?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>