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?