I have an application that I am working on with 2 other developers. The
applciation uses Remoting for our calls to SQL Server. We have been
developing and testing against our development machines (win XP), and
remoting is working fine, but yesterday we attempted to install our
application on our shared server and we keep getting 401 - Not Authorized
errors whenever a remoting call is made. To get the application to the
server, we got all the files from Source Safe to the server, and built the
application locally (on the server). This created the directory we needed
on the server's web site. I had to manually set the directory to be its own
application (to mimic the setup Visual Studio had automatically created on
our development machines).
In addition to the 401 error we are getting when we access the remoting
classes programmaticall y, we also get an error page if we try to browse to
the WSDL.
Our Web.Config has the following Channels definitions:
<channels>
<identity impersonate="tr ue" />
<channel ref="http" useDefaultCrede ntials="true">
<clientProvider s>
<formatter ref="binary" />
</clientProviders >
</channel>
</channels>
and our code includes the credentials in the channel properties:
_commonMdl =
CType(Activator .GetObject(GetT ype(ModelInterf ace.ICommonMode l), _serverURL &
_
"CommonModel.re m"),
ModelInterface. ICommonModel)
_commonChannelP rops =
ChannelServices .GetChannelSink Properties(_com monMdl)
_commonChannelP rops("credentia ls") = CredentialCache .DefaultCredent ials
I assume that, since the code works on the XP development machines, the
problem must be a configuration problem with the Win2k3 server/IIS6. Can
anyone point me to where the problem may be? I have been searching MS and
Google for 2 days without finding anything that appears to be relevant.
TIA
Ron L
applciation uses Remoting for our calls to SQL Server. We have been
developing and testing against our development machines (win XP), and
remoting is working fine, but yesterday we attempted to install our
application on our shared server and we keep getting 401 - Not Authorized
errors whenever a remoting call is made. To get the application to the
server, we got all the files from Source Safe to the server, and built the
application locally (on the server). This created the directory we needed
on the server's web site. I had to manually set the directory to be its own
application (to mimic the setup Visual Studio had automatically created on
our development machines).
In addition to the 401 error we are getting when we access the remoting
classes programmaticall y, we also get an error page if we try to browse to
the WSDL.
Our Web.Config has the following Channels definitions:
<channels>
<identity impersonate="tr ue" />
<channel ref="http" useDefaultCrede ntials="true">
<clientProvider s>
<formatter ref="binary" />
</clientProviders >
</channel>
</channels>
and our code includes the credentials in the channel properties:
_commonMdl =
CType(Activator .GetObject(GetT ype(ModelInterf ace.ICommonMode l), _serverURL &
_
"CommonModel.re m"),
ModelInterface. ICommonModel)
_commonChannelP rops =
ChannelServices .GetChannelSink Properties(_com monMdl)
_commonChannelP rops("credentia ls") = CredentialCache .DefaultCredent ials
I assume that, since the code works on the XP development machines, the
problem must be a configuration problem with the Win2k3 server/IIS6. Can
anyone point me to where the problem may be? I have been searching MS and
Google for 2 days without finding anything that appears to be relevant.
TIA
Ron L
Comment