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
0 1506 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Simon Stewart \(C# MVP\) |
last post by:
Hi
Our scenario is:
Various business objects on a server using interfaced-based remoting being
called by a thick Windows client - all written in .NET 1.1.
Objects are running under a domain admin/domain user account and hosted as a
Windows Service on Windows 2003.
In some situations, instead of receiving a "normal" exception or one of our
custom exceptions we receive the following:
|
by: Mike Grishaber |
last post by:
Hello All,
I am using an IHttpAsyncHandler class to intercept HTTP Requests and forward
them to a system which processes the Request and returns the Result.
I use .NET Remoting to connect the IHttpAsyncHandler object to the System
and transfer the Request and Result between the two.
This works fine for quite a while, and then I start to get the following
error.
"This remoting proxy has no channel sink which means either the server has
|
by: Uchiha Jax |
last post by:
Hello everyone,
I am a plenty silly person who is trying to
learn .NET remoting through trial and error (all articles I read are going
over my head at the moment (mostly) so I thought i'd give it a go).
What I want to do is this:
Have a server instance of the program, this server instance will receive
communication from client programs (as demonstrated in the AddMessage()
|
by: Martijn Damen |
last post by:
Hi,
At the moment I am trying to develop an application that uses another app
over .net remoting and having some problems with it (ok, that is ofcourse
why I am here), hope somebody can shine a light on the following:
I have been given a sample winforms app, which works without problem, I can
connect, send queries and become response from the other application.
When I try to implement this in webforms, this unfortunately does not...
|
by: jason |
last post by:
hello. i have a VB ASP.NET page that runs the following code in the
code-behind file:
Dim oMyObject = Server.CreateObject("MyLibrary.MyObject")
Dim oDT = New DataTable
oDT = oMyObject.MyDataTable
DataGrid1.DataSource = oDT
DataGrid1.DataBind()
MyLibrary is a C# class library wrapped from COM interop, and
| |
by: AVL |
last post by:
Hi,
I'm getting the following message.when trying to connect to the server from
my client...
"No connection could be made as the server refused it".
Here is my serverside code..
TcpServerChannel tcp1 = new TcpServerChannel(49157);
ChannelServices.RegisterChannel(tcp1);
|
by: TELOPHASE |
last post by:
Hello All,
I am working on a remoting project and i dont know why but the object
created on server side and client side are totally diffrent from each
other.
Even their hash codes are diffrent, which means that i am getting 2
totally diff obj instead of sharing 1 obj between client/server.
Please Help :-SS
Also, can the server application call methods of the shared Object??
|
by: Kirk |
last post by:
I'm trying to use a Web Service to be a Remoting client of an existing
..NET 2.0 server. But I get the following error when I try to use
System.Runtime.Remoting.Channels.Http in my WebService. The same code
works fine in a standalone app. I have inspected
System.Runtime.Remoting.dll with ildasm, and I can see the
....Channels.Http namespace there. I verified that the virtual
directory is configured to use v2.0.50727 (the error message...
|
by: VishalSimon |
last post by:
Remoting Error
can not access property or method of proxy object on internet, works fine for LAN
Hello, here is my some remoting code
Code Snippet Remoted Class:
namespace Server
|
by: sandeepbhutani304 |
last post by:
have 2 projects communicating each other with .NET remoting.
But when I am trying to call these functions I am getting the error:
The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-54-79-70-65-4C-6F-61-64-45-78 ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |