连接字符串无法从一个应用程序运行到另一个应用程序. [英] connection string not working from one application into another application.

查看:85
本文介绍了连接字符串无法从一个应用程序运行到另一个应用程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在go daddy的不同域上托管了两个应用程序.现在,我想将数据从一个应用程序保存到另一个应用程序中,我正在使用第一个应用程序中使用的相同连接字符串,但在那里无法正常工作.任何机构可以帮助我解决问题.

Hi,

I have two applications hosted on different Domains of go daddy. Now i want to save data from one application into another application, i am using the same connection string used in first application but it is not working there. can any body please to help me to come out of the problem.

推荐答案

SqlConnection con = new SqlConnection("Data Source = emisdemo.db.8972447.hostedresource.com ; Initial Catalog = dbname;用户ID = isha;密码=''ish @ 123'');

con.Open();

这段代码在一个应用程序中有效,但在其他应用程序中无效
SqlConnection con = new SqlConnection("Data Source=emisdemo.db.8972447.hostedresource.com; Initial Catalog=dbname; User ID=isha; Password=''ish@123''");

con.Open();

this piece of code is working in one application but not in other application


这篇关于连接字符串无法从一个应用程序运行到另一个应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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