Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > CREATE DATABASE permission denied in database 'master'

Reply
Thread Tools

CREATE DATABASE permission denied in database 'master'

 
 
casper
Guest
Posts: n/a
 
      04-24-2006
Hi,

I use asp.net 2.0 and VWD (and sqlserver 2005 express) on windows 2000 sp4..
Starting from VWD, it works.
Starting from the browser, the code below produces this error:
CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\Documents and
Settings\Administrator.PEN1800\My
Documents\testfromc\App_Data\WroxUnited.mdf failed. A database with the same
name exists, or specified file cannot be opened, or it is located on UNC
share.
<form id="form1" runat="server">
<div>
<asp:SqlDataSource id="SqlDataSource1" Runat="server"
ProviderName="<%$ ConnectionStrings:WroxUnited.ProviderName %>"
ConnectionString="<%$ ConnectionStrings:WroxUnited %>"
SelectCommand="SELECT * FROM News">

</asp:SqlDataSource>

<aspataList ID="DataList1" Runat="server"
DataSourceID="SqlDataSource1"
RepeatDirection="Vertical" RepeatLayout="Flow" >
<ItemTemplate>
<div class="newsItem">
<span class="newsTitle"><%#Eval("Title")%></span>
<span class="newsDate"><%#Eval("DateToShow", "{0:dd MMM
yyyy}")%></span>
</div>
<span class="newsContent">
<asp:Image style="float:right" ID="NewsImage"
Runat="server"
ImageUrl='<%# Eval("PictureURL", "~/NewsImages/{0}")
%>' />
<%#Eval("Description") %>
</span>
</ItemTemplate>
</aspataList>

</div>
</form>
The app_data directory contains wroxunited.mdf. and has the right
permissions (IWAM_myserver has full control)

What's the problem here?
Tnaks for help
Casper


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CREATE DATABASE permission denied in database 'master'. ravi.govindaraju@gmail.com ASP .Net 0 04-05-2007 04:10 PM
EXECUTE permission denied on object 'sp_sdidebug', database 'maste =?Utf-8?B?S2Vu?= ASP .Net 8 07-07-2006 02:22 PM
CREATE DATABASE permission denied in database 'master' casper ASP .Net 0 04-24-2006 02:41 PM
EXECUTE permission denied on object 'getUniqueCities', database 'd =?Utf-8?B?ZGF2aWQ=?= ASP .Net 1 03-28-2005 07:23 PM
Create and Execute Procedure Permission denied in database 'dbxxx' Prasath ASP .Net Web Services 0 10-14-2004 10:53 AM



Advertisments