all groups > dotnet remoting > may 2006 >
You're in the

dotnet remoting

group:

System.Net.WebException: The remote server returned an error: (400) Bad Request exception


System.Net.WebException: The remote server returned an error: (400) Bad Request exception Stephen Barrett
5/31/2006 1:13:26 PM
dotnet remoting:
I am having problems getting remoting working in a new environment.

I have an existing environment with a webapp tier, an application server
tier, and database tier.

The webapp talks to app tier via remoting using a serverfactory/inteface
design approach. The app tier is hosted in IIS and we use the binary
formatter.

Everything works fine in an existing environment. We are setting up a
disaster recovery environment that is a duplicate of the working production
environment.

We are not using the GAC for any of our components.

In this new environment, when ever we try to call a method on our server
factory (hosted as singleton), we get a System.Net.WebException: The remote
server returned an error: (400) Bad Request exception.

A coworker and I have both checked the config files at least 10 times to
make sure everything is configured properly. In fact, the only change of
the config file from the working production environment is the ipaddress of
the app server tier in the webapp's web.config file. Everything else is
exactly the same from what I can tell.

I am guessing that the server itself was staged a little differently by the
IT group, but I cannot tell a difference. I have tested a self contained
ASP.NET application on the appserver and web server and it runs fine so I
believe asp.net is configured properly.

Anyone have any ideas?

This is framework 1.1

Re: System.Net.WebException: The remote server returned an error: (400) Bad Request exception Stephen Barrett
5/31/2006 1:35:33 PM
Here are the webapp's and app server apps' remoting sections from the config
files in case it helps. I have intentionally changed the ip addresses to
bogus addresses.

WEBAPP
<system.runtime.remoting>
<application>
<client>
<wellknown type="PenProPlus.Remoting.IServerFactory,
PenProPlus.Remoting"
url="tcp://111.111.111.111:8090/Server.ServerFactory" />
</client>
<channels>
<channel ref="http">
<serverProviders>
<formatter ref="binary" />
</serverProviders>
</channel>
</channels>
</application>
<customErrors mode="off"/>
</system.runtime.remoting>

APPSERVER
<system.runtime.remoting>
<application>
<service>
<wellknown type="PenProPlus.Remoting.ServerFactory,
PenProPlus.Remoting"
objectUri="Server.ServerFactory.rem" mode="Singleton" />
</service>
<channels>
<channel ref="http" />
</channels>
</application>
<customErrors mode="off"/>
</system.runtime.remoting>

[quoted text, click to view]

Re: System.Net.WebException: The remote server returned an error: (400) Bad Request exception Bluesky25
6/28/2006 12:00:00 AM
Stephen Barrett a écrit :
[quoted text, click to view]

Hi,

I am having the same problem and I cannot find any solution. The only
difference between our working environment and the one which raises the
Exception is the domain we use.
If you have solved this problem or have any clue, I am really
interested since I have to make it work quickly and I have no idea
anymore...

Thanks a lot,

Re: System.Net.WebException: The remote server returned an error: (400) Bad Request exception Bluesky25
6/28/2006 1:01:39 PM
Bluesky25 a écrit :
[quoted text, click to view]

Framework 1.1 SP1 fixed the problem WITH this registry tweak :
http://support.microsoft.com/default.aspx?scid=kb;EN-US;826437

Re: System.Net.WebException: The remote server returned an error: (400) Bad Request exception rajeesh t ravi
1/31/2007 2:03:41 AM


Actually this error occured for me also, i can found out that this error
is due to the from session authentication using session variable,just
remove the authentication part and try it
eg)
If dCompanyId = 0 Then
'Response.Redirect("\odms/login.aspx?sErrorMsg=
You Must Login")
'Else
If Page.IsPostBack = False Then
------------------code here----------------
just remove the part mentioned here
If dCompanyId = 0 Then
'Response.Redirect("\odms/login.aspx?sErrorMsg=
You Must Login")
'Else



Rajeesh T Ravi
Software Engineer
Keys Infotech
Cochin

AddThis Social Bookmark Button