473,394 Members | 1,709 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,394 software developers and data experts.

asp.net 2.0 membership ASPNETDB_TMP.MDF" is on a network path that is not supported for database files

I've been playing around with new (for 2.0) membershp functionality.

I was able to build a simple login form that secures a directory on a
project I built locally on my development desktop.

However, when I attempt to follow the same steps on the remote test
server (a website I access via filesystem security accross my lan ).. I
get the following when I attempt to select the security tab from the
administer selection of the login control:

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
"\\servername\folder\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_a10a1b7695ae4af7ad287b55252fa7bd database...

To check security, I am from my desktop able to write to the folder and
add new items from vs.net 2005.

However if I attempt to add new item database under the APP_DATA folder
through vs.net I get an error that the db file is on a network path
not support for database files.

How do I correct this? I never knew sqlserver cared where I store data
files.

The remote server is a win 2000 server and the db is sql server 2000.

Could it be that on the remote webserver/db server I authenticate using
a sql server login for sa? On my desktop, I think I just default to
windows authentication. Sorry, noob question, if this is the issue,
where and how to I tell my project how to connect... and if it is, Im
wondering why the new ASPNETDB_TMP.MDF requires a different login since
I did not have to worry about any of this when I tested on my local
client.

Aug 24 '06 #1
3 4110
The membership database location is stored in <connectionstringsection of
the web.config. You can find which connection string by looking at the
<membershiptag (by name). Also look at the <roleManagertag.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
<ja***@cyberpine.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
I've been playing around with new (for 2.0) membershp functionality.

I was able to build a simple login form that secures a directory on a
project I built locally on my development desktop.

However, when I attempt to follow the same steps on the remote test
server (a website I access via filesystem security accross my lan ).. I
get the following when I attempt to select the security tab from the
administer selection of the login control:

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
"\\servername\folder\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_a10a1b7695ae4af7ad287b55252fa7bd database...

To check security, I am from my desktop able to write to the folder and
add new items from vs.net 2005.

However if I attempt to add new item database under the APP_DATA folder
through vs.net I get an error that the db file is on a network path
not support for database files.

How do I correct this? I never knew sqlserver cared where I store data
files.

The remote server is a win 2000 server and the db is sql server 2000.

Could it be that on the remote webserver/db server I authenticate using
a sql server login for sa? On my desktop, I think I just default to
windows authentication. Sorry, noob question, if this is the issue,
where and how to I tell my project how to connect... and if it is, Im
wondering why the new ASPNETDB_TMP.MDF requires a different login since
I did not have to worry about any of this when I tested on my local
client.

Aug 25 '06 #2
Since sending the email, I did add the connection string to web.config:

<connectionStrings>
<remove name="xx.xxx.xx.xx"/>
<add name="xx.xx.xx.xx"
connectionString="Data Source=MyServer;
Initial Catalog=appservicesdb;
Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>

It did not help.

Are you saying the role manager tag might solve this issue? I would
guess it appears that I can't get sqlserver to wiite a database (using
the installcommon.sql script) to a share. Seems more like file and
system security.
Incidently, I'm creating the website via the file system (after
creating a windows share) because If I attempt to create it via http I
get an error about being unable to create web. At some point I use to
be able to do that when I was using vs.net 2003.. though I don't see
anything in windows or IIS security on the server that sould allow me
to write via http. Perhaps the above goes away If I can create the
website via http:

Also, I notice on the web server that the websites I create via the
file system don't have virtual directories like the ones created
locally via http...

Thank you.

Cowboy (Gregory A. Beamer) wrote:
The membership database location is stored in <connectionstringsection of
the web.config. You can find which connection string by looking at the
<membershiptag (by name). Also look at the <roleManagertag.
Aug 25 '06 #3
More on this.

I never set up sql server on my local client. Apparently this was all
done by vs.net 2005. So membership works with very little info in the
web.config when run from the client.

I suspect my problem is that I on the web server, I don't have
integrated security set up. I suspect whatever windows user vs.net uses
(possibly asp.net) can't access the db without a user and password. All
my other asp.net applications have a user and password in the
connection string.

To further prove this, If I xcopy a working asp.net website that has
the membership login code to the web server, I get connection errors..
using the default web.config. I found some instruction on the net for
creating a connection string, but they assume integrated security.

<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=MyServer;
Initial Catalog=appservicesdb;
Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
I was wondering, can the above connection string have a user/password?
or
would it a better approach to somehow allow the asp.net user access to
the DB through windows.. and if so and safe, what's the best way to do
this?

ja***@cyberpine.com wrote:
I've been playing around with new asp.net 2.0 membershp functionality.

I was able to build a simple login form that secures a directory on a
project I built locally on my development desktop.

However, when I attempt to follow the same steps on the remote test
server (a website I access via filesystem security accross my lan
through visual studio ).. I get the following when I attempt to select
the security tab from the
administer selection of the login control:

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
"\\servername\folder\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_a10a1b7695ae4af7ad287b55252fa7bd database...

To check security, I am from my desktop able to write to the folder and
add new items from vs.net 2005.

However if I attempt to add new item database under the APP_DATA folder
through vs.net I get an error that the db file is on a network path
not support for database files.

How do I correct this? I never knew sqlserver cared where I store data
files.

The remote server is a win 2000 server and the db is sql server 2000.

Could it be that on the remote webserver/db server I authenticate using
a sql server login for sa? On my desktop, I think I just default to
windows authentication. Sorry, noob question, if this is the issue,
where and how to I tell my project how to connect... and if it is, Im
wondering why the new ASPNETDB_TMP.MDF requires a different login since
I did not have to worry about any of this when I tested on my local
client.
ja***@cyberpine.com wrote:
Since sending the email, I did add the connection string to web.config:

<connectionStrings>
<remove name="xx.xxx.xx.xx"/>
<add name="xx.xx.xx.xx"
connectionString="Data Source=MyServer;
Initial Catalog=appservicesdb;
Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>

It did not help.

Are you saying the role manager tag might solve this issue? I would
guess it appears that I can't get sqlserver to wiite a database (using
the installcommon.sql script) to a share. Seems more like file and
system security.
Incidently, I'm creating the website via the file system (after
creating a windows share) because If I attempt to create it via http I
get an error about being unable to create web. At some point I use to
be able to do that when I was using vs.net 2003.. though I don't see
anything in windows or IIS security on the server that sould allow me
to write via http. Perhaps the above goes away If I can create the
website via http:

Also, I notice on the web server that the websites I create via the
file system don't have virtual directories like the ones created
locally via http...

Thank you.

Cowboy (Gregory A. Beamer) wrote:
The membership database location is stored in <connectionstringsection of
the web.config. You can find which connection string by looking at the
<membershiptag (by name). Also look at the <roleManagertag.
Aug 25 '06 #4

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

Similar topics

6
by: mindphasr | last post by:
Greetings, Are there any tools freely available to modify or edit a .mdf database file? As far as seeing the actual tables? Regards, cd
4
by: Maury | last post by:
Hello, I use SQL Server 2005 Express and I would like to save on db of mine... Have I only to save the .mdf and .ldf data file or I need to stop some service or other programs? Can I use some...
4
by: jeffreywgraham | last post by:
A word of warning, I am new to .NET and fairly new to SQL Server. The problem I have must be a common one, but I am uable to make it work. I have a .NET project and have the user management and...
0
by: Kivak Wolf | last post by:
Hey, Not sure how to explain this. But I created a SQL server database file called "testingData.mdf" using VS2005 and I connected to it. After I create it, I can modify it, connect things to it...
1
by: Keith | last post by:
If I understand correctly, the SQL script called "InstallMembership.sql" can be used to create a membership database that exists in the instance of SQL Server 2005 used for my main application....
3
by: netsecsvc | last post by:
I have a customer who would like to set an expiration date on user accounts to 30 days. I'm using Asp.net 2.0 (VS 2005) with the default membership database and forms authentication. How do I...
1
by: amir | last post by:
Hello all, I have a db file .mdf in my program. I wander if it saves it everytime values are inserted and if not how can it be done ? furthermore i want to know where can i see the .mdf file after...
4
by: AC | last post by:
Hi there. My asp.net 2.0 development website uses roles to control access to sections of my site, configured using the asp.net configuration tool, which is great. Except that isn't available once...
2
by: asmx126453 | last post by:
hey peaple i get an error when i try to open a mdf database file in SQL server 2005 i tryd to use an converter but those are mssql to mysql converter i think thats wrong becase i cant get it to...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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
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...

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.