473,498 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NUnitASP authentication issue

I have turned off the annyomous access on my ASP.Net web application
and not set access using NT groups. That works great, except now
none of my NUnitASP tests work - everything fails with access denied
errors. I have read this article
(http://home.iprimus.com.au/lachlanb/nunitasp/nunit.html) and
followed the directions in the "Security" section, but was running
into some difficulties.

I was wondering if anyone had experience passing Network credentials
in NUnitASP? I hoped someone could point out the errors in my code.

Uri myURI = new Uri
("http://mydomainname//so_user_test:Su************@mydomainname.com")
;

Browser.Credentials =
CredentialCache.DefaultCredentials.GetCredential(m yURI, "Windows");
Browser.GetPage(DefaultPage);

Assertion.AssertEquals("no redirect.", RedirectWithAccess,
Browser.CurrentUrl.ToString());

Carlton
Nov 18 '05 #1
0 1100

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

Similar topics

5
1673
by: redneck_kiwi | last post by:
All: I have an application that has been working well for 3-4 months now without any issues (that I am aware of). A day or two ago, one of our employees that use this application called to say...
1
1389
by: Winnie | last post by:
I am having issues with setting up the authentication for .net. I have an aspx page in e:\myApp. I have set the virtual directory "MyApp" in IIS and give IUSER_XXX and ANONYMOUS USER permission to...
6
1360
by: Frank Walsh | last post by:
Can anyone tell me if this is possible in asp.net, I want to use form-based authentication to authenticate my users, however a employee of the company is attempting to be logged in as administrator...
4
1709
by: WebBuilder451 | last post by:
I have an app that will direct to the login on any unauthorized access. It will redirect back to the calling page when authenticated. Now here is the problem. I'm allowing for user registration...
1
2651
by: Luwk | last post by:
I have an application that communicates with the Company's Active Directory to get the OU of the users. This said application is an ASP.Net web site and has the Windows Authentication enabled. ....
1
1462
by: M K | last post by:
Ok a newbie here... i have a sql server db I got from a book to learn. I am having problems with the 'Authentication' mode. I need a valid id to be authenticated with... i have a web...
1
1118
by: =?Utf-8?B?YW1pdF9taXRyYQ==?= | last post by:
Hi Everybody, This one is a typical issue I am facing. I have 4 different Web applications with Windows Integrated Authentication . This works fine in local Intranet. For Some business...
3
1435
by: kpg | last post by:
ASP.NET 2.0 I have an unusual situation dealing with forms authentication, not doubt brought on by how I have structured the application. The setup: Users enter the site from one of several...
0
2331
by: y2ktan | last post by:
Hi All, I try to use WebClient.UploadData to upload a photo with the size less than 1MB to my local IIS. I setup my IIS by adding a new virtual directory with the write access to the photo...
0
7124
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,...
0
6998
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...
0
7163
Oralloy
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,...
0
7200
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...
0
5460
agi2029
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 project—planning, coding, testing,...
0
4586
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...
0
3090
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...
0
1416
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 ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.