471,863 Members | 1,182 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,863 software developers and data experts.

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 1025

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 NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

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.