Profiler won't start - ASPNET account issue

2»

Comments

  • Brian and Robert,

    Still waiting. Please advise.

    Peace, Paul
  • Brian and Robert,


    I am running as Administrator with my login and I tried as the actual Administrator account last week on my laptop.

    Bad eyes, missed the last post about Upclean Hive utility.
    I installed the Utility.

    Ran ANTS Profiler with same problem again.

    Here is the Event Log Summary from New to Oldest:
    the 1017 key was unloaded by UPH clean but then NOT found

    >> Source: ANTS Profiler Event ID: 0
    Unable to start profiler - exception details System.Exception: Unable to set profiling environment data for ASP.NET user - Failed to get user profile
    ...

    >> Source: UPHCLean Event Id: 1401
    The following handles in user profile hive PCE\ASPNET (S-1-5-21-639506975-559059157-1288879434-1017) have been remapped because they were preventing the profile from unloading successfully:
    winlogon.exe (820)
    HKCU\Software\Classes (0x90)

    >> Source: ANTS Profiler 3 Service Event ID: 0
    Service started successfully.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Peace, Paul
  • Brian and Robert,

    I believe that we may try to arrange to share my Laptop via a "Remote Session" to my residence.

    I don't know what the best way to do this is ? ( free cost ).

    We would need to arrange a time.

    Peace, Paul
  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi Paul,

    We have a remote support facility, I've been hesitant to use it because I don't know where to look in your computer to find the problem.

    I did have one other idea, that maybe you could try first, which is to audit registry access, presuming you can keep the ASPNET user profile loaded.
    • Click Start, Run and type Secpol.msc (or via GPEDIT.MSC)
    • In the left pane, under Local Policies, click Audit Policy
    • In the right pane, double-click Audit Object Access
    • Select the Success and Failure boxes
    • Open start->Run, and run gpupdate
    • Click Start, Run and type Regedit and navigate to the key you want to audit (HKEY\Users\<sid of ASPNET>\Environment)
    • On the Edit menu, click Permission, click Advanced.
    • On the Auditing tab, click Add.
    • Type your username there and add it to the audit list
    • In the Auditing Entry For Name dialog, in the Access list, select both the Successful and Failed check boxes next to the activities enumerate subkeys, set value, query value, notify, read control
    Now when you profile, the success/failure entries appear in the security log in eventvwr.exe.
  • Hi, I'm not sure if I should start a new thread or continue this one.

    I have WIN XP 2002 SP2 and have been using ANTS 2.6. I have not used it in about 6 months though, and just downloaded ANTS 3.1.

    ANTS 2.6 worked on my configuration before, but now I am getting this error:

    Unable to start profiler - exception details System.Exception: Unable to set profiling environment data for ASP.NET user - Failed to get user profile

    I'm getting this on both 2.6 and 3.1.

    I tried several of the things on this thread, but they do not seem to help.

    I thought I would check if there was any resolution to this thread?

    Here is my Error Log:

    Server stack trace:
    at RedGate.Profiler.Engine.ProfileIISController._1(String , String , String )
    at RedGate.Profiler.Engine.ProfileIISController._1(String , FrameworkVersion , IISVersion )
    at RedGate.Profiler.Engine.ProfileIISController.StartProfilingIIS(String currentUserName, String& url, WebApplicationDefinition appDef)
    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)

    Exception rethrown at [0]:
    at RedGate.Profiler.Engine.ProfilingSession.StartProfiler()
    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.AsyncProcessMessage(IMessage 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 System.Windows.Forms.MethodInvoker.EndInvoke(IAsyncResult result)
    at _5._4(IAsyncResult )
  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Thanks for posting

    Unfortunately this issue will never, ever disappear as long as installations of Windows XP can malfunction in a way that causes the user profile to not be available or to be corrupt. You could, of course, avoid this entirely on Windows Server 2003 and Vista, because the worker process can be started outside of IIS individually and it's not necessary to log in as the ASP .NET user and try to inject variables into the user environment.

    Your best bet is to try to clean up the user profile by logging in as the user who is configured to run ASP .NET interactively. You can figure out who this user is by first determining which version of the .NET Framework the web application uses and then opening its' machine.config file and looking at the ProcessModel section. If it's system, you cannot log in as this user directly but then again I think if you could not set a system variable your whole computer wouldn't work correctly. If it's machine, then the ASPNET account has the problem.

    You may also want to put your own account in the local administrators group if that helps.

    As for this thread you are looking at, it's the only case ever where we haven't been able to sort out the user profile.
  • Thanks Brian,
    I've had it running on this machine before so I'm hoping its a simple fix somewhere. I noticed under Computer Manager | Users | Administrators, it lists ASPNET and also lists several S-1-5-21 entries. However, the SID I found using the earlier post is not listed there. I tried to add it but could not. Maybe if we connect on the phone on this one we can quickly rule out everything it likely isn't. For example, I moved to VS2005 from VS2003 - could that be it? And its possible the last time I ran it successfully was on 1.1 vs 2.0 .NET. Related perhaps? I left my phone at your support line if thats ok.

    Another thought... I go to Computer Manager | Users | ASPNET... and the Profile Path is empty. The error is 'can not get profile'. Related?

    Another thought. If I run VS2005 in a mode where I use the interal webserver instead of iis, I can successfully launch ANTS. However, the browser window opens with an error.

    This may be a way to get this working without IIS.

    I'll post my experience on that path next.

    Thanks, Todd
  • Hi Brian,

    I've got a solution.

    If I run VS2005 in a mode where I use the vs development server instead of iis, I can successfully launch ANTS and profile the app.

    Here is what I did:

    ********************************************************
    test 1
    ********************************************************

    VS2005
    edit properties of project to use VS develoment server instead of iis
    * set start page Default.aspx
    * set port 3367
    * set virtual path /
    start debugging
    browser opens to http://localhost:3367/Default.aspx
    page appears successfully
    close browser

    ANTS
    launch project wizard
    * set detail mode
    * set aspnet development web server
    * set path: C:\OST\OSTMain\Default.aspx
    * set virtual directory: /
    * set port: 3367
    finish
    browser opens to http://localhost:3367/Default.aspx

    I really like the tool; it was extremely useful in our last application to streamline performance, and I'm looking forward to trying it out on this latest one. Have a nice afternoon!

    Todd
  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi Todd,

    Thanks for writing. Shameful that I forgot to mention that you can use the development web server as a workaround. Sometimes people absolutely need the web application hosted in IIS for the extra IIS features that the dev webserver doesn't have.
Sign In or Register to comment.