NUnitASP authentication issue

C

Carlton858

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:[email protected]")
;

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

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

Carlton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,128
Latest member
ElwoodPhil
Top