asp.net - IIS permission/authentication issue -



asp.net - IIS permission/authentication issue -

recently reset iis service , project stop working properly.

i kept 2 authentication: anonymous authentication , windows authentication.

when disable windows, project error access database. (anonymous user can not access) when disable anonymous,project keeps windows name login name. when enableboth, login in ok userid null pages.

using system; using system.collections.generic; using system.linq; using system.web; using system.web.security; namespace worldsmart.smart.cardholder.portal.models { public class claimmodel { public static guid getuserid(httpcontextbase context) { guid userid; seek { userid = (guid)membership.getuser().provideruserkey; } grab (exception) { userid = new guid(); } homecoming userid; } } }

is there can help me this? because when transfer project machine works, therefore, problem seems not project itself.

cheers

i don't know if i'm on track interactions database should done through windows authentication, create sure united nations , pw in web.config match 1 of users on database

asp.net asp.net-mvc-3 iis iis-7 iis-7.5

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -