asp.net(c#)2.0 开发webformwebconfig中有这样一条代码:
<add assembly="VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
我在XP环境在,IIS发布后,不会有问题,但是在2003环境在,就会提示错误.还有更奇怪的,我把这条代码删除后,然后发布网站,这条代码就又出现了.
请指点一下,谢谢!
<add assembly="VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
我在XP环境在,IIS发布后,不会有问题,但是在2003环境在,就会提示错误.还有更奇怪的,我把这条代码删除后,然后发布网站,这条代码就又出现了.
请指点一下,谢谢!
VsWebSite.Interop这东西我的Web.config中怎么没有..自动生成?
<system.web>
<authorization>
<allow roles= "User "/>
<allow roles= "admin "/>
</authorization>
</system.web>
</location>
<location path= "Admin ">
<system.web>
<authorization>
<allow roles= "admin "/>
</authorization>
</system.web>
</location>
<system.web>
<authentication mode= "Forms ">
<forms loginUrl= "Default.aspx "> </forms>
</authentication>
<roleManager defaultProvider= "MySqlRoleProvider " enabled= "true " cacheRolesInCookie= "true " cookieName= ".ASPROLES " cookieTimeout= "30 " cookiePath= "/ " cookieRequireSSL= "false " cookieSlidingExpiration= "true " cookieProtection= "All ">
<providers>
<clear/>
<add name= "MySqlRoleProvider " type= "Andri.Web.MySqlRoleProvider " connectionStringName= "ConnString " applicationName= "YOURAPPNAME " writeExceptionsToEventLog= "true "/>
</providers>
</roleManager>
<membership defaultProvider= "MySqlMembershipProvider " userIsOnlineTimeWindow= "15 ">
<providers>
<clear/>
<add name= "MySqlMembershipProvider " type= "Andri.Web.MySqlMembershipProvider " connectionStringName= "ConnString " applicationName= "YOURAPPNAME " enablePasswordRetrieval= "false " enablePasswordReset= "true " requiresQuestionAndAnswer= "true " requiresUniqueEmail= "true " passwordFormat= "Hashed " writeExceptionsToEventLog= "true "/>
</providers>
</membership>
</system.web>
lz 看看吧 这个是基于 membership的 asp2.0自带
<add assembly="VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>