473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problems Setting Up Database

I seem to be having errors creating and accessing an SQL database.
Unfortunatley, I am brand new to SQL setup and administration issues so this
really is not my area of expertise.

I know I had to install some type of IIS component to run databases from
Visual Studio 2003. Since then, I've installed Visual Studio 2005. I know VS
2005 has some component so that IIS is not required.

Here's the two errors:

I right click on Data Connections in the Server Explorer and choose 'Create
New SQL Server Database'. It doesn't seem to matter if I select my computer
name or enter localhost as the server name. I select Use Windows
Authentication. I enter a database name and hit OK. After some delay, I get
the following error:
>>>>>
Microsoft Visual Studio
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 remot connections.
(provider: Named Pipes Provider, error: 40 - Count no open a connection to
SQL Server).
<<<<<

Then, I get what seems to be a related error when I create a personal
website starter. It seems to create okay but when I run it I get an error
page:
>>>>>
Server Error in '/Starter1' Application.
--------------------------------------------------------------------------------
An error occurred during the execution of the SQL file 'InstallCommon.sql'.
The SQL error number is -2 and the SqlException message is: Timeout expired.
The timeout period elapsed prior to completion of the operation or the
server is not responding.
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:

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.

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.
Sql Server Express must be installed on the machine.
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:
[SqlExecutionException: An error occurred during the execution of the SQL
file 'InstallCommon.sql'. The SQL error number is -2 and the SqlException
message is: Timeout expired. The timeout period elapsed prior to completion
of the operation or the server is not responding.]
System.Web.Management.SqlServices.ExecuteFile(Stri ng file, String server,
String database, String dbFileName, SqlConnection connection, Boolean
sessionState, Boolean isInstall, SessionStateType sessionStatetype) +748
System.Web.Management.SqlServices.SetupApplication Services(String server,
String user, String password, Boolean trusted, String connectionString,
String database, String dbFileName, SqlFeatures features, Boolean install)
+538
System.Web.Management.SqlServices.Install(String database, String
dbFileName, String connectionString) +26
System.Web.DataAccess.SqlConnectionHelper.CreateMd fFile(String
fullFileName, String dataDir, String connectionString) +386

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
<<<<<

If anyone can offer some advice, I'd really appreciate it!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
Aug 27 '06 #1
0 1015

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

Similar topics

1
by: raysaun | last post by:
I am trying to set a TableCellEditor for a JTable, however, the editor never seems to get called. I can not even get a simplified version (below) to work. When I put a breakpoint on the return...
4
by: Tamer Higazi | last post by:
Hi! I wrote a small script setting a cookie.... but nothing is being set. What could be the problem?! Did I make something wrong?! One script is used to ask for the cookie and the other one shows...
1
by: Brian Henry | last post by:
I have a few reports in crystal reports.net, and our database the application works with is selected at startup (development, live,test).. but the reports were all designed with the development...
3
by: Bonj | last post by:
When I am in a database project in VS.NET 2003 EA, using the Run Stored Procedure option times out even though the timeout option in Tools, Options, Database Tools is not checked. Anybody else...
4
by: David Kyle | last post by:
Hello there, I'm having some problems setting the TextBox.Text Property in my code and having it returned to the client in the source when the TextBox.TextMode="Password". I know this is...
4
by: pk_pk | last post by:
hi, i've searched quite a bit, but cant find any post relating to sql command for setting database passwords. anyone know how? thanks pk
1
by: jahull | last post by:
This works fine in IE & opera, but not in firefox. I basically have this ... <div id="main"> <div id="preview" style="height: 600px; width: 200px"> some stuff in here... </div> </div>
0
by: Jonathan Wood | last post by:
I seem to be having errors creating and accessing an SQL database. Unfortunatley, I am brand new to SQL setup and administration issues so this really is not my area of expertise. I know I had...
1
by: Cindy Lee | last post by:
My browser always shows the en-US local resource file, even though I try to set it to my french resource file: (this is the first part of onPageload--) Thread.CurrentThread.CurrentCulture = new...
0
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.