473,585 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Quest: Error connecting to MSDE hosted DB...

I am trying to connect to MSDE hosted DB on the same computer as my ASP.NET
app. The DB was created using VS.NET Server Explorer window and here is my
aspx.cs code in the Page_Load() for the main page...

Note: using "using System.Data.Sql Client;"

try
{
SqlConnection dataConnection = new SqlConnection() ;
dataConnection. ConnectionStrin g = "Integrated Security=true;I nitial
Catalog=mydb;
Data
Source=MYSYS\\V SDOTNET;";
dataConnection. Open();
...
dataConnection. Close();
}
catch(Exception SQLException)
{
Console.WriteLi ne("An Database error occurred - " + SQLException.Me ssage
+ "...");
}

Now when I call(a breakpoint set in the catch block) SqlConnection:: Open() I
get - SQLException.Me ssage == "Login failed for user 'MYSYS\ASPNET'" in the
varibles window...

Now I have tried adding ASPNET and SQLDebuggers account to the site
folder(site is outside of wwwroot) and to the IIS operator acoount tab of
the site properties box and there is no change...

What am I doing wrong here and why is it thinking I am user MYSYS\ASPNET...

Any help...
Nov 18 '05 #1
1 1051
> What am I doing wrong here and why is it thinking I am user
MYSYS\ASPNET...
I looked around and found that ASPNET user was only part of the Users group
and so I threw ASPNET into some more group since security isn't an issue and
my ASP.NET app finally connected...
Nov 18 '05 #2

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

Similar topics

0
1438
by: Joe | last post by:
I've been experiencing a strange error with MSDE. The SQL Server works just fine, but if a user does something to change the state of the network, like attempting to log into AOL, or if they renew their IP Address, or log into a WAN, often the database cannot be found until I stop and restart the service. I'm using a native DotNet...
2
1497
by: Mark | last post by:
Hi - I have a rather unreliable host just now - but they offer .net, sql server and SSL for a reasonable price. Problem is, the domain is hosted on a shared server - and it keeps going down apparantly because of code which is less than clean, on some peoples sites. (ie. not closing connections etc). I am considering moving to a decicated...
4
5485
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP applied some sort of extra security arrangements to their SQL Server to allow access only through port 1433. they have told me to configure an alias...
41
2434
by: NB | last post by:
Hi I have been developing on MS Access / Jet / VBA platform for about 2 years. The current project I am working on for a small business is built on Access 2002. It has about 53 tables in 2 backend MDB files, 125 queries, 109 forms & subforms, 43 reports & subreports, 20 code modules and some macros. The size of the backend is now at a...
1
1005
by: LIN | last post by:
I have read few articles on connecting to MSDE but haven't got i was looking for. I have an ASP.NET application which needs to connect to MSDE. I read the article about setting up SQL AUTHENTICATION and modifying the registry. Couldn't get it thru. whats the easiest way to make sure that i am able to connect to MSDE which is already present...
13
2267
by: Edward Mitchell | last post by:
I have a problem that involves the error I receive when attempting to complete the asp.net web application example (Walkthrough: Creating a Web Application Using a Third-Party Business Object). When I first create the SQL connection in VS.NET 2003, I test the connection and everything works fine. However, when I attempt to run the first...
1
4720
by: John Shadel | last post by:
I have the following setup: 1. ASP.NET 2.0 web app hosted on a web server (inetpub directory hosting physical files of the web site on a different drive name, E: than the SQL Server Instance, which is on C:) 2. SQL Server on the same server, with security settings enabling ASPNET group and groups containing users allowed to interact with the...
9
5749
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just call it Express for simplicity). I have, to try to simplify things, put the exact same DB on two systems, one running MSDE and one running...
5
3539
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting this error. Any idea why? Server Error in '/myuser4/MyWebApp' Application....
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.