连接字符串和部署问题 [英] coneection string and deployment problem

查看:74
本文介绍了连接字符串和部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我陷入困境,完全困惑;我已经将我的mvc 4 网站部署到主机服务器(godaddy);现在,当我打开网站并尝试注册用户时,我是得到错误;在过去,我能够
部署mvc 4应用程序并轻松完成用户注册和数据库创建;我不知道现在发生了什么;我尝试了不同的事情并向Godaddy的人询问但他们没有帮助。

I am stuck and totally confused; I have deployed my mvc 4  website to host server (godaddy); now when I open website and  try to register user I am getting errors ; in the past I was able to deploy mvc 4 app and get user registration and database creation done in a breeze; I do not know what is happening now; i have tried different things and asked people at Godaddy but they were not of help.

我的连接字符串如下所示:< add name =" myname" ;; connectionString =" data source = sql server /或localhost的ip地址;初始目录= mydbname; user id = myusername;密码=输入mypassword" providerName = sqlclientprovider>

my connection string looks like this:< add name="myname"; connectionString="data source= ip address of sql server/ or localhost; initial catalog= mydbname; user id=myusername; password=mypassword" providerName=sqlclientprovider>

当我使用localhost作为数据源时,我收到此错误

I get this error  when i use localhost as data source

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

当我使用ip地址

在stackoverflow中的一些帖子之后我添加了带有decerptionkey和validationkey的machinekey部分;但是在以前的部署中没有这样做;

following some posts in stackoverflow I have added machinekey section with decerptionkey and validationkey; but this was not done in previous deployments ;

可以请一些人提醒我在visual studio 2013社区版中设置部署的步骤

can some one please remind me the steps to take to set up deployment in visual studio 2013 community edition

以便我的应用程序可以在主机服务器中创建数据库表

so that my app can create database tables in host server

推荐答案

MVC问题在下面的论坛中讨论。

MVC issues are discussed at the below forum.

http://forums.asp。 net / 1146.aspx / 1?MVC

SQL Server问题将在以下论坛中讨论。

SQL Server issues are discussed at the below forum.

https://social.msdn.microsoft.com/Forums/sqlserver/en-us/home?category = sqlserver


这篇关于连接字符串和部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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