469,613 Members | 1,204 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

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

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

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

Nov 18 '05 #1
0 978

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by redneck_kiwi | last post: by
1 post views Thread by Winnie | last post: by
6 posts views Thread by Frank Walsh | last post: by
4 posts views Thread by WebBuilder451 | last post: by
1 post views Thread by M K | last post: by
1 post views Thread by =?Utf-8?B?YW1pdF9taXRyYQ==?= | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.