ASPNET access to MSDE

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASPNET access to MSDE

    I was wondering if anyone out there could shed some light on this MSDE .NET
    interaction problem

    I am running MSDE 2K latest service pack running Mixed mode, .NET Framework
    1.1 on XP Pro (also latest SP and updates)

    I have written a simple ASP app in C# which attempts to access MSDE via a
    WebService also written in C#. When I try and do an open the following
    exception is thrown:

    Cannot open database requested in login 'Act'. Login fails.Login failed for
    user 'YORK\ASPNET'

    I have gone into MSDE with osql and done the following

    EXEC sp_grantlogin 'YORK\ASPNET'
    EXEC sp_grantdbaccess 'YORK\ASPNET', 'Act'
    EXEC sp_defaultdb 'YORK\ASPNET', 'Act'

    And at a last resort I granted it the following permissions:

    EXEC sp_addrolemember db_owner, 'YORK\ASPNET'
    and made ASPNET part of the administrators group in XP

    But I still get the above error.

    Any ideas?


    DA Guest

  2. Similar Questions and Discussions

    1. Dreamweaver MX and MSDE
      I currently have MSDE running on my computer and I have tried to get dreamweaver to connect to it but for the life of me I cannot seem to nail it....
    2. "Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server
      Hi all, I am trying to run schtasks.exe from asp.net application wich uses forms authentication under ASPNET account. It gives me "Access is...
    3. ASPNET directory access on server denied
      Tell him that the ASPNET user is on good only on the webserver, if he wants to access a network resource, he'll have to impersonate a valid domain...
    4. ASPNET account and file access
      OK - I know this subject has been hased out many times before but I can't seem to figure this out. I have a Web service that needs to write to a...
    5. Restricting ASPNET ACLs without breaking ASPNET (newbie-ish)
      Scenario: We have a library with objects that host Jscript for the execution of complex validation code. This library is being called by an ASP.NET...
  3. #2

    Default RE: ASPNET access to MSDE

    Is the database on the same machine as IIS? SQL or Integrated security?

    321698 PRB: Cannot Connect to MSDE 2000 by Using ADO.NET with SQL Authentication
    [url]http://support.microsoft.com/?id=321698[/url]

    176377 INFO: Accessing SQL Server with Integrated Security from ASP
    [url]http://support.microsoft.com/?id=176377[/url]

    Scot Rose, MCSD
    Microsoft Visual Basic Developer Support
    Email : [email]scotr@online.microsoft.com[/email] <Remove word online. from address>

    This posting is provided “AS IS”, with no warranties, and confers no rights.

    Get Secure!
    [url]http://www.microsoft.com/security[/url]
    [url]http://www.microsoft.com/protect[/url]


    --------------------
    >From: "DA" <RA@companyabc.tw>
    >Subject: ASPNET access to MSDE
    >Date: Thu, 11 Sep 2003 15:27:48 +0100
    >Lines: 29
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Message-ID: <eybRiDHeDHA.2212@TK2MSFTNGP12.phx.gbl>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    >NNTP-Posting-Host: host213-122-215-17.in-addr.btopenworld.com 213.122.215.17
    >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.security: 6640
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    >I was wondering if anyone out there could shed some light on this MSDE .NET
    >interaction problem
    >
    >I am running MSDE 2K latest service pack running Mixed mode, .NET Framework
    >1.1 on XP Pro (also latest SP and updates)
    >
    >I have written a simple ASP app in C# which attempts to access MSDE via a
    >WebService also written in C#. When I try and do an open the following
    >exception is thrown:
    >
    >Cannot open database requested in login 'Act'. Login fails.Login failed for
    >user 'YORK\ASPNET'
    >
    >I have gone into MSDE with osql and done the following
    >
    >EXEC sp_grantlogin 'YORK\ASPNET'
    >EXEC sp_grantdbaccess 'YORK\ASPNET', 'Act'
    >EXEC sp_defaultdb 'YORK\ASPNET', 'Act'
    >
    >And at a last resort I granted it the following permissions:
    >
    >EXEC sp_addrolemember db_owner, 'YORK\ASPNET'
    >and made ASPNET part of the administrators group in XP
    >
    >But I still get the above error.
    >
    >Any ideas?
    >
    >
    >

    Scot Rose [MSFT] Guest

  4. #3

    Default Re: ASPNET access to MSDE

    Scot,

    Thanks for your reply, not sure where my last reply got to I thought I
    posted one, but incase it got lost somewhere along the way, here is my
    response again.

    SQL and IIS are on the same machine, and SQL is configured for mixed
    authentication but I am wanting to use integrated security.

    Richard


    DA Guest

  5. #4

    Default Re: ASPNET access to MSDE

    Take a look at the following articles (The first one is most likely what
    you need)

    316989 PRB: "Login Failed" Error Message When You Create a Trusted Data
    [url]http://support.microsoft.com/?id=316989[/url]

    306158 INFO: Implementing Impersonation in an ASP.NET Application
    [url]http://support.microsoft.com/?id=306158[/url]


    Scot Rose [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139