English 中文(简体)
网站管理工具ERRORS
原标题:Web Site Administration Tool ERRORS
  • 时间:2010-09-06 09:25:04
  •  标签:
  • asp.net

我试图利用网站管理工具在我的网站上确立作用。

我收到了“AspNetSqlProvider”的错误测试。

"Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider."

我成功地使用了蚊帐-regsql的指挥线效用,视频演播室一号可在服务器探测器看到数据库和所有表格。

网吧

问题是什么? 感谢

问题回答

我将这个问题与你过去一样。 请查看web.config 你们需要这样的东西:

<connectionStrings>
  <remove name="LocalSqlServer"/>
  <add name="LocalSqlServer"
  connectionString= YOUR CONNECTIONSTRING HERE 
  providerName="System.Data.SqlClient"/>
</connectionStrings>

重要部分是取消当地SqlServer,新连接点的名称相同。 希望这一帮助。

如果你正确地建立了这一网络。 我几乎保证了这一错误,因为你在视力演播室与它有公开的联系,从而切断了联系。

解决办法:

在视觉演播室右边点击与数据库的链接(可能有一个连接的icon),并点击近链接

重新尝试使用成员管理工具。

et voila





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签