CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
ASP.NET MVC Ready – 3 Months Free and Free Setup



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 1/26/2006 9:24:54 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 72 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
mkamoski
Asp.Net User
SQLExpress database file auto-creation error1/26/2006 9:24:54 PM

0



All--

Please help.

Why is my application throwing the "SQLExpress database file auto-creation error" after I have removed references to SQLExpress and pointed the code to a duplicate schema in SQL Server 2000?

Here are the details.

I cannot run SQLExpress at my hosting provider. As such, I want to use SQL Server 2000 instead. Therefore, I am seeking to remove all SQLExpress code and files and replace them with SQL2000 code. To that end, I have done the following.

--I have created a new web with the Personal Web Site (PWS) template in Visual Web Developer (VWD) on my local machine.

--I have deleted all of the SQLExpress files from the application.

--I have re-created the database schema in SQL Server 2000, including tables, SPs, and relations.

--I have added new connection string keys to "web.config".

--I have changed the code to call my custom "GetConnectionString()" method as-needed, which returns a valid connection string to my SQL 2000 DB.

--I have run the site locally and it seems to run fine.

--I have copied all files to my live location at my hosting provider, via FTP.

--When I try to load the "Default" page, I get the "SQLExpress database file auto-creation error". (See the ErrorDetails below.)

Why does this happen?

What exactly is causing my application to try to create the SQLExpress database?

Please advise.

ErrorDetails--

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

--ErrorDetails

FWIW, the current site location is http://site291.mysite4now.com/mkamoski/S15/Default.aspx but that may change.

Thank you.


http://www.WebLogicArts.com
whighfield
Asp.Net User
Re: SQLExpress database file auto-creation error1/27/2006 12:17:41 AM

0

Could you post your web.config less any security settings like password and user id's, we might be able to spot your problem.

- Will


- William

Give my enhanced version of the PWSK a look.

www.willyd.ca
mkamoski
Asp.Net User
Re: SQLExpress database file auto-creation error1/27/2006 1:33:00 AM

0



All--

I found the issue and it was MY fault.

I forgot to flip the switch before I posted my code to the live site to use the ReleaseConnectionString instead of the DebugConnectionString.

I fixed that and now it works fine.

I am sorry about the confusion.

Thank you.


http://www.WebLogicArts.com
mkamoski
Asp.Net User
Re: SQLExpress database file auto-creation error1/30/2006 3:17:05 PM

0

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <connectionStrings>
        <add name="Sql2000Debug" connectionString="Data Source=localhost; 
        Initial Catalog=MyCatalog;User Id=MyUserId;Password=MyPassword;"/>
        <add name="Sql2000Release" connectionString="Data Source=111.111.111.111;
        Initial Catalog=MyCatalog;User Id=MyUserId;Password=MyPassword;"/>
    </connectionStrings>
    <system.web>
        <pages styleSheetTheme="White"/>
        <customErrors mode="RemoteOnly"/>
        <compilation debug="true"/>
        <authentication mode="Forms">
            <forms loginUrl="Default.aspx" protection="Validation" timeout="300"/>
        </authentication>
        <authorization>
            <allow users="*"/>
        </authorization>
        <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
        <roleManager enabled="true"/>
        <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
            <providers>
                <add name="XmlSiteMapProvider" 
                description="SiteMap provider which reads in .sitemap XML files." 
                type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
            </providers>
        </siteMap>
    </system.web>
    <location path="Admin">
        <system.web>
            <authorization>
                <allow roles="Administrators"/>
                <deny users="*"/>
            </authorization>
        </system.web>
    </location>
</configuration>

http://www.WebLogicArts.com
mkamoski
Asp.Net User
Re: SQLExpress database file auto-creation error1/30/2006 3:21:31 PM

0



All--

FYI, as it turns out, this issue is still present, is a slightly different way.

As of now, the case is that the error message appears when the site is loaded for the 1st time. That is the 1st browser load (always?) causes the error to appear.

However, if one refreshes the browser, then the error message goes away.

Therefore, my orginal questions still stand--

--What is causing the "SQLExpress database file auto-creation error" message?

--What can one do to make this message go away?

Please advise.

Thank you.


http://www.WebLogicArts.com
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Special Edition Using Microsoft Expression Web 2 Authors: Jim Cheshire, Pages: 756, Published: 2008
Pro ASP.NET MVC Framework Authors: Steve Sanderson, Pages: 550, Published: 2009
Microsoft Expression Web 2007 in Depth Authors: Jim Cheshire, Pages: 792, Published: 2008

Web:
SQLExpress database file auto-creation error SQLExpress database file auto-creation error. Nightmare_BE Users Medals Monday, May 23, 2005 12:37:39 PM. Helpful Votes ...
SQLExpress database file auto-creation error: - ASP.NET Forums SQLExpress database file auto-creation error: Last post 06-07-2005 4:49 PM by andrew_K. 1 replies. Sort Posts: ...
SQLExpress database file auto-creation error: Web Parts - ASP.NET ... SQLExpress database file auto-creation error: The connection string specifies a local Sql Server Express instance using a database location ...
Knowledge with Neil » Blog Archive » How to fix the “SQLExpress ... Apr 19, 2008 ... How to fix the “SQLExpress database file auto-creation error” message. I encountered this problem while trying to develop webparts on a my ...
SQLExpress database file auto-creation error when using Visual Stu Sep 13, 2006 ... ASP.NET Development Server instead of IIS. ... database location within the applications App_Data directory. ... Boolean& failoverDemandDone ...

SQLExpress database file auto-creation error,2 - ng.asp-net-forum ... Why is my application throwing the "SQLExpress database file auto-creation error " after I have removed references to SQLExpress and pointed the code to a ...
SQLExpress database file auto-creation error:,2 - ng.asp-net-forum ... SQLExpress database file auto-creation error:, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.security, Date: 12/23/2006 12:39:45 AM, Replies: 3, ...
XCOPY deployment -- failure: "File creation error ... SQLExpress database file auto-creation error: The connection string specifies .. . ViewState V/s. Session? XCOPY deployment -- failure: "File creation error. ...
GridView page flip: The file web.sitemap required by ... --When I try to load the "Default" page, I get the "SQLExpress database file auto-creation error". ... I forgot to flip the switch before I ...
CreateUserWizard Database Problem - ng.asp-net-forum.security When I run the program, I get a "SQLExpress database file auto-creation error:" The program is trying to set up SQL Express, while I want it ...












2.0 bug- deleting 1.0 modules

edit document entry error

whitespace optimizer

i need help

dnn 3.1.1 possible search problem

getting crazy with httpcompress from blowery...

how to:multilanguage and url rewriting

webhost4life and permissions for child portals

connection problem with sql-server (2005)

3.0.7 issue: iframe

how do i retrieve the currently logged in user in dnn 3

what happens with dnn e-learn?

add / edit portal aliases functionality not showing

skinning dnn 2.0 - how to ?

problem with temporary url

weird - pages content does not show

skin restrictions??

newsfeed

anyone using orm to develop modules?

why do my menus float in the wrong place?

is there a way to check what version of dotnetnuke is running?

dnn access database issue

dnn 4.3.5 - issue with version conflict of a dll file.

any professional dnn developers in denver / front range?

hiding login button

create sql database

error: system.outofmemoryexception

moving only user from dnn 2.1.2 to dnn 3.0.12

skinnable modules?

what's the setup for multiple unique domain names, multiple databases, one core of dnn dll's?

   
  Privacy | Contact Us
All Times Are GMT