Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   Access Denied to sqlConnection (http://www.velocityreviews.com/forums/t764732-access-denied-to-sqlconnection.html)

John Giblin 07-15-2003 04:01 PM

Access Denied to sqlConnection
 
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

Naveen K Kohli 07-17-2003 03:41 PM

Re: Access Denied to sqlConnection
 
Are you using Windows authentication or moxed mode authentication on SQL
Server?

--
Naveen K Kohli
http://www.netomatix.com
"John Giblin" <jwgiblin3@hotmail.com> wrote in message
news:3d6785ec.0307150801.371426a2@posting.google.c 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





All times are GMT. The time now is 02:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.