runtime error : FileNotFoundException on webservice call

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default runtime error : FileNotFoundException on webservice call

    Hello,

    I have got a security problem with my web service.
    When i deploy my WS on my production server, a
    FileNotFoundException is thrown.
    (see the error below)
    So, i use windows authentication without impersonation.

    I check that ASPNET has full right on "WINNT/TEMP"
    and "ASP.NET Temporary Files"...
    and other directories according to :
    [url]http://support.microsoft.com:80/support/kb/articles/q317/0/[/url]
    12.asp&NoWebContent=1&NoWebContent=1

    I try to add full rigth on "\WINNT" to ASPNET but it does
    not work...
    Then, I try to add full right on "c:" and it works now !
    It works too when ASPNET is member of administrator group.

    So, i think i forgot to add rights on a directory but
    which one ?

    (i try with the "hello world" web service but it is the
    same problem)

    Thanks..
    nono

    My error :

    System.IO.FileNotFoundException: File or assembly
    name -wyjxhpy.dll, or one of its dependencies, was not
    found.
    File name : "-wyjxhpy.dll"
    at System.Reflection.Assembly.nLoad(AssemblyName
    fileName, String codeBase, Boolean isStringized, Evidence
    assemblySecurity, Boolean throwOnFileNotFound, Assembly
    locationHint, StackCrawlMark& stackMark)
    at System.Reflection.Assembly.InternalLoad(AssemblyNa me
    assemblyRef, Boolean stringized, Evidence
    assemblySecurity, StackCrawlMark& stackMark)
    at System.Reflection.Assembly.Load(AssemblyName
    assemblyRef)
    at
    System.CodeDom.Compiler.CompilerResults.get_Compil edAssembl
    y()
    at System.Xml.Serialization.Compiler.Compile()
    at System.Xml.Serialization.TempAssembly..ctor
    (XmlMapping[] xmlMappings)
    at System.Xml.Serialization.XmlSerializer.FromMapping s
    (XmlMapping[] mappings)
    at
    System.Web.Services.Protocols.XmlReturn.GetInitial izers
    (LogicalMethodInfo[] methodInfos)
    at
    System.Web.Services.Protocols.XmlReturnWriter.GetI nitialize
    rs(LogicalMethodInfo[] methodInfos)
    at
    System.Web.Services.Protocols.MimeFormatter.GetIni tializers
    (Type type, LogicalMethodInfo[] methodInfos)
    at System.Web.Services.Protocols.HttpServerType..ctor
    (Type type)
    at
    System.Web.Services.Protocols.HttpServerProtocol.I nitialize
    ()
    at
    System.Web.Services.Protocols.ServerProtocolFactor y.Create
    (Type type, HttpContext context, HttpRequest request,
    HttpResponse response, Boolean& abortProcessing)

    Fusion log follows:
    === Pre-bind state information ===
    LOG: Where-ref bind. Location = C:\WINNT\TEMP\-wyjxhpy.dll
    LOG: Appbase = file:///E:/WEB/wwwroot/WS_extranet
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===

    LOG: Policy not being applied to reference at this time
    (private, custom, partial, or location-based assembly
    bind).
    LOG: Attempting download of new URL file:///C:/WINNT/TEMP/-
    wyjxhpy.dll.


    nono752 Guest

  2. Similar Questions and Discussions

    1. webservice call throws Channel.Security.Error
      Hello all, My flex app calls webservices hosted on the same server that hosts the .swf file of the application. Running the app in flex builder...
    2. WebService, Rational Robot and the FileNotFoundException
      Hi, I am trying to record a session script for my WinForm client application which calls WebServices for security checking and data in the...
    3. WebService DB Call Error
      Hi I call my webservice locally from a client app and have no problems connecting to database on same machine. I call the webservice on a PDA and...
    4. Inheriting from the CollectionBase causes weird Error: System.IO.FileNotFoundException
      I am having a problem exposing a class inherited from the collection base class as a webservice. If I expose the collection on a web page all works...
    5. Call COM from .NET WebService Help
      We are trying to access a COM object from our .NET WebService, but we get System.RunTime.Interopservices.COMException 0x80010105 everytime. We also...
  3. #2

    Default runtime error : FileNotFoundException on webservice call

    Hello,

    I have got a security problem with my web service.
    When i deploy my WS on my production server, a
    FileNotFoundException is thrown.
    (see the error below)
    So, i use windows authentication without impersonation.

    I check that ASPNET has full right on "WINNT/TEMP"
    and "ASP.NET Temporary Files"...
    and other directories according to :
    [url]http://support.microsoft.com:80/support/kb/articles/q317/0/[/url]
    12.asp&NoWebContent=1&NoWebContent=1

    I try to add full rigth on "\WINNT" to ASPNET but it does
    not work...
    Then, I try to add full right on "c:" and it works now !
    It works too when ASPNET is member of administrator group.

    So, i think i forgot to add rights on a directory but
    which one ?

    (i try with the "hello world" web service but it is the
    same problem)

    Thanks..
    nono

    My error :

    System.IO.FileNotFoundException: File or assembly
    name -wyjxhpy.dll, or one of its dependencies, was not
    found.
    File name : "-wyjxhpy.dll"
    at System.Reflection.Assembly.nLoad(AssemblyName fileName,
    String codeBase, Boolean isStringized, Evidence
    assemblySecurity, Boolean throwOnFileNotFound, Assembly
    locationHint, StackCrawlMark& stackMark)
    at System.Reflection.Assembly.InternalLoad(AssemblyNa me
    assemblyRef, Boolean stringized, Evidence
    assemblySecurity, StackCrawlMark& stackMark)
    at System.Reflection.Assembly.Load(AssemblyName
    assemblyRef)
    at
    System.CodeDom.Compiler.CompilerResults.get_Compil edAssembl
    y()
    at System.Xml.Serialization.Compiler.Compile()
    at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping
    [] xmlMappings)
    at System.Xml.Serialization.XmlSerializer.FromMapping s
    (XmlMapping[] mappings)
    at System.Web.Services.Protocols.XmlReturn.GetInitial izers
    (LogicalMethodInfo[] methodInfos)
    at
    System.Web.Services.Protocols.XmlReturnWriter.GetI nitialize
    rs(LogicalMethodInfo[] methodInfos)
    at
    System.Web.Services.Protocols.MimeFormatter.GetIni tializers
    (Type type, LogicalMethodInfo[] methodInfos)
    at System.Web.Services.Protocols.HttpServerType..ctor (Type
    type)
    at
    System.Web.Services.Protocols.HttpServerProtocol.I nitialize
    ()
    at
    System.Web.Services.Protocols.ServerProtocolFactor y.Create
    (Type type, HttpContext context, HttpRequest request,
    HttpResponse response, Boolean& abortProcessing)

    Fusion log follows:
    === Pre-bind state information ===
    LOG: Where-ref bind. Location = C:\WINNT\TEMP\-wyjxhpy.dll
    LOG: Appbase = file:///E:/WEB/wwwroot/WS_extranet
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===

    LOG: Policy not being applied to reference at this time
    (private, custom, partial, or location-based assembly
    bind).
    LOG: Attempting download of new URL file:///C:/WINNT/TEMP/-
    wyjxhpy.dll.
    nono752 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139