unable to initialize provider

场景:新服务器发布

系统:windows server 2012

程序环境:mysql6.9.5,iis8.5,.net4.0

错误:unable to initialize provider

分析原因:项目中采用了membership,安装新数据库时直接copy了原数据库的membership表

解决方法:步骤1.假如数据库中没有membership的表,修改machine.config (c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config)中添加  autogenerateschema="true",具体位置放置如下

  <membership>
      <providers>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
        <add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" autogenerateschema="true"/>
      </providers>
    </membership>

2.删除数据库中的membership表,重启启动项目将自动生成相对应数据库表,生成成功

时间: 2024-12-09 16:04:17

unable to initialize provider的相关文章

virt-manager Unable to initialize GTK: could not open display

在使用virt-manager安装kvm虚拟机的时候,启动报错,提示Unable to initialize GTK: could not open display 查看日志显示:WARNING! The remote SSH server rejected X11 forwarding request. 解决办法:yum -y install xorg-x11-xauth 退出xshell后从新登录,然后再调用virt-manager即可.

嵌入式linux系统中,lsusb出现unable to initialize libusb: -99 解决办法 【转】

转自:http://cpbest.blog.163.com/blog/static/41241519201111575726966/ libusb是linux系统中,提供给用户空间访问usb设备的API,方便从linux内核中获取或设置usb设备的信息.lsusb这个用户空间程序,也正是依赖libusb提供的接口API来实现对系统当前的usb总线的扫描,从而显示当前系统存在的usb设备的. 在嵌入式linux中,输入lsusb命名,出现unable to initialize libusb: -

java.lang.RuntimeException: Unable to get provider

java.lang.RuntimeException: Unable to get provider  dev.dworks.apps.candidcamera.provider.MediaDocumentsProvider: java.lang.ClassNotFoundException: Didn't find class Android出现以下错误一般是动态加载类错误,检查清单文件(AndroidManifest.xml)是否配置正确的类名

pb - unable to initialize client library context

电脑一主程序正常,打开另一程序时,总是提示 unable to initialize client library context 从DSEDIT发现 "Loaded the Dynamic Link Library NLWNSCK.DLL (c:\sybase\DLL\NLWNSCK.DLL)" 找到“c:\sybase\DLL”,把下边的DLL全部复制出来,程序正常打开.

MATLAB读视频报错 Unable to initialize the video obtain properties (videoreader in Matlab)

这个bug卡了半天,这里记录一下 Error using VideoReader/init (line 619) Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties Error in VideoReader (line 172) obj.init(fileName); 环境:Ubuntu16.04 参考:stackoverflow 首先安装

javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp

公司新做了一个项目,需要用到邮件发送功能.因为以前同事在其他项目上做过邮件模块,所以直接移植过来了. 本以为很简单的功能,直接copy多好.然而命运多舛. 调用发送邮件的代码时候报错. 主要代码: Properties props = new Properties(); props.put("mail.smtp.host", host); props.put("mail.smtp.starttls.enable", "true");// 使用 S

spring4.3.7整合mongodb3.2.1

前几天写了个mongodb原生的工具类,参考"http://ylcodes01.blog.51cto.com/5607366/1933342", 项目里需要做分布式,所以现在集成到spring中,今天结合spring-mongodb写了一些常用的工具. BaseMongoDao package com.stbr.common.mongodb.base; import com.mongodb.WriteResult; import com.stbr.common.mongodb.util

windows下安装并启动hadoop2.7.2

windows安装hadoop没必要倒腾Cygwin,直接解压官网下载hadoop安装包到本地->最小化配置4个基本文件->执行1条启动命令->完事.下面把这几步细化贴出来,以hadoop2.7.2为例. 1.下载hadoop安装包就不细说了:http://hadoop.apache.org/->左边点Releases->点mirror site->点http://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common->

Windows Error Codes

http://www.briandunning.com/error-codes/?source=Windows Windows Error Codes List All Error Codes | Search Errors: FileMaker Error Codes Lasso Error Codes MySQL Error Codes Windows System Errors About this databaseThis is a free public resource. It is