Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Access Denied to sqlConnection

Reply
Thread Tools

Access Denied to sqlConnection

 
 
John Giblin
Guest
Posts: n/a
 
      07-15-2003
I am trying to make a connection to the Db and everytime I try to open
the connection I get "access denied"

"ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user."


Now I have asp.net process running under a service account which is
part of the local admins.
web.config settings
<identity impersonate="false"/>
<authentication mode="Windows" />

I have IIS5 running intergrate security.

The Connection string I used through the gui in vs.net which was able
to see the tables. So it can see it.

Does anyone have an idea what this is? Help me please. This is
driving me crazy. I hate MS.

Also, I had it under impersonate = true and the stupid app kept ask
for my username\password\domain. Why is not using the sa account?
Here is my connectiob string.
this.sqlConnection1.ConnectionString = "workstation
id=NYCNJGIBLIN;packet size=4096;user id=sa;data
source=\"nycnjgiblin\\p" +
"erfect\";persist security info=False;initial catalog=SitePages";

any help would be appreciated.
John
 
Reply With Quote
 
 
 
 
Naveen K Kohli
Guest
Posts: n/a
 
      07-17-2003
Are you using Windows authentication or moxed mode authentication on SQL
Server?

--
Naveen K Kohli
http://www.netomatix.com
"John Giblin" <> wrote in message
news: om...
> I am trying to make a connection to the Db and everytime I try to open
> the connection I get "access denied"
>
> "ASP.NET is not authorized to access the requested resource. Consider
> granting access rights to the resource to the ASP.NET request
> identity. ASP.NET has a base process identity (typically
> {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
> the application is not impersonating. If the application is
> impersonating via <identity impersonate="true"/>, the identity will be
> the anonymous user (typically IUSR_MACHINENAME) or the authenticated
> request user."
>
>
> Now I have asp.net process running under a service account which is
> part of the local admins.
> web.config settings
> <identity impersonate="false"/>
> <authentication mode="Windows" />
>
> I have IIS5 running intergrate security.
>
> The Connection string I used through the gui in vs.net which was able
> to see the tables. So it can see it.
>
> Does anyone have an idea what this is? Help me please. This is
> driving me crazy. I hate MS.
>
> Also, I had it under impersonate = true and the stupid app kept ask
> for my username\password\domain. Why is not using the sa account?
> Here is my connectiob string.
> this.sqlConnection1.ConnectionString = "workstation
> id=NYCNJGIBLIN;packet size=4096;user id=sa;data
> source=\"nycnjgiblin\\p" +
> "erfect\";persist security info=False;initial catalog=SitePages";
>
> any help would be appreciated.
> John



 
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
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
anonymous access account for sqlConnection yurps ASP .Net 1 05-11-2005 02:27 PM
Custom Control design time access to SQLConnection on Web Page Robin Shaw ASP .Net 1 08-12-2004 02:19 PM
Custom Control design time access to SQLConnection on Web Page Robin Shaw ASP .Net Building Controls 1 08-12-2004 02:19 PM
Re: SqlConnection.Open() permission denied for remote sql server Kevin Spencer ASP .Net 3 08-15-2003 06:26 PM



Advertisments
 



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