成员资格web.config文件中出现错误 [英] getting error in membership web.config file

查看:66
本文介绍了成员资格web.config文件中出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的web.config:

This is my web.config:

<configuration>
  <connectionStrings>
    <add name="con" connectionString="Data Source=SREEKANTH; Initial Catalog=Northwind; Integrated Security=True"/>
  </connectionStrings>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
      <authentication mode="Forms">
        <forms name="/.ASPXAUTH" defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" slidingExpiration="true" timeout="20"></forms>
      </authentication>
    </system.web>
</configuration>



我收到这样的错误:



I am getting an error like this:

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.



谢谢.



Thank you.

推荐答案


我的建议是使用服务器资源管理器测试连接,如果连接成功,则将其连接字符串粘贴到Web配置中.

干杯
Hi,
My suggestion is to test your connection using Server Explorer and if your connection was successful, then, paste it''s connection string in your web config.

Cheers


这篇关于成员资格web.config文件中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆