473,398 Members | 2,113 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,398 software developers and data experts.

Web app on a web server, but run on localhost

I have a asp.net 2.0 web application created on a mapped web server drive, a
very simple one with only one default page which is blank. But when I run it
inside VS, the URL is http://localhost:1245/. Is this right or not?

ALso the ASP.NET web site administration tool shows error in the Security
tab as:

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: An error occurred
during the execution of the SQL file 'InstallCommon.sql'. The SQL error
number is 5110 and the SqlException message is: The file
"I:\WEBAPP\WEBAPP\APP_DATA\ASPNETDB_TMP.MDF" is on a network path that is not
supported for database files. CREATE DATABASE failed. Some file names listed
could not be created. Check related errors. Creating the
ASPNETDB_0899077b243c4138b1775e6c0684c57d database...

Thanks for the help.
Sep 20 '07 #1
4 3620
You have to know where your web app runs, not where the files stores.
Http://localhost... means you are running your web app on your computer
(especially when you are doing development). The files and web apps virtual
directory, however, could be a network location, which is your case.

As for the database setup error, it is because you are using SQL
Server2005/Express as ASP.NET website's management data store, such as
membershipmanagement. In this case, the data file used by SQL Server/Express
(*.mdf/*.ldf) must be on the computer where SQL Server/Express installs,
i.e. must be on local drive, not on network location. So, most like, your
SQL Server/Express is installed on your development computer, so the
"ASPNETDB_TEMP.MDF" must be on your computer's local hard drive.

"shadow" <sh****@discussions.microsoft.comwrote in message
news:9E**********************************@microsof t.com...
>I have a asp.net 2.0 web application created on a mapped web server drive,
a
very simple one with only one default page which is blank. But when I run
it
inside VS, the URL is http://localhost:1245/. Is this right or not?

ALso the ASP.NET web site administration tool shows error in the Security
tab as:

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: An error
occurred
during the execution of the SQL file 'InstallCommon.sql'. The SQL error
number is 5110 and the SqlException message is: The file
"I:\WEBAPP\WEBAPP\APP_DATA\ASPNETDB_TMP.MDF" is on a network path that is
not
supported for database files. CREATE DATABASE failed. Some file names
listed
could not be created. Check related errors. Creating the
ASPNETDB_0899077b243c4138b1775e6c0684c57d database...

Thanks for the help.
Sep 20 '07 #2
I opened the app, which stays in the web server, in VS 2005. And I built it
and ran it. I did the same thing in VS2003, and it ran from the web server.
How can I set the app to run from web server, when I am debugging it?

Thanks a lot for your help.

"Norman Yuan" wrote:
You have to know where your web app runs, not where the files stores.
Http://localhost... means you are running your web app on your computer
(especially when you are doing development). The files and web apps virtual
directory, however, could be a network location, which is your case.

As for the database setup error, it is because you are using SQL
Server2005/Express as ASP.NET website's management data store, such as
membershipmanagement. In this case, the data file used by SQL Server/Express
(*.mdf/*.ldf) must be on the computer where SQL Server/Express installs,
i.e. must be on local drive, not on network location. So, most like, your
SQL Server/Express is installed on your development computer, so the
"ASPNETDB_TEMP.MDF" must be on your computer's local hard drive.

"shadow" <sh****@discussions.microsoft.comwrote in message
news:9E**********************************@microsof t.com...
I have a asp.net 2.0 web application created on a mapped web server drive,
a
very simple one with only one default page which is blank. But when I run
it
inside VS, the URL is http://localhost:1245/. Is this right or not?

ALso the ASP.NET web site administration tool shows error in the Security
tab as:

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: An error
occurred
during the execution of the SQL file 'InstallCommon.sql'. The SQL error
number is 5110 and the SqlException message is: The file
"I:\WEBAPP\WEBAPP\APP_DATA\ASPNETDB_TMP.MDF" is on a network path that is
not
supported for database files. CREATE DATABASE failed. Some file names
listed
could not be created. Check related errors. Creating the
ASPNETDB_0899077b243c4138b1775e6c0684c57d database...

Thanks for the help.

Sep 20 '07 #3
sqlserver does not support mapped drives for databases. you need to copy
the mdf to a local drive and change the connect string.

-- bruce (sqlwork.com)

shadow wrote:
I have a asp.net 2.0 web application created on a mapped web server drive, a
very simple one with only one default page which is blank. But when I run it
inside VS, the URL is http://localhost:1245/. Is this right or not?

ALso the ASP.NET web site administration tool shows error in the Security
tab as:

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: An error occurred
during the execution of the SQL file 'InstallCommon.sql'. The SQL error
number is 5110 and the SqlException message is: The file
"I:\WEBAPP\WEBAPP\APP_DATA\ASPNETDB_TMP.MDF" is on a network path that is not
supported for database files. CREATE DATABASE failed. Some file names listed
could not be created. Check related errors. Creating the
ASPNETDB_0899077b243c4138b1775e6c0684c57d database...

Thanks for the help.
Sep 20 '07 #4
When you see http://localhost:1245 with a nonstandard port number, that
means your project is configured to run under the built - in development web
server in Visual Studio, NOT "IIS".
you can change the configuration to have it run under IIS in the Properties
tabs.

Be aware that the default SQLExpress arrangement uses the "User Instance"
feature that attaches the physical MDF database file at runtime, but this
*only* works on the same machine.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"shadow" wrote:
I have a asp.net 2.0 web application created on a mapped web server drive, a
very simple one with only one default page which is blank. But when I run it
inside VS, the URL is http://localhost:1245/. Is this right or not?

ALso the ASP.NET web site administration tool shows error in the Security
tab as:

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: An error occurred
during the execution of the SQL file 'InstallCommon.sql'. The SQL error
number is 5110 and the SqlException message is: The file
"I:\WEBAPP\WEBAPP\APP_DATA\ASPNETDB_TMP.MDF" is on a network path that is not
supported for database files. CREATE DATABASE failed. Some file names listed
could not be created. Check related errors. Creating the
ASPNETDB_0899077b243c4138b1775e6c0684c57d database...

Thanks for the help.
Sep 20 '07 #5

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

Similar topics

2
by: Asad Khan | last post by:
Hello, I was using MySQL till a few days ago just fine. Now everytime I try to run it using mysql.exe, I get the following error: "can't connect to mysql server 'localhost' (10061)" What...
3
by: zeedan | last post by:
Hi, I appologise if I'm not posting this to the correct group, but I'm having problems starting MySQL server. I need it in order to post a websurvey for a research project I'm doing for a college...
14
by: John Spiegel | last post by:
Hi all, I'm missing something, probably stupid, on connecting to a SQL Server database from an aspx file. I haven't really done much w/ SQL Server and suspect that it's a problem on that side. ...
19
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
6
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine,...
4
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
29
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
3
by: teo | last post by:
I'm developing a software (a WinApp, not a WebApp) to retrieve Date & Time from a web server, but firstly I need to to test it on my PC, with "localhost" I'm using the VB Net language (below...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.