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.BadImageFormatException: The format of the file 'SimpleTest' is invalid.
File name: "SimpleTest"
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.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Runtime.Remoting.RemotingConfigInfo.LoadTyp e(String typeName, String assemblyName)
at System.Runtime.Remoting.RemotingConfigInfo.GetServ erTypeForUri(String URI)
at System.Runtime.Remoting.RemotingConfigHandler.GetS erverTypeForUri(String URI)
at System.Runtime.Remoting.RemotingServices.GetServer TypeForUri(String URI)
at System.Runtime.Remoting.Channels.Http.HttpRemoting Handler.CanServiceRequest(HttpContext context)
at System.Runtime.Remoting.Channels.Http.HttpRemoting Handler.InternalProcessRequest(HttpContext 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