Link to home
Start Free TrialLog in
Avatar of imran89
imran89

asked on

MSDE permissions conflict in C# app

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
Avatar of aacool
aacool

Is the data source really equal to "local host"?  Try localhost or even better try the machine name
Avatar of Bob Learned
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
ASKER CERTIFIED SOLUTION
Avatar of aacool
aacool

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of imran89

ASKER

Thankyou for your suggestions.

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

regards Imran
Avatar of imran89

ASKER

Hi Experts,

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

Thanks for the pointers
Now, can you tell me how that connection string is any different than the one you start with?

Bob