By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

NUnitASP authentication issue

P: n/a
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
( 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

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

Assertion.AssertEquals("no redirect.", RedirectWithAccess,

Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.