UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Windows Reseller Hosting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 21-06-2007, 21:00
new member
 
Join Date: Jun 2007
Posts: 1
Default Connecting website to MS SQL Express db

Hi everyone,

I have been creating a website hosting over the last few weeks, and have just bought my hosting package etc from here.

Basically, I've used Visual Studio Express with the built in SQL Server Express db hooked on with stored procs and tables.

Locally, this is all running fine - but I'm have a few issues on the remote website hosting. I have put all the website hosting files in the 'httpdocs' folder, and the SQL Server db is under this structure within an 'App_Data' folder

On loading the website hosting I was getting :

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.
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.

Exception Details: System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.


After looking through a few forums I changed my connection string in the web config, so that User Instance = False, but now get an even odder error:


CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file D:\Inetpub\vhost\#####.co.uk\httpdocs\App_Data\Web DB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
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.

Exception Details: System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file D:\Inetpub\vhost\#####.co.uk\httpdocs\App_Data\Web DB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Can anyone help?
Many thanks,
Rich

P.S. if useful, my web config connection string is:
connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=False;AttachDBFilename=|DataDirectory|Web DB.mdf"
providerName="System.Data.SqlClient"

Reply With Quote
  #2 (permalink)  
Old 21-06-2007, 22:12
System Administrator
 
Join Date: Dec 2006
Location: localhost
Posts: 633
Arrow

Hi Rich,

Could you please place a ticket or email us at windows@eukhost.com with the complete details (URL, DB name, DB username, DB password, etc) to produce the above mentioned error. The errors appears to be related to user rights & permissions either on the DB or the machine username. This will be fixed & your ticket will be replied on priority. Thank you,
__________________

Rock _a.k.a._ Jack L.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
||
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
  #3 (permalink)  
Old 22-06-2007, 04:28
System Administrator
 
Join Date: Dec 2006
Location: localhost
Posts: 633
Lightbulb

Rich,

It appears like your scripts are trying to write to the 'master' database, which is a system database & is only written by the 'sa' user. If you have designed the code on your end (Visual Studio Express), it may work on your local machine, but not on the server. Please re-design it & make sure you supply the correct DB name for the Asp.Net scripts to access/fetch data.
We're still working on your issue & you'll be updated in the ticket itself, as I think you don't want the name of your website hosting disclosed
__________________

Rock _a.k.a._ Jack L.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
||
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 13:13.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles