0

我已经用 MVC3、.Net 4.0 建立了一个网站,我正试图让它在我的测试服务器上工作。服务器是win2008 r2的默认安装。

在测试和调试(使用 ASP.Net 开发服务器)时,该站点运行良好。当我将站点发布到我的服务器时,站点工作正常,直到我在登录表单上按提交。我得到的错误在下面找到。

配置错误

说明:处理服务此请求所需的配置文件期间发生错误。请查看下面的具体错误详细信息并适当地修改您的配置文件。

Parser Error Message: Schema specified is not valid. Errors: 
(0,0) : warning 0005: Could not find schema information for the attribute 'Namespace'.
(0,0) : warning 0005: Could not find schema information for the attribute 'Provider'.
(0,0) : warning 0005: Could not find schema information for the attribute 'ProviderManifestToken'.
(0,0) : warning 0005: Could not find schema information for the attribute 'Alias'.
(0,0) : error 0010: The element Schema in namespace http:// schemas.microsoft.com/ado/2009/11/edm/ssdl was unexpected for the root element. The expected Schema in one of the following namespaces: http:// schemas.microsoft.com/ado/2006/04/edm/ssdl, http:// schemas.microsoft.com/ado/2009/02/edm/ssdl.

源错误:

Line 36:       <providers>
Line 37:         <clear/>
Line 38:         <add name="CovleUserProvider" type="FileUpload.Models.CovleMembershipProvider" connectionStringName="UserInfo" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
Line 39:       </providers>
Line 40:     </membership>

源文件:C:\inetpub\wwwroot\web.config 行:38

一些附带信息:成员资格提供者的名称和命名空间是正确的(它在开发机器上工作),成员资格提供者是 Web 项目的一部分,但它引用了来自其他项目的 dll。所有参考资料都在 bin 文件夹中。

我尝试过的:信任级别已满。我不应该在 web.config 中引用我自己的程序集(据我可以从在线资源中得知)

谁能告诉我我做错了什么?

4

1 回答 1

0

你的好像aspnet_SchemaVersions是空的,这是它应该是什么样子的截图

在此处输入图像描述

PS这个问题也可以帮助你ASP.NET Membership Error

于 2012-10-04T19:49:27.537 回答