473,401 Members | 2,146 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,401 software developers and data experts.

ASP.net application SQL Server Access Denied Help!

Hello all, first time posting here and I am running into a pickle of a
problem. Here is the scenario. I have a Windows 2000 server running
IIS and an ASP.net C# application. The application talks to a MS SQL
server on the same box. I have the connection string:

myConnection = New System.Data.SqlClient.SqlConnection("user
id=sa;password =sa;Initial Catalog=Maintenance;Data Source=WebServer")

This works just fine on the machine and all is well. I have installed
SQL MSDE, and all the other things on a Windows XP box and have changed
the data source name to comply with that system name and everything
works. Now here is where the problem is.

I have yet 2 more systems and when I try to install the same thing and
change the connection string I get "SQL Server does not exist or access
is denied" So to get test the "does not exist" part I wrote a small
VB.net app that opens the database using the same connection string and
this works. So it must be the ASP part. I have added both ASP and
IIUsr to the database user group and given them dbo permissions and full
rights to check that but I still get the same issue. I have sql
auditing enabled but it doesn't seem to give me what account is trying
to log in. I also have it set for mixed authentication. So with all
this info, is there anything glaringly obvious that would be why it
works on 2 but not another 2? Are there any group policies I can check
that limit IISusr or Aspnet user? Thanks in advance,

-Will

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
1 1274
Hi Will:

There is nothing obviously wrong in your description. Since you are
specifying a user id and password, the ASPNET and IUSER_* account
settings should not have any effect. Have you stepped through the code
in a debugger to make sure the connection string at the time the
connection is opened is what you expect? Can you ping the DataServer
and make sure there is network connectivity?
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 26 Apr 2005 10:06:03 -0700, William Urban
<wi********@yahoo.com> wrote:
Hello all, first time posting here and I am running into a pickle of a
problem. Here is the scenario. I have a Windows 2000 server running
IIS and an ASP.net C# application. The application talks to a MS SQL
server on the same box. I have the connection string:

myConnection = New System.Data.SqlClient.SqlConnection("user
id=sa;password =sa;Initial Catalog=Maintenance;Data Source=WebServer")

This works just fine on the machine and all is well. I have installed
SQL MSDE, and all the other things on a Windows XP box and have changed
the data source name to comply with that system name and everything
works. Now here is where the problem is.

I have yet 2 more systems and when I try to install the same thing and
change the connection string I get "SQL Server does not exist or access
is denied" So to get test the "does not exist" part I wrote a small
VB.net app that opens the database using the same connection string and
this works. So it must be the ASP part. I have added both ASP and
IIUsr to the database user group and given them dbo permissions and full
rights to check that but I still get the same issue. I have sql
auditing enabled but it doesn't seem to give me what account is trying
to log in. I also have it set for mixed authentication. So with all
this info, is there anything glaringly obvious that would be why it
works on 2 but not another 2? Are there any group policies I can check
that limit IISusr or Aspnet user? Thanks in advance,

-Will

*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #2

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

Similar topics

2
by: Dionísio Monteiro | last post by:
Hi there, After Installing IIS on a WinXP Pro machine, I have copied one of my web site files to test it on that machine. I have created a virtual directory, and when I try to access the site...
6
by: Dean R. Henderson | last post by:
I have a DTS Package I am able to execute successfully from a Windows Form application, but I cannot get this to work from an ASP.NET Web Service, although the Web Service impersonates the same...
4
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
5
by: Martin Robins | last post by:
I have never dabbled with ASP.NET until now so be warned! I have created a web application with the single default form: WebForm1.aspx and when I try to display it I get this error. My...
8
by: Martinh | last post by:
Hi I keep getting this error... Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NETFiles\webservice_isds\f12c6a5a\5975001" is denied. Stack Trace: ...
2
by: Ross | last post by:
Hi I have an application using asp.net that I am running on my PC. The web form has a text box where you can enter a name for a new Photo category then click on the button. The code is...
5
by: Markus Hopfenspirger | last post by:
Hello, I want to call a Command like winpop add username@domainname /createuser: password From a normal .Net Windows Application this is working without a problem. The same code called from...
10
by: Mandy | last post by:
I have a command line tool that I would like to run from my .NET web application using System.Diagnostics.ProcessStartInfo. I run cmd.exe with this and then pass the command to run the tool as an...
4
by: casper | last post by:
Hi, I created an asp.net 2.0 website with VWD and made it an application in IIS. It was created on a ntfs disc (my documents...). The directory permissions are set on 'anonymous allowed' using...
0
by: anubhavbajpai | last post by:
In regards to the Server Application Error, One may perform the following steps : 1. Restart the IIS Default website. 2. Go to Start -> Run -> type cmd -> On the command prompt, type iisreset...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.