Re: File upload problem



You have to grant write permissions on the images folder to the ASPNET or whatever account your app is running under.
Peter
"Domac" <domac@xxxxxxxx> wrote in message news:ewYRcO6mIHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I want to upload *.jpg files to server using FileUpload control. Hosting is shared and administrator informed me that I have to use medium trust level to upload files. How to achieve that?

I get error:

: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.


Line 10: FileUpload1.SaveAs("\images\res\" & FileUpload1.FileName)I am new to ASP.NET ?

Thanks a lot!
Domac


.



Relevant Pages

  • Re: share permissions -- how to?
    ... that, then allow a set of groups to upload files to but not delete, ... access to shares that have their storage on NTFS. ... The share permissions are no where near as granular as ... grant Read to such as Domain Users or Authenticated ...
    (microsoft.public.win2000.security)
  • Re: USERS group has the ability to change security permissions???
    ... Please use the Advance view in the NTFS permissions dialog to ... When there is a generic grant and a special grant to the same entity ... the RESULT: user level access can change NTFS ...
    (microsoft.public.win2000.security)
  • RE: Trust level required for AppDomain.CurrentDomain.UnhandledExcept
    ... sdk) to inspect the required permissions. ... I think the ASP.NET "high" trust level doesn't include this permission by ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: DCOM Event ID 10015
    ... Grant the user permissions to start the COM component ... Run the MPSRPT_DirSvc.exe on the server box. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: NTFS woes
    ... "In some cases with a grant of Full is reduced ... NTFS permissions dialog. ... check Allow Delete Subfolders and Files ... Explicit Deny Delete on file does not work (user can still delete ...
    (microsoft.public.windows.server.security)