New Posts New Posts RSS Feed: Code First Build Error
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Code First Build Error

 Post Reply Post Reply
Author
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Topic: Code First Build Error
    Posted: 10-Mar-2012 at 12:31pm
I have a WinForms code first project. When I build the project, I get the following error message in the VS Error Message Window.

Error     61     An error occurred during metadata generation and a metadata file could not be created. Error: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

It appears to me that the code first generation is trying to access the database (which is on the same machine and is set for Windows Auth) and is failing.

I don't know why it is saying the login is from an untrusted domain.

If I run the app, it connects correctly to the database.

Any suggestions?

UPDATE: Turns out there was a second config file for the DomainModel that I needed to update.

Greg


     


Edited by gregweb - 10-Mar-2012 at 12:36pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down