Click here to Skip to main content
11,796,275 members (78,526 online)
Rate this: bad
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 8:28am
ThePhantomUpvoter at 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 at 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_ at 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 Maciej Los 460
1 Abhinav S 368
2 OriginalGriff 340
3 CPallini 269
4 Sergey Alexandrovich Kryukov 252
0 OriginalGriff 2,012
1 Maciej Los 1,615
2 KrunalRohit 1,310
3 CPallini 1,015
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web03 | 2.8.151002.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