Re: No db access after publishing web site
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Fri, 8 Jun 2007 17:55:49 -0400
1. Is the SQL Server Express database in the new application's App_Data folder ?
2. Are you detaching/attaching the SQL Server Express database correctly ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Agos" <agostino.guberti@xxxxxxxxxxxxx> wrote in message
news:Oxjai.14263$BU3.11885@xxxxxxxxxxxxxxxxxxxxxxxx
I published my application in the same file system (different folder) on same PC.
This is the connection string I use
<add name="pagoConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial
Catalog=pago;Integrated Security=True;User Instance=False"
The database is in folder
C:\Programmi\Microsoft SQL Server\MSSQL.1\MSSQL\Data
My working solution is in D:\WEB\WASP
I published in C:\WEB\WASP
and it also works except than the db WEB forms with gridview
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> ha scritto nel messaggio
news:%23R7L%23zgqHHA.3456@xxxxxxxxxxxxxxxxxxxxxxx
Sounds like your connection string needs to be different
at the server where you published your application to.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Agos" <agostino.guberti@xxxxxxxxxxxxx> wrote in message
news:6Ciai.14217$BU3.3863@xxxxxxxxxxxxxxxxxxxxxxxx
I developed my first web site using Visual studio 2005.
It works very well with Visual Studio. But after I published the web site in a file system
folder in my PC using
the instructions I found in Visual studio help Walkthrough: Publishing a Web Site, I can
navigate the web forms
except the ones with connections (using Gridview, details view) to the database (SQL Server
2005).
What didn't I do?
Thank you
Agos
.
- Follow-Ups:
- Re: No db access after publishing web site
- From: Agos
- Re: No db access after publishing web site
- From: Agos
- Re: No db access after publishing web site
- References:
- No db access after publishing web site
- From: Agos
- Re: No db access after publishing web site
- From: Juan T. Llibre
- Re: No db access after publishing web site
- From: Agos
- No db access after publishing web site
- Prev by Date: Re: aspnet_regiis.exe is not a valid Win32 application
- Next by Date: Re: No db access after publishing web site
- Previous by thread: Re: No db access after publishing web site
- Next by thread: Re: No db access after publishing web site
- Index(es):
Relevant Pages
|