CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Posts
    2

    Question .NET web services serialization permissions

    When serializing/deserializing an object for webservices, a proxy object is created in the c:\winnt\temp directory. If ASPNET_WP.exe's account permissions are not set properly an exception occurs because it cannot write the cs file to the directory and compile it. You get this exception...

    [FileNotFoundException: File or assembly name uvd_gwet.dll, or one of its dependencies, was not found.]
    System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
    System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
    System.Reflection.Assembly.Load(AssemblyName assemblyRef) +22
    **** rest of exception omitted ****

    The simple solution, of course, is to simply assign the correct permissions to the temp folder so ASPNET_WP.exe can write to it. The question I have is...

    Can you configure ASPNET_WP.exe to use a different folder than c:\winnt\temp to write the proxies to, that it does have correct permissions for? I've checked machine.config and security.config and have come up with nothing. Is there a way to do this???

    Thanks for your help.

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890

    Wink

    when u r locally doing its fine. but u need absolete server path
    starting from wwwroot. hv u made strong name of assembly..

    just giving some hint.

    paresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured