473,246 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

Win Server 2003 Config problem

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 programmatically, 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="true" />
<channel ref="http" useDefaultCredentials="true">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>

and our code includes the credentials in the channel properties:
_commonMdl =
CType(Activator.GetObject(GetType(ModelInterface.I CommonModel), _serverURL &
_
"CommonModel.rem"),
ModelInterface.ICommonModel)
_commonChannelProps =
ChannelServices.GetChannelSinkProperties(_commonMd l)
_commonChannelProps("credentials") = CredentialCache.DefaultCredentials

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
Nov 23 '05 #1
3 2636
The diference between iis on xp and iis on win2k3 is the application pool
part on win2k3, I think you have to trie to do something with that... take a
look under which apppool your app is running and take a look at the account
of that application pool. This account must have "run as service" and "run
as batch job" privilege...
Greets Clemens, still a verry strange way to deploy a application ;-)
"Ron L" <ro**@bogus.Address.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
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 programmatically, 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="true" />
<channel ref="http" useDefaultCredentials="true">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>

and our code includes the credentials in the channel properties:
_commonMdl =
CType(Activator.GetObject(GetType(ModelInterface.I CommonModel), _serverURL
& _
"CommonModel.rem"),
ModelInterface.ICommonModel)
_commonChannelProps =
ChannelServices.GetChannelSinkProperties(_commonMd l)
_commonChannelProps("credentials") = CredentialCache.DefaultCredentials

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

Nov 23 '05 #2
Clemens

Thank you for the response. We are running as the DefaultAppPool, which is
set to use the NetworkService login. We tried changing the login to
Administrator, which has those rights explicitly granted, but got the same
results - Not Authorized. Do you have any other thoughts?

Ron L
"Clemens Reijnen" <Cl************@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
The diference between iis on xp and iis on win2k3 is the application pool
part on win2k3, I think you have to trie to do something with that... take
a look under which apppool your app is running and take a look at the
account of that application pool. This account must have "run as service"
and "run as batch job" privilege...
Greets Clemens, still a verry strange way to deploy a application ;-)
"Ron L" <ro**@bogus.Address.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
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 programmatically, 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="true" />
<channel ref="http" useDefaultCredentials="true">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>

and our code includes the credentials in the channel properties:
_commonMdl =
CType(Activator.GetObject(GetType(ModelInterface.I CommonModel),
_serverURL & _
"CommonModel.rem"),
ModelInterface.ICommonModel)
_commonChannelProps =
ChannelServices.GetChannelSinkProperties(_commonMd l)
_commonChannelProps("credentials") = CredentialCache.DefaultCredentials

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


Nov 23 '05 #3
hmmm well this sounds verry strange

I am a enterprise developer and i even code my remoting projects on windows
2003 server 64 bit ,,, never had anny problems with it i did not have to
performe anny changes to my standard windows 2003 installation to get my
remoting projects running ...
to get a remoting project running on IIS you need the following

1 You must create a virtual directory
2 You must use the http channel ( you are free to use the binarry
formatter )
3 You must use singlecall objects
4 you may not specify a port ( IIS manager handless this , typicly port
80 )
5 the object URI must end with .rem or soap

Configuring a remote object under IIS should be simple all you need to do is
copying your remote assembly to the \Bin subdirectory of a virtual
directory on the server , alternatively
you can place it in the GAC then you need to create a configuarion file for
the web application and advantage for this aproach is that the remote object
also gains the ability to use IIS authentication features ( like SSL ) and
the builtin ASP.net objects .

in both situations the virtual directory name automaticly becomes the
application name

so virtual directory

http://localhost/asphost

becomes the full uri for your object

http://localhost/asphost/yourremoteobject.rem

well i hope this helps in solving your problem

regards

Happy coding :-)

Michel Posseth [MCP]


"Ron L" <ro**@bogus.Address.com> wrote in message
news:uK****************@TK2MSFTNGP12.phx.gbl...
Clemens

Thank you for the response. We are running as the DefaultAppPool, which
is set to use the NetworkService login. We tried changing the login to
Administrator, which has those rights explicitly granted, but got the same
results - Not Authorized. Do you have any other thoughts?

Ron L
"Clemens Reijnen" <Cl************@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
The diference between iis on xp and iis on win2k3 is the application pool
part on win2k3, I think you have to trie to do something with that...
take a look under which apppool your app is running and take a look at
the account of that application pool. This account must have "run as
service" and "run as batch job" privilege...
Greets Clemens, still a verry strange way to deploy a application ;-)
"Ron L" <ro**@bogus.Address.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
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 programmatically, 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="true" />
<channel ref="http" useDefaultCredentials="true">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>

and our code includes the credentials in the channel properties:
_commonMdl =
CType(Activator.GetObject(GetType(ModelInterface.I CommonModel),
_serverURL & _
"CommonModel.rem"),
ModelInterface.ICommonModel)
_commonChannelProps =
ChannelServices.GetChannelSinkProperties(_commonMd l)
_commonChannelProps("credentials") =
CredentialCache.DefaultCredentials

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



Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MikeRoft | last post by:
Hi, We have a big application in .Net using the No-Touch deployment. Everything is working perfectly. Now we manage to install it on Windows Server 2003 using IIS. We have some problem...
5
by: Martin Robins | last post by:
I have never dabbled with ASP.NET until now so be warned! I have created a web application with the single default form: WebForm1.aspx and when I try to display it I get this error. My...
4
by: Amil Hanish | last post by:
Don't reply to this unless you know what you are talking about. Installed brand spanking new 2003 Server. Configured to be application server. Then installed Visual Studio .NET. Copied over...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
0
by: Jacob Jozwiak | last post by:
Hi, I hope that someone has come across this problem in their travels, because it is causing me quite a bit of grief. I apologise for the length of this question. We are running a web farm...
3
by: Robin | last post by:
I am trying to get a virtual directory ASP.Net application to work on a Windows 2003 server that has Sharepoint 2003. I have followed the Microsoft knowledgebase but the error message below still...
2
by: Jared Hagel | last post by:
I've searched the web for a solution to this problem. Surprisingly, no problem/solution has been posted yet. We can read application configuration information fine when our asp.net application...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.