Hi Friends......
I developed my application successfully...it works.But I have a problem.It's when I'm going to publish/deploy my application I cant get my database into my application.I'm using VS2008 and SQL 2005 express.
Actually my database query in server and it's not local.It's not visible in server explorer too.I want get it inside the application.
I can still run my application successfully in my pc after the installation since I have that db in my machine.but when I'm going to run that app in another pc it doesnt work.
I think you can understand my problem....
Can anyone give me a solution......???Please somebody help me to do this.I'm stuck with this problem.
Thank you.
Charith
Loading
LisaPosted Feb 17, 2009, 6:21 AM
SQL 2005 Express just works on your system , it doesn't work as server to the other system.
Hence either you should have a SQL Server set up accessible to all who would be using the application or just inject your database to an embedded database directly into your application and publish it along with your application.
Hope it Helps.
Thanks,
Lisa
Mirko MeierPosted Feb 15, 2009, 3:39 PM
It can be useful to check the connectionString too. Have a look at ConnectionStrings.com
PrashantPosted Jan 16, 2009, 5:59 AM
Rajendra DeopuraPosted Jan 15, 2009, 11:14 PM
I think the problem is with the connection string. Please check your connection string. Use Request.PhysicalApplicationpath( ) for Web Applications and Application.StartupPath( ) for Windows Applications in connection strings.
Thanks