Red Gate forums :: View topic - Profile ASP.NET application - "Server unavailable"
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Profiler Previous Versions
ANTS Profiler Previous Versions forum

Profile ASP.NET application - "Server unavailable"

Search in ANTS Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Maverick



Joined: 12 Dec 2008
Posts: 2

PostPosted: Fri Dec 12, 2008 8:55 am    Post subject: Profile ASP.NET application - "Server unavailable" Reply with quote

Hi!

Have been reading here for similar problems like this one, but not quite..

I have a ASP.NET application that I wanted to profile with ANTS 4. The application worked fine just before, but when I tried to profile it, firstly I got this error message:

Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bs.Launch()
at RedGate.Profiler.Session.ProfilerSession.h()

Caused by:

Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bs.Launch()

Caused by:

Couldn't log on as the ASPNET user ASPNET on domain . [1909]
RedGate.Profiler.Engine.Startup.IIS.IISException
stack trace:
at bi.a(String , String )
at bs.a(String , String )
at bs.a(String , FrameworkVersion , IisVersion )
at bs.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 bs.Launch()

And after this, I cant start or debug my application (not using ANTS). This is when I get the message "Server Application Unavailable". My application is hosted by IIS 5.1, Im using windows XP Professional. Ive tried to restart IIS, my computer, and uninstalled ASP.NET and installed it again and registred it in IIS again.

So my question is if Ants can change some settings for my ASPNET account or maybe my web.config or machine.config somehow? Or if there is some other things I can try? It seems like there could be some issues with my ASPNET acoount after using ANTS. (Ive used ANTS before on desktop applications with no problems)

/Regards
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6587

PostPosted: Fri Dec 12, 2008 9:06 pm    Post subject: Reply with quote

System error 1909 means your ASPNET account is locked out. I'd suggest checking Computer Management and unlocking the acount there.

What got it locked out in the first place may be of concern, though. For instance, if you have manually specified the ASPNET account password instead of letting the computer manage it (AUTOGENERATE), then this problem could be caused because the username and password are incorrect in the processModel of the machine.config file for the .NET framework.

It may also be worth noting that the bit in ANTS Profiler that lets you set a username and password for the ASPNET user should generally be left at auto-detect unless the ASPNET password is encrypted using aspnet_setreg.exe.
Back to top
View user's profile Send private message
Maverick



Joined: 12 Dec 2008
Posts: 2

PostPosted: Tue Dec 16, 2008 2:35 pm    Post subject: Reply with quote

Thanks for the reply!

It seem to be working fine now. And yes it was the ASPNET account that was strange... no password or username was set in machine.config at all, maybe this had something to do with it, since ANTS had auto detect in this setting (I think!).

Will try later to profile my application again and see if this where the case.

thnx!
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6587

PostPosted: Tue Dec 16, 2008 9:39 pm    Post subject: Reply with quote

True -- in ASP .NET 2.0's machine.config, you can set autoConfig="true", which is the same as userName="MACHINE" password="AUTOGENERATE", which is going to use the ASPNET account.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group