Login failed for user '(null)': Not associated with...
JustinLofquist
Posts: 3
I am running ANTS Profiler 4.1 against an MSCRM 3.0 application, and am recieinvg the error: "Login failed for user '(null)': Not associated with a trusted SQL Server connection". I have a feeling that the Profiler is setting up some sort of proxy that is not properly passing on windows credentials to the CRM ASP.NET process, and therefore CRM cannot validate username against the DB. Has anyone heard of this happening with MS CRM, or any other application that relies on windows credentials to authenticate?
Thansk,
Thansk,
Comments
If the website is connecting using SQL Authentication, and the IIS version hosting it is 6 or 7, you should check the application pool identity and change the ANTS Performance/Memory Profiler service startup accounts to use that same identity. Otherwise, ANTS Profiler starts the web application pool as the local SYSTEM user, which isn't going to have any domain-wide access.
The error we recieve is:
Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bt.Launch()
at RedGate.Profiler.Session.ProfilerSession.h()
Caused by:
Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bt.Launch()
Caused by:
Timed out waiting for port 8013 on 10.127.9.82 to become available
RedGate.Profiler.Engine.Startup.IIS.PortTimeoutException
stack trace:
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.WaitForPort(IPAddress address, Int32 port, Int32 timeout)
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.WaitForPort(String hostname, Int32 port, Int32 timeout)
at bt.StartProfilingIIS(String currentUserName, Uri& url)
at RedGate.Profiler.Engine.Startup.IIS.IISStarter.StartProfilingIIS(String currentUserName, Uri& url)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Profiler.Engine.Startup.IProxyIISSession.StartProfilingIIS(String currentUserName, Uri& url)
at bt.Launch()
To answer the questions asked in the other post, the OS is Windows 2000. We are running IIS 6, and using ANTS Profiler module. The web server is local. We have tried localhost and machinename in the URL.
Thanks for the information. ANTS Profiler checks to see if the specified port is busy before profiling and it can't seem to make a determination about this because it cannot open a socket on port 8013.
It may be a firewall issue.
Are you sure that you have Winows 2000? As far as I know you cannot run IIS 6 on that!