Print Page | Close Window

Code First Build Error

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3638
Printed Date: 07-Jun-2024 at 12:22am


Topic: Code First Build Error
Posted By: gregweb
Subject: Code First Build Error
Date 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


     



Print Page | Close Window