Asp.net mvc 3 使用自定义成员资格提供程序发布到IIS7时出错

Asp.net mvc 3 使用自定义成员资格提供程序发布到IIS7时出错,asp.net-mvc-3,iis-7,web-config,asp.net-membership,Asp.net Mvc 3,Iis 7,Web Config,Asp.net Membership,我已经用MVC3、.NET4.0构建了一个网站,我正在尝试让它在我的测试服务器上运行。该服务器是win2008 r2的默认安装 在测试和调试(使用ASP.Net开发服务器)时,该站点运行良好。当我将站点发布到服务器时,站点工作正常,直到我在登录表单上按submit。下面是我得到的错误 配置错误 描述:处理服务此请求所需的配置文件时出错。请查看下面的特定错误详细信息,并适当修改配置文件 Parser Error Message: Schema specified is not valid. Err

我已经用MVC3、.NET4.0构建了一个网站,我正在尝试让它在我的测试服务器上运行。该服务器是win2008 r2的默认安装

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

配置错误

描述:处理服务此请求所需的配置文件时出错。请查看下面的特定错误详细信息,并适当修改配置文件

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>
第36行:
第37行:
第38行:
第39行:
第40行:
源文件:C:\inetpub\wwwroot\web.config行:38

一些侧面信息: 成员资格提供程序的名称和命名空间正确(它在开发人员计算机上工作),成员资格提供程序是web项目的一部分,但它引用了其他项目中的dll。所有引用都在bin文件夹中

我所尝试的: 信任级别已满。 我不应该在web.config中引用我自己的程序集(从联机资源中可以看出)


有人能告诉我我做错了什么吗?

看起来你的
aspnet\u SchemaVersions
是空的,下面是它的屏幕截图


PS这个问题也可能对您有所帮助

显然,我完全不知道数据库应该完全为ASP.Net应用程序的使用而存在。但我发现了在哪里和什么,现在我已经准备好了。非常感谢。