In my virtual environment I have two servers. Both with MS Server 2008 R2 (STD) 64-bit. On one of these machines I have installed SQL-Server 2008 R2, and on the other I have an IIS 7.5.

The machines are not in any domain, runs under workergroup. I have developed a sample webbsite that "talks" with the SQL-Server and it wokrs fine. No problem what so ever.

But! When I run the commerce site I get the following error:

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

This is what I don't understand? My connectionstring looks like this:

<add key="CatalogConnectionString" value="Data Source=XXX.XX.XXX.XXX;Initial Catalog=Site_productcatalog;User ID=YYYY;Password=xxxxx;" />

I've used the exact same user account in my sample site and that works! What could be the problem?

Satck trace:
[COMException (0x80004005): Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.]
   ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options) +0
   SharedFns.ReadSQLDbLocale(String& strAdminConn) +148
   SharedFns.SQLGetConnStr() +132
   SharedFns.ReturnOpenConnection(Connection& connCfg) +76
   SharedFns.CheckAdminDatabaseVersion() +278
   SharedFns.ReturnOpenConnection(Connection& connCfg) +14
   Microsoft.CommerceServer.Interop.Configuration.SiteConfigReadOnlyFreeThreaded.SQLGetConnection() +20
   Microsoft.CommerceServer.Interop.Configuration.SiteConfigReadOnlyFreeThreaded.Initialize(String bstrSiteName) +396
   Microsoft.CommerceServer.Runtime.Configuration.CommerceResourceCollection..ctor(String siteName) +246
   Microsoft.CommerceServer.Runtime.CommerceApplicationModule.InitializeApplication() +283
   Microsoft.CommerceServer.Runtime.CommerceApplicationModule.Init(HttpApplication appInstance) +127
   System.Web.HttpApplication.InitModulesCommon() +124
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1162
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +312
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +133
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +196
link|improve this question
1  
possible duplicate of SQL Server 2008 Windows Auth Login Error: The login is from an untrusted domain (Top 5 Google hits point to 2 x SO questions + one MS Blog...) – gbn May 27 '11 at 11:25
feedback

migrated from stackoverflow.com May 29 '11 at 7:48

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown