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 3 2665
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.Add ress.com> wrote in message
news:uI******** ******@TK2MSFTN GP14.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 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
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******** ******@TK2MSFTN GP09.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.Add ress.com> wrote in message news:uI******** ******@TK2MSFTN GP14.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 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
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.Add ress.com> wrote in message
news:uK******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP09.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.Add ress.com> wrote in message news:uI******** ******@TK2MSFTN GP14.phx.gbl...I have an application that I am working on with 2 other developers. The applciatio n 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 applicatio n 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 automaticall y 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 with the application.exe.config file. That's look like
he don't let the file pass to the client side.
|
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 understanding was that
ASP.NET was supposed to set itself up, especially as I am using Windows
Server 2003.
Can anybody give me instruction as to resolution; what folder should I be
granting the access to? The path shown only exists as far as the...
|
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 web application
from another
server and set up normal web site.
When I try to debug the application within .NET, it always gives me the
error saying that I'm not part of the Debugger Users group. I'm in
Administrator, Debugger
|
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 database. Tried
all possible combinations but it still fails.
I have Windows 2003 server having SQL Server 2000 installed with SP2.
The installation went Ok on a XP professional machine and I was able
to create database and user logins etc on...
|
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 Environment" with this
message:
"Error while trying to run project: Unable to start debugging on the web
server. Server-side error occurred on sending debug HTTP request.
Make sure the server is operating correctly. Verify there are no...
| |
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 consisting of 3xWin2K servers, and 1xWin
2003 Server. We also have a State Server running (Windows 2003
Server). I have configured all the web servers identically and they
all share state via the state server, well, all except the Windows
2003 Server...
|
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 occurs.
http://support.microsoft.com/default.aspx?scid=kb;en-us;828810
What other changes are required to get the virtual directory use its own
web.config file?
Configuration Error
|
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 runs on a Windows 2000 server. But when we run
this same application from Windows 2003, we can't read any application
configuration.
The code in question is this (in default.aspx):
|
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 one day):
\\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During
Execution: 7
\\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
|
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 accessing the webservice each min. It was working 100% fine.
Problem:
But now in actual deployment, we have deployed webservice in Win Server 2003 and we have used all the default configurations. Now the clients are accessing that service the same way...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 projectplanning, coding, testing, and deploymentwithout 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |