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
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