问题描述
在VS里面网站一切正常,而用IIS运行的时候则登录不了(总是说用户名错误)。网站用了成员管理。IIS也配置正确,请问如何解决?
解决方案
解决方案二:
我不知道
解决方案三:
估计还是配置的问题
解决方案四:
成员管理在iis里面配置的数据库连接字符串可能有问题吧..当然最好还是断点调试一下
解决方案五:
WEBCONFIG配置不对吧
解决方案六:
感觉还是配置问题,帮顶
解决方案七:
估计就是web.config的问题
解决方案八:
IIS也配置正确==================你怎么知道配置正确呢,估计是配置问题,参见解决办法:http://blog.csdn.net/octverve/archive/2007/09/04/1771088.aspx
解决方案九:
靠,又看错问题了,不好意思
解决方案十:
用怎么样的登录的机制,SESSION,FORM...
解决方案十一:
IIS中选择匿名访问
解决方案十二:
IIS应该不会有问题,我测试过了。估计是无法访问aspnetdb这个数据库文件。我一点登录,就报错:“/JieBookShop2”应用程序中的服务器错误。--------------------------------------------------------------------------------编译错误说明:在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。编译器错误信息:CS0030:无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login”源错误:[没有相关的源行]源文件:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs行:118编译器警告消息:警告:CS0108:“ASP.login_aspx.Profile”隐藏了继承的成员“Login.Profile”。如果是有意隐藏,请使用关键字new。源错误:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs[没有相关的源行]警告:CS0108:“ASP.login_aspx.ApplicationInstance”隐藏了继承的成员“Login.ApplicationInstance”。如果是有意隐藏,请使用关键字new。源错误:c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs[没有相关的源行]显示详细的编译器输出:C:WINDOWSsystem32>"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727csc.exe"/t:library/utf8output/R:"C:WINDOWSassemblyGAC_MSILSystem.Web.Services2.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_yvubmiw2.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl3fbb29fd1cec04d09_5cefc701JieBookShopHelper.DLL"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727mscorlib.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl3fe9b82d3881af09_5cefc701BLL.DLL"/R:"C:WINDOWSassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll"/R:"C:WINDOWSassemblyGAC_32System.Data2.0.0.0__b77a5c561934e089System.Data.dll"/R:"C:WINDOWSassemblyGAC_32System.Web2.0.0.0__b03f5f7f11d50a3aSystem.Web.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl318ac02d2e0937360_5eefc701App_Web_gvnoukmz.DLL"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl3789f5447d66f7d09_5cefc701DAL.DLL"/R:"C:WINDOWSassemblyGAC_MSILSystem.Web.Mobile2.0.0.0__b03f5f7f11d50a3aSystem.Web.Mobile.dll"/R:"C:WINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl3a5af907e2cacb60_5eefc701App_Web_3v_clerf.DLL"/R:"C:WINDOWSassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll"/out:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.dll"/debug-/optimize+/w:4/nowarn:1659;1699"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs""C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.1.cs"Microsoft(R)VisualC#2005编译器版本8.00.50727.42用于Microsoft(R)Windows(R)2005Framework版本2.0.50727版权所有(C)MicrosoftCorporation2001-2005。保留所有权利。c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs(133,53):warningCS0108:“ASP.login_aspx.Profile”隐藏了继承的成员“Login.Profile”。如果是有意隐藏,请使用关键字new。c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl3a5af907e2cacb60_5eefc701App_Web_3v_clerf.DLL:(与前一个警告相关的符号位置)c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs(139,46):warningCS0108:“ASP.login_aspx.ApplicationInstance”隐藏了继承的成员“Login.ApplicationInstance”。如果是有意隐藏,请使用关键字new。c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cassemblydl3a5af907e2cacb60_5eefc701App_Web_3v_clerf.DLL:(与前一个警告相关的符号位置)c:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesjiebookshop2738cad4eb238fe7cApp_Web_login.aspx.cdcab7d2.nyzysrhk.0.cs(118,14):errorCS0030:无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login”--------------------------------------------------------------------------------版本信息:Microsoft.NETFramework版本:2.0.50727.832;ASP.NET版本:2.0.50727.832
解决方案十三:
发布到本地IIS后,显示正常,但登录时总是提示"您的登录尝试不成功。请重试。"用IIS将网站设成虚拟目录,显示也正常,登录时提示"无法打开用户默认数据库。登录失败。用户'*****ASPNET'登录失败。"环境为:WinXPVS2005数据库为SQL2005Express==================================“/JieBookShop2”应用程序中的服务器错误。--------------------------------------------------------------------------------无法打开用户默认数据库。登录失败。用户'MICROSOF-WINXPASPNET'登录失败。说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.Data.SqlClient.SqlException:无法打开用户默认数据库。登录失败。用户'MICROSOF-WINXPASPNET'登录失败。源错误:执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。堆栈跟踪:[SqlException(0x80131904):无法打开用户默认数据库。登录失败。用户'MICROSOF-WINXPASPNET'登录失败。]System.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception,BooleanbreakConnection)+739123System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObjectstateObj)+188System.Data.SqlClient.TdsParser.Run(RunBehaviorrunBehavior,SqlCommandcmdHandler,SqlDataReaderdataStream,BulkCopySimpleResultSetbulkCopyHandler,TdsParserStateObjectstateObj)+1956System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(BooleanenlistOK)+33System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfoserverInfo,StringnewPassword,BooleanignoreSniOpenTimeout,Int64timerExpire,SqlConnectionowningObject)+170System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(Stringhost,StringnewPassword,BooleanredirectedUserInstance,SqlConnectionowningObject,SqlConnectionStringconnectionOptions,Int64timerStart)+349System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnectionowningObject,SqlConnectionStringconnectionOptions,StringnewPassword,BooleanredirectedUserInstance)+181System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentityidentity,SqlConnectionStringconnectionOptions,ObjectproviderInfo,StringnewPassword,SqlConnectionowningObject,BooleanredirectedUserInstance)+170System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptionsoptions,ObjectpoolGroupProviderInfo,DbConnectionPoolpool,DbConnectionowningConnection)+359System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionowningConnection,DbConnectionPoolpool,DbConnectionOptionsoptions)+28System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionowningObject)+424System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionowningObject)+66System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnectionowningObject)+496System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnectionowningConnection)+82System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnectionouterConnection,DbConnectionFactoryconnectionFactory)+105System.Data.SqlClient.SqlConnection.Open()+111System.Web.DataAccess.SqlConnectionHolder.Open(HttpContextcontext,BooleanrevertImpersonate)+84System.Web.DataAccess.SqlConnectionHelper.GetConnection(StringconnectionString,BooleanrevertImpersonation)+197System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(Stringusername,BooleanupdateLastLoginActivityDate,Int32&status,String&password,Int32&passwordFormat,String&passwordSalt,Int32&failedPasswordAttemptCount,Int32&failedPasswordAnswerAttemptCount,Boolean&isApproved,DateTime&lastLoginDate,DateTime&lastActivityDate)+1121System.Web.Security.SqlMembershipProvider.CheckPassword(Stringusername,Stringpassword,BooleanupdateLastLoginActivityDate,BooleanfailIfNotApproved,String&salt,Int32&passwordFormat)+105System.Web.Security.SqlMembershipProvider.CheckPassword(Stringusername,Stringpassword,BooleanupdateLastLoginActivityDate,BooleanfailIfNotApproved)+42System.Web.Security.SqlMembershipProvider.ValidateUser(Stringusername,Stringpassword)+83System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgse)+160System.Web.UI.WebControls.Login.AttemptLogin()+105System.Web.UI.WebControls.Login.OnBubbleEvent(Objectsource,EventArgse)+99System.Web.UI.Control.RaiseBubbleEvent(Objectsource,EventArgsargs)+35System.Web.UI.WebControls.Button.OnCommand(CommandEventArgse)+115System.Web.UI.WebControls.Button.RaisePostBackEvent(StringeventArgument)+163System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(StringeventArgument)+7System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandlersourceControl,StringeventArgument)+11System.Web.UI.Page.RaisePostBackEvent(NameValueCollectionpostData)+33System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint,BooleanincludeStagesAfterAsyncPoint)+5102--------------------------------------------------------------------------------版本信息:Microsoft.NETFramework版本:2.0.50727.832;ASP.NET版本:2.0.50727.832如何解决啊????????
解决方案十四:
权限问题!不怕死!给他全部权限!还有就是防火墙的问题!!!要是你挂到网站上去!然后你公司内部人家没有上网权限!就会出现这问题
解决方案十五:
给你的数据文件夹访问权限
解决方案:
还是权限问题,出现这种问题的人很多