No results / Couldn't log on as the ASPNET user

Brian DonahueBrian Donahue Posts: 6,590 New member
Hi Martin,

I appreciate your post to the newsgroup. Usually, ANTS Profiler will
throw this error when you are logged in as the same user that is running the
aspnet_wp process. The reason why Profiler won't let you do this is because
in the case of Microsoft .Net 1.1, profiling has to be enabled on a
per-user, as opposed to a per-process, basis. This would mean that
everything on you computer would run dead-slow, and more importantly, the
results from the profiling session would be severely compromised.

Regards,

Brian Donahue
Red Gate Technical Support

"Martin Davis" <[email protected]> wrote in message
news:[email protected]
> Hi,
>
> I'm having problems running ANTS Profiler (Version 1.22 Build 137,
> Registered) against an ASP.NET (C#) web application and am hoping someone
> can help.
> I've tried running ANTS on both my local machine and also on the webserver
> and have had no luck on either.
>
> When run on my local machine (website being tested is hosted on another
> machine) the profiler goes through the motions of stopping/starting IIS
and
> profiling the app. then returns to show a completely blank results page:
No
> top level functions, no timings, no code.... nothing.
>
> I figured that as ANTS was trying to interact with IIS that it probably
> needs to be installed/run on the server... so I did. This time however,
> when I tried to start profiling my app. ANTS begins stopping IIS then
stops
> and displays the error
>
> "There was a problem starting the profiler. Check that the ANTS Profiler
> service and IIS are running. Couldn't log on as the ASPNET user [1385].
> Please check the event log for more details."
>
> Looking in the event log shows the following:
>
> "System.Exception: Couldn't log on as the ASPNET user [1385]
> Server stack trace:
> at RedGate.Profiler.Engine.ServiceHelper.?(String )
> at RedGate.Profiler.Engine.ServiceHelper.StartProfilingIIS(String
> currentUserName)
> at
>
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met
> hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
> fExecuteInContext, Object[]& outArgs)
> at
>
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessa
> ge msg, Int32 methodPtr, Boolean fExecuteInContext)
> Exception rethrown at [0]:
> at RedGate.Profiler.Engine.ProfilingSession.StartProfiler()
> at
>
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met
> hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
> fExecuteInContext, Object[]& outArgs)
> at
>
System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMess
> age msg, IMessageSink replySink)
> Exception rethrown at [1]:
> at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message
reqMsg,
> Boolean bProxyCase)
> at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed,
> MessageData& msgData)
> at RedGate.Profiler.UI.?.EndInvoke(IAsyncResult result)
> at RedGate.Profiler.UI.frmMain.?(IAsyncResult ) "
>
> Checking the "services" applet in control panel reveals that the "Web
> Publishing Service" is no longer running, but is was before running ANTS.
>
> Can you help? The server is running Windows 2000, IIS5 and .NET Framework
> v1.1.4322.
>
>

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hello Reinhold,

    I've noticed that a certain version of Microsoft .Net Framework causes
    problems for ANTS Profiler. 1.1.4322.510, which I believe shipped with
    Windows Server 2003, causes numerous problems with the Profiler as well as
    some of our other products.

    If you open your %WINDIR%Assembly folder, right-click on mscorcfg.dll
    and check the version, it should be 1.1.4322.573. If it's not, I'd download
    the .Net Framework redistributable again and try re-installing that version
    of the framework. You can get this from our website at
    http://www.red-gate.com/downloads.htm.

    Thanks,

    Brian Donahue
    Red Gate Technical Support

    "Reinhold Staudinger" <[email protected]> wrote in message
    news:[email protected]
    > Hi,
    >
    > is there anything else that can cause this error? I am getting the same
    > error, but the user that I am logged on is different than the one set for
    > the processModel in machine.config. I have the same configuration as
    > Martin.
    >
    > Thanks.
    >
    > Reinhold Staudinger
    >
    > "Brian Donahue (Red Gate)" <[email protected]> wrote in message
    > news:[email protected]
    > > Hi Martin,
    > >
    > > I appreciate your post to the newsgroup. Usually, ANTS Profiler will
    > > throw this error when you are logged in as the same user that is running
    > the
    > > aspnet_wp process. The reason why Profiler won't let you do this is
    > because
    > > in the case of Microsoft .Net 1.1, profiling has to be enabled on a
    > > per-user, as opposed to a per-process, basis. This would mean that
    > > everything on you computer would run dead-slow, and more importantly,
    the
    > > results from the profiling session would be severely compromised.
    > >
    > > Regards,
    > >
    > > Brian Donahue
    > > Red Gate Technical Support
    > >
    > > "Martin Davis" <[email protected]> wrote in message
    > > news:[email protected]
    > > > Hi,
    > > >
    > > > I'm having problems running ANTS Profiler (Version 1.22 Build 137,
    > > > Registered) against an ASP.NET (C#) web application and am hoping
    > someone
    > > > can help.
    > > > I've tried running ANTS on both my local machine and also on the
    > webserver
    > > > and have had no luck on either.
    > > >
    > > > When run on my local machine (website being tested is hosted on
    another
    > > > machine) the profiler goes through the motions of stopping/starting
    IIS
    > > and
    > > > profiling the app. then returns to show a completely blank results
    page:
    > > No
    > > > top level functions, no timings, no code.... nothing.
    > > >
    > > > I figured that as ANTS was trying to interact with IIS that it
    probably
    > > > needs to be installed/run on the server... so I did. This time
    > however,
    > > > when I tried to start profiling my app. ANTS begins stopping IIS then
    > > stops
    > > > and displays the error
    > > >
    > > > "There was a problem starting the profiler. Check that the ANTS
    Profiler
    > > > service and IIS are running. Couldn't log on as the ASPNET user
    [1385].
    > > > Please check the event log for more details."
    > > >
    > > > Looking in the event log shows the following:
    > > >
    > > > "System.Exception: Couldn't log on as the ASPNET user [1385]
    > > > Server stack trace:
    > > > at RedGate.Profiler.Engine.ServiceHelper.?(String )
    > > > at RedGate.Profiler.Engine.ServiceHelper.StartProfilingIIS(String
    > > > currentUserName)
    > > > at
    > > >
    > >
    >
    System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met
    > > > hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
    > > > fExecuteInContext, Object[]& outArgs)
    > > > at
    > > >
    > >
    >
    System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessa
    > > > ge msg, Int32 methodPtr, Boolean fExecuteInContext)
    > > > Exception rethrown at [0]:
    > > > at RedGate.Profiler.Engine.ProfilingSession.StartProfiler()
    > > > at
    > > >
    > >
    >
    System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met
    > > > hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
    > > > fExecuteInContext, Object[]& outArgs)
    > > > at
    > > >
    > >
    >
    System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMess
    > > > age msg, IMessageSink replySink)
    > > > Exception rethrown at [1]:
    > > > at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message
    > > reqMsg,
    > > > Boolean bProxyCase)
    > > > at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object
    NotUsed,
    > > > MessageData& msgData)
    > > > at RedGate.Profiler.UI.?.EndInvoke(IAsyncResult result)
    > > > at RedGate.Profiler.UI.frmMain.?(IAsyncResult ) "
    > > >
    > > > Checking the "services" applet in control panel reveals that the "Web
    > > > Publishing Service" is no longer running, but is was before running
    > ANTS.
    > > >
    > > > Can you help? The server is running Windows 2000, IIS5 and .NET
    > Framework
    > > > v1.1.4322.
    > > >
    > > >
    > >
    > >
    >
    >
Sign In or Register to comment.