473,796 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(401) Unauthorized - Error

I am setting up some collaboration software called eProject for a client.
eProject is a web based asp application. During setup, the instructions
called for registering a service called eProjectNotific ationService. Along
with registering the service, there is a
eProjectNotific ationService.ex e.config file where you setup your SMTP server
settings:

<configuratio n>

<appSettings>
<!-- Common Settings -->
<add key="assemblyPa th" value="D:\eProj ect\website\bin " />
<add key="configDire ctory" value="D:\eProj ect\config"/>
<add key="webRoot" value="http://eproject.jsaeng ineering.com/" />
<add key="mediaRoot" value="http://eproject.jsaeng ineering.com/Media" />
<add key="mediaPath" value="D:\eProj ect\website\med ia" />
<add key="sqlServerD SN" value="UID=<omi tted for posting to
newsgroup>;pwd= <omitted for posting to newsgroup>;Init ial
Catalog=eProjec tdb;Data Source=server\j sa;pooling=true ;Connection
Reset=false;Con nection Lifetime=0;" />
<!-- <add key="sqlServerD SN" value="Integrat ed Security=SSPI;I nitial
Catalog=Databas eName;Data Source=SQLServe rName;pooling=t rue;Connection
Reset=false;Con nection Lifetime=0;" /> -->

<!-- NotificationSer vice settings -->
<add key="smtpServer " value="192.168. 1.254" />
<!-- The "footerEmai l" key is no longer used and thus the value for it can
be ignored -->
<add key="footerEmai l" value="No longer used" />
<add key="returnAddr ess" value="eproject @<domainnameomi tted>.com" />
<add key="emailFilte r" value="" />
<add key="nsLoggingL evel" value="2" />

<!-- nsInterval determines how frequently system checks for new emails (in
seconds)....min =10 seconds-->
<add key="nsInterval " value="10"/>
<add key="keepSent" value="0"/>
</appSettings>

</configuration>

eProject uses this service to send out notifications of new documents
posted, new user info, etc... The problem exists when eProject attempts to
send a message the following is entered in the application log:

Event Type: Error
Event Source: eProjectNotific ationService
Event Category: None
Event ID: 0
Date: 3/14/2006
Time: 9:51:21 PM
User: N/A
Computer: SERVER
Description:
eProject Notification failure. Failed to deliver to . QueuedNotificat ionID
= 1d2014b5-cfdd-44ee-9dfd-07bcd4cffbf0

The following exception was thrown: System.Net.WebE xception: The remote
server returned an error: (401) Unauthorized.
at System.Net.Http WebRequest.Chec kFinalStatus()
at System.Net.Http WebRequest.EndG etResponse(IAsy ncResult asyncResult)
at System.Net.Http WebRequest.GetR esponse()
at System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials)
at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role, Type
ofObjectToRetur n)
at System.Xml.XmlT extReader.Creat eScanner()
at System.Xml.XmlT extReader.Init( )
at System.Xml.XmlT extReader.Read( )
at System.Xml.XmlV alidatingReader .ReadWithCollec tTextToken()
at System.Xml.XmlV alidatingReader .Read()
at System.Xml.XPat h.XPathDocument .Load(XmlReader reader)
at System.Xml.Xsl. Compiler.LoadDo cument(XmlTextR eader reader)
at System.Xml.Xsl. XslTransform.Lo ad(String url, XmlResolver resolver)
at System.Xml.Xsl. XslTransform.Lo ad(String url)
at
eProject.Framew ork.Notificatio ns.Format.TextF ormat.Transform (XmlDocument xml,
Enterprise ent)
at
eProject.Framew ork.Notificatio ns.Devices.Noti ficationEmail.a (NotificationEm ail , String )
at
eProject.Framew ork.Notificatio ns.Devices.Noti ficationEmail.a (NotificationEm ail[] , DirectoryUser[] )

I have verified that IUSER and ASPNET user account have read, write and
execute on the virtual directory. IIS is Version 6.0 and is running on
SBS2003.

Any Ideas?
--
David Davis [MCSE, CCNA, Security +]

Mar 15 '06 #1
0 1698

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

Similar topics

1
15105
by: Newbie | last post by:
I have set up an ASP script (with some help from microsoft.public.inetserver.asp.general!) that grabs the windows username of the user and puts it into an Access database. It is setup on IIS5 as a virtual directory and will only be used internally on our network. The script works fine with the authentication set as "basic authentication" but this prompts the user for a login and password. I want it to be automated which I believe would...
3
4006
by: Mark | last post by:
I'd like to avoid displaying the nasty built-in ASP.NET error for a 401.2, access denied. We're using windows authentication. The error message that is displayed by default is printed below. I'd love for it to redirect to the 401-2_access_denied.htm file I've created in the root of my web site. The text below is from my web.config file. <customErrors defaultRedirect="error.htm" mode="On"> <error statusCode="401.2"...
2
8209
by: obeOnline | last post by:
I'm getting the following error... System.Net.HttpWebRequest.CheckFinalStatus() +676 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +147 Web.WebDav.Page_Load(Object sender, EventArgs e)
13
5842
by: Patrick.O.Ige | last post by:
How can i get to redirect users if the get error 401.2 to another page? I guess i should be possible to do it in Global.asax? Or are there any better ways around it.. Any better solutions in ASP.NET 2.0? Patrick
1
3187
by: Dave | last post by:
I'm trying to make a webrequest to another server on our webfarm (to synch the cache as explained in http://www.eggheadcafe.com/articles/20030420.asp) but I'm getting a 401 unauthorized error. We are using service accounts for the app to run under which I thought would work in setting the webrequest's credentials property but with no luck.... HttpWebRequest req = (System.Net.HttpWebRequest)WebRequest.Create(sFullUri); req.Method =...
2
3130
by: Iain Adams | last post by:
I currently have a web service set that returns data. When I use these services through a browser, everything works fine and the resulting xml is displayed. However sometimes when I connect to the scripts using a php script I get the error message Http 401: Unauthorised. This usually happens after a short time, when the webservices have not been used. I am connecting to the webservices using Http Post and cURL.
1
15525
by: HMS1 | last post by:
Hi, When I try to access an SQL Server 2005 database using ASP pages, it works fine on one PC when the ASP pages are on the local machine and the database on the server. However, when the ASP pages and the database are both on the server, where I want them to be, it displays the error message below: You are not authorized to view this page You do not have permission to view this directory or page using the credentials that you supplied....
1
2326
by: gnewsgroup | last post by:
In my web application, I need to access a simple web site on a remote host. That web site only allows Integrated Windows Authentication. So, in my web application, I collect user name, password and domain info and pass it to that remote web site. I keep getting this Exception: The remote server returned an error: 401(Unauthorized.) Whereas, I can check out that website just fine in IE or FireFox by
10
9781
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is returned. So the username and password should be ok. I'm using this code: Merchant myMerch = new Merchant(); myMerch.merchantIdentifier=merchantId;
5
24524
by: rote | last post by:
I'm using ASP.NET 2.0 and i have copied and pasted the code below to my Global.asax file but it desn't trap the error I want to trap the 401 access denied void Application_Error(object sender, EventArgs e) { Exception exception = Server.GetLastError();
0
9685
marktang
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...
0
9533
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,...
0
10239
jinu1996
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...
1
10190
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,...
1
7555
isladogs
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...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
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...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4122
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 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.