473,729 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WEB SITE PROJECT DEPLOYMENT ~ Help please??

I am working with ASP.NET 2.0 and using an SQL Server 2000 database.

I am using Visual Studio 2005 and developing on my Local machine. I am
working with Login controls ASP.Configurati on, I wanted to move my work
and needed to place it on the server.

Using VS 2005 , went to BUILD
-Publish Web Site
Checked the box for :: Alow this precompiled site to be updatable.

The files are all now sitting on my Server, and when I load my web site, it
loads the first default.aspx page that contains my LOGIN control. However,
when I try to login it is trying to load a SQL Server Express 2005 database.
Yet I am not using SQL Server 2005, and in my App_Data file folder I DO NOT
have an databasename.MD F inside it. However VS 2005 had created a file and
stuck it into my Project. I then receive the following error. See below:

Can anyone suggest why this is occurring and what I can do to resolve this
issue??

Why is it trying to perform an SQLExpress database file auto-creation error,
when I am using an SQL Server 2000 databse???

Any ideas would be greatly appreciated,

Thanks in advance,

Sincerely,

~Brad
_______________ _______________ _____
ERROR: MESSAGE BELOW:

Server Error in '/gddb' Application.

An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

SQLExpress database file auto-creation error:
The connection string specifies a local Sql Server Express instance using a
database location within the applications App_Data directory. The provider
attempted to automatically create the application services database because
the provider determined that the database does not exist. The following
configuration requirements are necessary to successfully check for existence
of the application services database and automatically create the
application services database:
1. If the applications App_Data directory does not already exist, the web
server account must have read and write access to the applications
directory. This is necessary because the web server account will
automatically create the App_Data directory if it does not already exist.
2. If the applications App_Data directory already exists, the web server
account only requires read and write access to the applications App_Data
directory. This is necessary because the web server account will attempt to
verify that the Sql Server Express database already exists within the
applications App_Data directory. Revoking read access on the App_Data
directory from the web server account will prevent the provider from
correctly determining if the Sql Server Express database already exists.
This will cause an error when the provider attempts to create a duplicate of
an already existing database. Write access is required because the web
server accounts credentials are used when creating the new database.
3. Sql Server Express must be installed on the machine.
4. The process identity for the web server account must have a local user
profile. See the readme document for details on how to create a local user
profile for both machine and domain accounts.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this failure
may be caused by the fact that under the default settings SQL Server does
not allow remote connections. (provider: SQL Network Interfaces, error: 26 -
Error Locating Server/Instance Specified)]
System.Data.Sql Client.SqlInter nalConnection.O nError(SqlExcep tion
exception, Boolean breakConnection ) +734947
System.Data.Sql Client.TdsParse r.ThrowExceptio nAndWarning(Tds ParserStateObje ct
stateObj) +188
System.Data.Sql Client.TdsParse r.Connect(Boole an& useFailoverPart ner,
Boolean& failoverDemandD one, String host, String failoverPartner , String
protocol, SqlInternalConn ectionTds connHandler, Int64 timerExpire, Boolean
encrypt, Boolean trustServerCert , Boolean integratedSecur ity, SqlConnection
owningObject, Boolean aliasLookup) +820
System.Data.Sql Client.SqlInter nalConnectionTd s.OpenLoginEnli st(SqlConnectio n
owningObject, SqlConnectionSt ring connectionOptio ns, String newPassword,
Boolean redirectedUserI nstance) +628
System.Data.Sql Client.SqlInter nalConnectionTd s..ctor(DbConne ctionPoolIdenti ty
identity, SqlConnectionSt ring connectionOptio ns, Object providerInfo, String
newPassword, SqlConnection owningObject, Boolean redirectedUserI nstance)
+170
System.Data.Sql Client.SqlConne ctionFactory.Cr eateConnection( DbConnectionOpt ions
options, Object poolGroupProvid erInfo, DbConnectionPoo l pool, DbConnection
owningConnectio n) +130
System.Data.Pro viderBase.DbCon nectionFactory. CreateNonPooled Connection(DbCo nnection
owningConnectio n, DbConnectionPoo lGroup poolGroup) +27
System.Data.Pro viderBase.DbCon nectionFactory. GetConnection(D bConnection
owningConnectio n) +47
System.Data.Pro viderBase.DbCon nectionClosed.O penConnection(D bConnection
outerConnection , DbConnectionFac tory connectionFacto ry) +105
System.Data.Sql Client.SqlConne ction.Open() +111
System.Web.Mana gement.SqlServi ces.GetSqlConne ction(String server, String
user, String password, Boolean trusted, String connectionStrin g) +68

[HttpException (0x80004005): Unable to connect to SQL Server database.]
System.Web.Mana gement.SqlServi ces.GetSqlConne ction(String server, String
user, String password, Boolean trusted, String connectionStrin g) +124
System.Web.Mana gement.SqlServi ces.SetupApplic ationServices(S tring server,
String user, String password, Boolean trusted, String connectionStrin g,
String database, String dbFileName, SqlFeatures features, Boolean install)
+86
System.Web.Mana gement.SqlServi ces.Install(Str ing database, String
dbFileName, String connectionStrin g) +25
System.Web.Data Access.SqlConne ctionHelper.Cre ateMdfFile(Stri ng
fullFileName, String dataDir, String connectionStrin g) +397
Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET
Version:2.0.507 27.210

------------------------------
Brad Isaacs
..NET Web Developer, Consultant
www.webdevcreations.com
bi*****@rogers. com

Mar 2 '07 #1
1 3757

I bypass all that drama.
Create a .bat file.
Call it:
Build_WebSite_R eleaseVersion.b at

--start batch, do not include this line
@echo off
ECHO When/If prompted with the question:
ECHO .

ECHO Does ".......... " specify a file name or directory name on the
target
ECHO (F = file, D = directory)?
ECHO _
ECHO You should answer with "D" for directory.

ECHO _
ECHO _
ECHO _

ECHO When/If prompted with the question:
ECHO _
ECHO Overwrite (...........)
ECHO (Yes/No/All)?
ECHO _
ECHO You should answer with "A" for "All"
ECHO _

@echo on
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\d evenv.exe"
NorthwindManage r.sln /Rebuild Release
XCOPY .\Presentation. Web1\*.* c:\wutemp\Relea seBuild_Web_Nor thwindManager
/EXCLUDE:.\exclu de.txt /e/s

-- end batch, do not include this line
Create a exclude.txt file
-- start exclude.txt do not include this line
..pdb
Build_WebSite.b at
exclude.txt
..sln
..vbproj
..csproj
-- end exclude.txt

Put the 2 files in the directory where your .sln file lives.
My example above presupposes that the .sln file is in one directory higher
than where you have the .aspx files (aka, you may need to adjust the
\Presentation.W eb.1\ value.

...



"Brad Isaacs" <bi*****@rogers .comwrote in message
news:uq******** ******@TK2MSFTN GP03.phx.gbl...
I am working with ASP.NET 2.0 and using an SQL Server 2000 database.

I am using Visual Studio 2005 and developing on my Local machine. I am
working with Login controls ASP.Configurati on, I wanted to move my work
and needed to place it on the server.

Using VS 2005 , went to BUILD
-Publish Web Site
Checked the box for :: Alow this precompiled site to be updatable.

The files are all now sitting on my Server, and when I load my web site,
it
loads the first default.aspx page that contains my LOGIN control.
However,
when I try to login it is trying to load a SQL Server Express 2005
database.
Yet I am not using SQL Server 2005, and in my App_Data file folder I DO
NOT
have an databasename.MD F inside it. However VS 2005 had created a file
and
stuck it into my Project. I then receive the following error. See below:

Can anyone suggest why this is occurring and what I can do to resolve this
issue??

Why is it trying to perform an SQLExpress database file auto-creation
error,
when I am using an SQL Server 2000 databse???

Any ideas would be greatly appreciated,

Thanks in advance,

Sincerely,

~Brad
_______________ _______________ _____
ERROR: MESSAGE BELOW:

Server Error in '/gddb' Application.

An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

SQLExpress database file auto-creation error:
The connection string specifies a local Sql Server Express instance using
a
database location within the applications App_Data directory. The provider
attempted to automatically create the application services database
because
the provider determined that the database does not exist. The following
configuration requirements are necessary to successfully check for
existence
of the application services database and automatically create the
application services database:
1. If the applications App_Data directory does not already exist, the web
server account must have read and write access to the applications
directory. This is necessary because the web server account will
automatically create the App_Data directory if it does not already exist.
2. If the applications App_Data directory already exists, the web server
account only requires read and write access to the applications App_Data
directory. This is necessary because the web server account will attempt
to
verify that the Sql Server Express database already exists within the
applications App_Data directory. Revoking read access on the App_Data
directory from the web server account will prevent the provider from
correctly determining if the Sql Server Express database already exists.
This will cause an error when the provider attempts to create a duplicate
of
an already existing database. Write access is required because the web
server accounts credentials are used when creating the new database.
3. Sql Server Express must be installed on the machine.
4. The process identity for the web server account must have a local user
profile. See the readme document for details on how to create a local user
profile for both machine and domain accounts.
Source Error:
An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this
failure
may be caused by the fact that under the default settings SQL Server does
not allow remote connections. (provider: SQL Network Interfaces, error:
26 -
Error Locating Server/Instance Specified)]
System.Data.Sql Client.SqlInter nalConnection.O nError(SqlExcep tion
exception, Boolean breakConnection ) +734947
System.Data.Sql Client.TdsParse r.ThrowExceptio nAndWarning(Tds ParserStateObje c
t
stateObj) +188
System.Data.Sql Client.TdsParse r.Connect(Boole an& useFailoverPart ner,
Boolean& failoverDemandD one, String host, String failoverPartner , String
protocol, SqlInternalConn ectionTds connHandler, Int64 timerExpire, Boolean
encrypt, Boolean trustServerCert , Boolean integratedSecur ity,
SqlConnection
owningObject, Boolean aliasLookup) +820
System.Data.Sql Client.SqlInter nalConnectionTd s.OpenLoginEnli st(SqlConnectio n
owningObject, SqlConnectionSt ring connectionOptio ns, String newPassword,
Boolean redirectedUserI nstance) +628
System.Data.Sql Client.SqlInter nalConnectionTd s..ctor(DbConne ctionPoolIdenti t
y
identity, SqlConnectionSt ring connectionOptio ns, Object providerInfo,
String
newPassword, SqlConnection owningObject, Boolean redirectedUserI nstance)
+170
System.Data.Sql Client.SqlConne ctionFactory.Cr eateConnection( DbConnectionOpt i
ons
options, Object poolGroupProvid erInfo, DbConnectionPoo l pool, DbConnection
owningConnectio n) +130
System.Data.Pro viderBase.DbCon nectionFactory. CreateNonPooled Connection(DbCo n
nection
owningConnectio n, DbConnectionPoo lGroup poolGroup) +27
System.Data.Pro viderBase.DbCon nectionFactory. GetConnection(D bConnection
owningConnectio n) +47
System.Data.Pro viderBase.DbCon nectionClosed.O penConnection(D bConnection
outerConnection , DbConnectionFac tory connectionFacto ry) +105
System.Data.Sql Client.SqlConne ction.Open() +111
System.Web.Mana gement.SqlServi ces.GetSqlConne ction(String server,
String
user, String password, Boolean trusted, String connectionStrin g) +68

[HttpException (0x80004005): Unable to connect to SQL Server database.]
System.Web.Mana gement.SqlServi ces.GetSqlConne ction(String server,
String
user, String password, Boolean trusted, String connectionStrin g) +124
System.Web.Mana gement.SqlServi ces.SetupApplic ationServices(S tring
server,
String user, String password, Boolean trusted, String connectionStrin g,
String database, String dbFileName, SqlFeatures features, Boolean install)
+86
System.Web.Mana gement.SqlServi ces.Install(Str ing database, String
dbFileName, String connectionStrin g) +25
System.Web.Data Access.SqlConne ctionHelper.Cre ateMdfFile(Stri ng
fullFileName, String dataDir, String connectionStrin g) +397
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET
Version:2.0.507 27.210

------------------------------
Brad Isaacs
.NET Web Developer, Consultant
www.webdevcreations.com
bi*****@rogers. com

Mar 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1603
by: Dave Wendleton | last post by:
We are developing ASP.Net apps. We would like to use the Deployment project to create MSI files that would be installed on to the production servers. This will allow us to have our operations department do installs at night easily. The problem I have encountered is there seems to be no way of targeting a specific site on the server. When I try to install it will always go to the first site in the list. Each site has a seperate IP and URL...
0
1307
by: John Roper | last post by:
Hi, I have an issues with my web app deployment project. The project actually has an ASP.NET site and a web service site, which are both destined to be virtual directories under a root website (by default the one on port 80). When installed on a machine that has a default document for the root site of xxxindex.html, this gets REPLACED by default.aspx and the application name gets set to my application. I do not want the root site to be...
2
2271
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver in any place other than the default website? I do not want to install it there as our IIS has multiple websites, but nowhere is there an option when creating the install package in Visual Studio to specify what website on the server you want to...
6
2623
by: Jeremy S. | last post by:
Sorry if this is too far OT - I posted this in the IIS group and got no response - so here goes: What would be a good or recommended way to make a Web site in IIS6 inaccessible to users on the Internet. My situation is that I will periodically update a ASP.NET Web application. While I am making the update (which will take only a couple of minutes, max) and subsequently checking that everything works as planned after the update (which may...
9
2379
by: Alex Greenberg | last post by:
I don't know, but I find the Publish Web Site feature very lacking and weak. I mean, why does the damn thing have to delete unrelated directories like /images /documents etc. This is so impractical, what if my users generate these documents or images through their interaction with the site, and then I change some code and publish it, boom, everything is gone. I cannot put these folders outside the solution due to security/pathing...
6
1613
by: Ben Fidge | last post by:
Is there any way of configuring VS2005's Publish Web Site feature to ignore certain files? During day to day testing of our web-site, log files are created that I don't want to deploy to the production server. However, Publish Web Site copies these over and they have to be manually removed before deployment. This rules out using FTP to publish because it would overwrite the auto-generated log files on the live server. Ideally, I'd to...
10
3772
by: eswanson | last post by:
I have broken up my web site into smaller web site projects. When I look at the precompiled files, it always has the virtual directory in them ie: <preserve resultType="3" virtualPath="/Security/DefaultLogin.aspx" hash="fde4916e6" filehash="ffffe84d717a4765" flags="110000" assembly="App_Web_-xo1n4yg" type="ASP.defaultlogin_aspx"> <filedeps> <filedep name="/Security/DefaultLogin.aspx" /> </filedeps> </preserve>
13
2442
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current install is via InstallShield. As I've just found out that MSDE is not supported under Vista, I need to migrate to SQLExpress. I am also potentially interested in migrating to using an installer built in Visual Studio. I have a few questions:
1
1539
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi everybody, I've got a solution that has several dll projects and a website. For the dll projects I've add a configuration 'debug - no code analysis'. Now for the website I can't create custom configurations... The fact that I can't create different configuration for running with code analysis and without code analysis is irritating, but I could live with it.
5
2961
by: Cirene | last post by:
When would I use "Copy Web site" over "Publish Website" or visa versa? Why would I use the Web Deployment Project vs these options? I want to make sure no one can pull up/read/download my vb source code (in ..vb files). I would prefer easy update of the site (code or aspx.) Thanks.
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.