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
  • 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");
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connection String 16 60
Help with C#, MVC, razor. 6 34
Code works but it's slow 28 70
Add different cell to otherwise similiar row 4 39
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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