Click here to Skip to main content
11,920,772 members (62,027 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET hosting web.Config , +
i build website that run in my localserve that creared by visul basic 2010.
but when i upload my web in server
i have this error

CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\inetpub\vhosts\\httpdocs\App_Data\CorpsDatabase.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

can any one help me and how to solve this problem

Posted 9-Mar-13 9:28am
ThePhantomUpvoter 9-Mar-13 14:55pm
What did your hosting company say when you talked to them about your problem?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Validate with your hosting provider may have a security policy that prevents you from performing that action.
alhamdi23 10-Mar-13 8:34am
thank you pohenix
but i do not understand the is the requirement to prevent this error
or what is cause this problem???
_pohenix_ 10-Mar-13 23:37pm
Well I think you have two options:
1. confirm with your hosting provider if you have permission to create or attach MS SqlServer databases. if you have privilege to attach, create databases of MS SQL Server technical support.
2. changes the database format (database type) mdf for Sql Compact sdf ie

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 548
1 Dave Kreskowiak 245
2 phil.o 170
3 KrunalRohit 134
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,815
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 9 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100