CREATE DATABASE permission denied in database 'master'

Discussion in 'ASP .Net' started by casper, Apr 24, 2006.

  1. casper

    casper Guest

    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>

    <asp:DataList 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>
    </asp:DataList>

    </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
     
    casper, Apr 24, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?S2Vu?=
    Replies:
    8
    Views:
    21,446
    blomm
    Jul 7, 2006
  2. Doug McCann
    Replies:
    1
    Views:
    1,109
    William Brogden
    Aug 5, 2004
  3. Replies:
    0
    Views:
    859
  4. casper

    CREATE DATABASE permission denied in database 'master'

    casper, Apr 24, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    251
    casper
    Apr 24, 2006
  5. Prasath
    Replies:
    0
    Views:
    186
    Prasath
    Oct 14, 2004
Loading...

Share This Page