MSDE permissions conflict in C# app

Posted on 2004-10-18
Last Modified: 2010-05-18
Hello All experts,

I have developed an application in C# which uses an MSDE database as its basis. I have developed an installation routine which installs the .net framework, MSDE database and finally the application. When I install the standalone application onto a machine with Win 2k, Win XP Home or Win XP Pro as the OS and then run the application, it runs fine.

However when I install the application on a WinME or Win98 machine and run the application I get the following error:

"Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection"

I checked my connection string which was initially as follows:

"data source=local host;integrated security=SSPI;database=Jaguar;persist security info=false;packet size=4096"

Then I entered the "Trusted Connection=yes"

The connection string then evolved to:

"data source=local host;Trusted Connection=yes;integrated security=SSPI;database=Jaguar;persist security info=false;packet size=4096"

but it still pops up with the same error message.

Why does it work on Win2k, WinXP and not on WinME? Do I have to manipulate a registry setting, do I need to set some extra parameters for MSDE during installation?

Can you experts please shed light on this situation?

regards Imran

Question by:imran89
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2

Expert Comment

ID: 12341911
Is the data source really equal to "local host"?  Try localhost or even better try the machine name
LVL 96

Expert Comment

by:Bob Learned
ID: 12341915
Microsoft Windows 9.x does not provide support for the following features:

Microsoft Windows NT® authentication
Fiber mode scheduling
Asynchronous I/O
Read ahead
Performance Monitor counters
Scatter/Gather I/O
Named pipes server network library
Appletalk server or client network library
Banyan Vines server network library


Accepted Solution

aacool earned 250 total points
ID: 12341928
This connect string works for me:
SqlClient.SqlConnection conn =       new SqlConnection(@"server=mcName\SQLBASE;database=Northwind;Integrated Security=SSPI");
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 12342324
Thankyou for your suggestions.

I will apply these changes to the connection string and provide you guys feedback on the outcome.

regards Imran

Author Comment

ID: 12361948
Hi Experts,

I was missing the "User ID = sa" in the connection string.

Thanks for the pointers
LVL 96

Expert Comment

by:Bob Learned
ID: 12361970
Now, can you tell me how that connection string is any different than the one you start with?


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question