在Visual Studio 2010 web.configuration文件 [英] web.configuration file in visual studio 2010

查看:180
本文介绍了在Visual Studio 2010 web.configuration文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想我的web应用程序传输到远程服务器,这是我的地方web.config文件,可以有人请帮助我?我使用godaddy.I知道我要使用remove ..但我不知道如何使用Visual Studio 2010中,我还与添加名称=applicationservices。在Visual Studio 2005中的<添加名称=LocalSqlServer这个
请我需要帮助和澄清

 <&是connectionStrings GT;
    <添加名称=ApplicationServices的connectionString =数据源= \\ SQLEX $ P $干燥综合征;集成安全性= SSPI; AttachDBFilename = | DataDirectory目录| \\ ASPNETDB.MDF;用户实例=真
             的providerName =System.Data.SqlClient的/>
    <添加名称=的ConnectionString的connectionString =数据源= \\ SQLEX $ P $干燥综合征。AttachDbFilename = | DataDirectory目录| \\ ASPNETDB.MDF;集成安全=真;用户实例=真
      的providerName =System.Data.SqlClient的/>
< /&是connectionStrings GT;


解决方案

1:你需要你的数据库上传到服务器

2:使用GoDaddy的功能,以使数据库附加到他们的SqlServer

3:调整你的ConnectionString指向数据库GoDaddy的服务器上。你得问他们的格式。

4:调整你的web.config

检查这有助于:

Hello i want to transfer my web application to the remote server, this is my local web.config file, can someone pls help me with this? I am using godaddy.I know i have to use the remove .. but i don't know how to do it using visual studio 2010. I am also confuse with the add name="applicationservices". in visual studio 2005 its <add name="LocalSqlServer" Please i need help and clarification

<connectionStrings> 
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
             providerName="System.Data.SqlClient" />
    <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
      providerName="System.Data.SqlClient" />
</connectionStrings>

解决方案

1: You need to upload your database to your server.

2: Use godaddy's functionality to attach that database to their SqlServer.

3: Adjust your connectionstring to point to the DB on godaddy's server. You will have to ask them for the format.

4: Adjust your web.config.

Check if this helps:

这篇关于在Visual Studio 2010 web.configuration文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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