473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

ASPNET Account unable to access network

I've been developing on this machine for months and have created many
ASP.NET applications that connect to various remote machines, mostly
databases.

All of a sudden, I am unable to connect to my SQL Server even though I
have a valid connection string (no, I'm not using integrated security).
This exact connection string works perfectly in WinForms apps.

Anytime I try to connect via an ASP.NET app, I get the familiar message
"SQL Server does not exist or access is denied." Using SQL Profiler I
see it never even makes a connection attempt.

This leads me to believe that, some how, my local ASPNET account has
lost its network privledges.

Ideas? (Aside from just granting my ASPNET account admin access or
impersonating another account.)

Again, this happened suddenly and it used to work just fine.

Thanks,
RMD

Nov 19 '05 #1
6 1900
On 22 Jun 2005 10:05:34 -0700, th*********@gmail.com wrote:

¤ I've been developing on this machine for months and have created many
¤ ASP.NET applications that connect to various remote machines, mostly
¤ databases.
¤
¤ All of a sudden, I am unable to connect to my SQL Server even though I
¤ have a valid connection string (no, I'm not using integrated security).
¤ This exact connection string works perfectly in WinForms apps.
¤
¤ Anytime I try to connect via an ASP.NET app, I get the familiar message
¤ "SQL Server does not exist or access is denied." Using SQL Profiler I
¤ see it never even makes a connection attempt.
¤
¤ This leads me to believe that, some how, my local ASPNET account has
¤ lost its network privledges.
¤
¤ Ideas? (Aside from just granting my ASPNET account admin access or
¤ impersonating another account.)
¤
¤ Again, this happened suddenly and it used to work just fine.

Couple of obvious things to check:

Is the SQL Server service running?
Is SQL Server authentication limited to Windows authentication?
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #2
Yes, the SQL Service service is running.

No, SQL Server is not limited to Windows Auth, hence the reason the
same code with the same connection string works in a Winforms app.

Nov 19 '05 #3
On 22 Jun 2005 12:04:01 -0700, th*********@gmail.com wrote:

¤ Yes, the SQL Service service is running.
¤
¤ No, SQL Server is not limited to Windows Auth, hence the reason the
¤ same code with the same connection string works in a Winforms app.

In that case you may need to do a bit of troubleshooting:

Potential causes of the "SQL Server does not exist or access denied" error message
http://support.microsoft.com/default...b;en-us;328306
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #4
I think this may have something to do with a recent rollout of McAfee
8.0 to our domain.

Is it possible that McAfee has modified the privledges of the ASPNET
user account to prevent it from accessing the network?

If so, what's the best way to enumerate these kinds of permissions for
a local user and perhaps change them?

Thanks,
RMD

Nov 19 '05 #5
Among other things, this URL
http://msdn.microsoft.com/library/de...l/secmod15.asp
details the minimum permissions to grant the ASPNET account,
or any account you might wish to use to impersonate it.

If you need to add more permissions do so,
but remember to manage your risks wisely.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

<th*********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I think this may have something to do with a recent rollout of McAfee
8.0 to our domain.

Is it possible that McAfee has modified the privledges of the ASPNET
user account to prevent it from accessing the network?

If so, what's the best way to enumerate these kinds of permissions for
a local user and perhaps change them?

Thanks,
RMD

Nov 19 '05 #6
It turns out the issue was with SQL Server. For whatever reason, it
decided to stop accepting connections from some accounts while still
accepting connections from others.

We restarted the SQL Server service, and it started working again.

Very strange.

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load...
5
by: Brent Burkart | last post by:
What steps must I take to ensure that my application will be able to access network folders. I want to only use the ASPNET account, but I am not sure how this is done. Thanks, Brent
3
by: Doctor Who | last post by:
I am running a Windows 2003 Server w/Framework 1.1 loaded. We have built a ..NET 2003 app and it requires that ASPNET be assigned permissions to several folders and servcies. The ASPNET account...
1
by: SL | last post by:
How do I set up access to a file on a Windows Server 2003 Domain Controller that also has IIS? The file sits on another server. The Domain Controller / IIS server connects to this file through a...
3
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here....
3
by: musosdev | last post by:
Hi guys I've just noticed I don't have an ASPNET user account running on either my Workstation or Server (both running .net2.0, workstation has vs2005 pro). Simple question... should it be...
7
by: Billy Angers | last post by:
My server is running under Windows SBS 2003. I've deleted some directories that was containing Outlook Web Access files, it was done few months ago by mistake. Now I want to use OWA for some...
7
by: torus | last post by:
Is the aspnet account called "aspnet" for all non-English versions of Windows and IIS?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.