Solved

MSDE permissions conflict in C# app

Posted on 2004-10-18
6
242 Views
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

regards
0
Comment
Question by:imran89
  • 2
  • 2
  • 2
6 Comments
 
LVL 3

Expert Comment

by:aacool
ID: 12341911
Is the data source really equal to "local host"?  Try localhost or even better try the machine name
0
 
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

Bob
0
 
LVL 3

Accepted Solution

by:
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");
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:imran89
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
0
 

Author Comment

by:imran89
ID: 12361948
Hi Experts,

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

Thanks for the pointers
0
 
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?

Bob
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now