.Net remoting error in IIS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saumitra Kumar Paul
    New Member
    • Aug 2010
    • 12

    .Net remoting error in IIS

    Hope all you are fine.

    I am working on a .net remoting project (VS 2008). I have a .dll hosted in IIS 6 windows server 2003 r2.

    When i try to test it in internet explorer "http://localhost/hellone/test.rem", it shows the following error


    System.BadImage FormatException : The format of the file 'SimpleTest' is invalid.
    File name: "SimpleTest "
    at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
    at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef, Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
    at System.Reflecti on.Assembly.Int ernalLoad(Strin g assemblyString, Evidence assemblySecurit y, StackCrawlMark& stackMark)
    at System.Reflecti on.Assembly.Loa d(String assemblyString)
    at System.Runtime. Remoting.Remoti ngConfigInfo.Lo adType(String typeName, String assemblyName)
    at System.Runtime. Remoting.Remoti ngConfigInfo.Ge tServerTypeForU ri(String URI)
    at System.Runtime. Remoting.Remoti ngConfigHandler .GetServerTypeF orUri(String URI)
    at System.Runtime. Remoting.Remoti ngServices.GetS erverTypeForUri (String URI)
    at System.Runtime. Remoting.Channe ls.Http.HttpRem otingHandler.Ca nServiceRequest (HttpContext context)
    at System.Runtime. Remoting.Channe ls.Http.HttpRem otingHandler.In ternalProcessRe quest(HttpConte xt context)

    === Pre-bind state information ===
    LOG: DisplayName = SimpleTest
    (Partial)
    LOG: Appbase = file:///C:/Inetpub/wwwroot/hellonef
    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: Post-policy reference: SimpleTest
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/hellone/2207b454/8ab974a1/SimpleTest.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/hellone/2207b454/8ab974a1/SimpleTest/SimpleTest.DLL.
    LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/hellonef/bin/SimpleTest.DLL.


    I beg your help.
    Thank you in advance.

    SKPaul
Working...