1 May 2004 01:14
NUnitASP authentication issue
banshee858 <cnett858 <at> hotmail.com>
2004-04-30 23:14:35 GMT
2004-04-30 23:14:35 GMT
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:SupplyOrder518 <at> mydomainname.com") ; Browser.Credentials = CredentialCache.DefaultCredentials.GetCredential(myURI, "Windows"); Browser.GetPage(DefaultPage); Assertion.AssertEquals("no redirect.", RedirectWithAccess, Browser.CurrentUrl.ToString()); Carlton ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM ---------------------------------------------------------------------~->(Continue reading)
RSS Feed