Click here to Skip to main content
15,037,928 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more: , +
just went live with a new site which has a login control protecting the entire contents of the site, ie you need to be login before viewing anything, when i try to login i get the following error

The login is from an untrusted domain and cannot be used with Windows authentication

however in the webconfig ive stipulated authentication mode as follows
<authentication mode="Forms" />

can anyone shed some light on what might be happening here?

after some reading about the error i believe this is related to my msssql login not my site login would that be correct?
Updated 3-Jan-12 19:46pm

Yes it could be - The chances are that you haven't changed the connection string for the database from your development environment to the production server.

Certainly in my case, the development database server uses Windows authentication, while the production server is user and password specific.

Keeping the two safe and secure can be a real pain: there is an example of how I do it here: Supporting Development and Release web.config in ASP.NET[^]
Click Here[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900