Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2008, 02:48 AM
Registered User
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Porting a web app to SQL 2005 Express

Hi everyone,

I am having a problem exporting the Photo Album application to my web / sql server.

On my domain, I have an IIS \ SQL 2k5 express server running on a single W2K3 Svr. I am accessing the site thru VWD Express 2k8 from a remote machine.

On my webserver, I've copied the files from the modification folder to the "PhotoGallery" subdirectory, set up the application, and enabled frontpage extensions.

After that, I attached to the given databases to my SQL Server and given the appropriate permissions to the ASPNET AND NETWORK SERVICE ACCOUNTS (Since I get conflicting errors about users not being able to access the secure portion of the website).

Here's the problem. The basic website works fine, but when I attempt to log in I cannot, and I get the following error:

Unable to open the physical file "d:\inetpub\wwwroot\PhotoGallery\App_Data\aspnetdb _log.ldf". Operating system error 5: "5(Access is denied.)".
Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
File activation failure. The physical file name "d:\inetpub\wwwroot\PhotoGallery\App_Data\aspnetdb _log.ldf" may be incorrect.


This is my connection string:
<connectionStrings>
    <add name="SqlServerConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=PhotoDB;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
</connectionStrings>

I've done everything I can think of and checked everything that I could read online, but I'm going nuts trying to figure this out.
Please help.

It's not the size of the dog in the fight, it's the size of the fight in the dog!
 
Old February 7th, 2008, 05:52 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Lee,

Sorry for my late response. SOmehow I overlooked this post.

Take a look at this article: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395

It somehow looks like you're mixing up concepts. E.g. store the database in App_Data but don't attach it on the fly. Make sure if you use "Initial Catalog=PhotoDB" that you have attached the database to the server, and added Network Service as user in SQL and in the database.

Hope this helps,

Imar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Web Developer 2005 Express Edition - Limits snew BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 November 15th, 2007 01:00 PM
SQL Express 2005 Tremmorkeep BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 20th, 2006 04:38 PM
Microsoft Visual Web Developer 2005 Express Editio FT BOOK: ASP.NET Website Programming Problem-Design-Solution 10 April 24th, 2006 12:25 AM
SQL Server 2005 Express with Visual Web Developer steffteo SQL Server 2005 1 March 19th, 2006 04:28 PM
Differences, Web Devel Express 2005, Normal Studio Dave Owens ASP.NET 2.0 Professional 1 December 28th, 2005 09:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.