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

aspnetdb doesn't attach.

I am trying to work with web part framework. Yesterday I build try-it site
and it work just fine.

Today I tried to do the same and I keep getting this message
attempt to attach an auto-named database for file C:\Documents and
Settings\Shimon\My
Documents\Development\WebRoots\PipeBizWeb\PipeBizW eb\App_Data\aspnetdb.mdf
failed. A database with the same name exists, or specified file cannot be
opened, or it is located on UNC share.

I tried to delete the file, restart machine. Still have the same message.

Any suggestions?
Thanks.
Shimon.
Mar 31 '06 #1
3 1230
Hi Shimon,

Thank you for posting.

From your description, I understand you had an ASP.NET 2.0 web application
which use SQL Express file database as the webpart service. It worked well
, but ran into some "can not attach database file..." error recently,
correct? If anything I missed, please feel free to let me know.

Based on my research, it is likely due to some connection issue, what's the
connectionstring of the webpart service's connection setting, have you done
any modificaiton on it? Here is a certain thread on the web forum
discussing on a similiar issue as this, you can have a look to see whether
it helps:

http://forums.asp.net/903667/ShowPost.aspx
Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Mar 31 '06 #2
No.
I never had THIS application working with web parts.
I had different application working. Both of them used SQL Express.
I think the main difference is that working one used developer server while
not working is using IIS. I don't know if this is the reason.
I didn't configure any connection strings for the features provided by
asp.net so it is using defaults.
I looked on googles. There is some information on it but what ever I found
didn't help.
Also I have no problem connecting to the DB using VS2005 and from config
control manager ( the feature in VS that helps you manage web.config file.)
Provider tests pass fine also.

Thanks.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:4E**************@TK2MSFTNGXA01.phx.gbl...
Hi Shimon,

Thank you for posting.

From your description, I understand you had an ASP.NET 2.0 web application
which use SQL Express file database as the webpart service. It worked well
, but ran into some "can not attach database file..." error recently,
correct? If anything I missed, please feel free to let me know.

Based on my research, it is likely due to some connection issue, what's
the
connectionstring of the webpart service's connection setting, have you
done
any modificaiton on it? Here is a certain thread on the web forum
discussing on a similiar issue as this, you can have a look to see whether
it helps:

http://forums.asp.net/903667/ShowPost.aspx
Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Mar 31 '06 #3
Thanks for your response Shimon,

So you can still have the application running correctly(connect to the SQL
EXPRESS db) in VS 2005 test web server? If so, the difference between IIS
hosted application and the test webserver hosted one is that when using
Test web server, the process runs under the current logon user(the
interactive user ....). When hosting in IIS, it use the IIS's worker
process identity run the application. I suggest you try the following
things:

Move your web project from the user specific location( C:\Documents and
Settings\Shimon\My Documents\Development\WebRoots\PipeBizWeb\PipeBizW eb\)
to a public location such as D\WebProjects\PipeBizWeb and retest it through
both vs 2005 test server and IIS to see whether it works. If still not
work, you may consider open the SQLExpress manager through SQL 2005
management studio and then try grant your IIS's ASP.NET worker process
account the sufficient permission to access any database in the SQL Express
instance. IMO, it is likely due to the mdf file is under your logon user's
user specific location which can not be correctly referenced by the IIS
worker process account.

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 3 '06 #4

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

Similar topics

0
by: Bendik Engebretsen | last post by:
I have made an ASP.NET 2.0 WebSite using the 'Personal WEB site' starter kit. It runs fine on my XP machine where I have the VStudio.NET 2005 Beta installed. But if I try to run it from our Win...
5
by: VB Programmer | last post by:
My web hoster says that I have to rename my ASPNETDB.MDF SqlExpress db for my 2.0 site to work. Is this accurate? If so, how can I rename it without breaking anything on my site? FYI: This is...
1
by: szosty | last post by:
hi how can I add 1000 users (user_name, password) from txt, csv file to aspnetdb.mdf database??? thanks eresz
8
by: nick | last post by:
I have only SQL Server 2005 installed on my PC. And I tried to add the following rows in web.config to use SQL Server 2005 instead of Express: <connectionStrings> <clear /> <add...
3
by: Freddie | last post by:
hi, i try to get the asp.net 2.0 security controls to work with SQL Server 2005 Dev RTM, this is my connetion string in mashine.config <connectionStrings> <add name="LocalSqlServer"...
1
by: ken bus | last post by:
Would like to write more complex SQL with the SQL Server Management Express' Designer but trying to attach the ASPNETDB.MDB database causes errors. Are these two things incompatible?
1
by: CFTK | last post by:
This is the error I get when I try to login in my application from another machine: An attempt to attach an auto-named database for file C:\Documents and Settings\....\App_Data\aspnetdb.mdf...
2
by: gihope | last post by:
I have searched everywhere for answers to this but none of the posts I have read have helped yet. My website works perfectly until I upload it onto a remote web host. When this happens the logisn...
6
by: greg.hart | last post by:
Hello all, Just wanted to get some clarification on something. I was setting out to create a login page for people to login and then be able to access certain aspects of the website. Instead...
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...
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
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
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
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...
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.