Sharepoint Portal Server .Net 1.1 Ants 2.6
hananiel
Posts: 6
Hello,
I am trying to profile a webpage that runs under sharepoint and I get the following error
This page request above is just a default sharepoint page. I want to profile code i have written and im getting the same error.
Thanks,
Hananiel
I am trying to profile a webpage that runs under sharepoint and I get the following error
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested Url: /C1/workspace/default.aspx
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
This page request above is just a default sharepoint page. I want to profile code i have written and im getting the same error.
Thanks,
Hananiel
Comments
The most common issue with sharepoint seems to be user permissions. You may want to have a look in your AppPool configuration for the sharepoint site and see what user the app pool is running as, then change ANTS Profiler Service to log on as that user and restart the service.
The 404 is puzzling, though, because the server is answering requests, but it says it can't find the page. Perhaps this is related to the problem in the earlier post of IIS websites getting mixed up and the wrong website handling the requests.
thanks,
Hananiel
Are there other .Net Profilers which can do this?
thanks,
Hananiel
thanks,
Hananiel
The w3wp.exe process is started by the ANTS Profiler Service -- the application pool inherits the application pool security. So changing the logon for the ANTS Profiler Service will change the security context of the application pool being profiled. That's where I was leading with all of this.
1. I ran ANTS profiler as the same named user as I am running the Sharepoint app pool.
2. I observe in task manager the logon user id of the w3wp.exe process and it shows "System" (instead of the named user.)
So I am concluding that ANTS is loading the app pool under the System security context , instead of the security context it was started in.
Am I missing something?
Anyway what are you saying ? Lets say Im using CoolDomain\CoolUser for sharepoint app pool . (I cannot run it as "NT Authority\System" since sharepoint doesnt like it. )
I run ANTS profiler as "CoolDomain\CoolUser".
Now w3wp.exe has "SYSTEM" instead of "CoolUser" in taskmgr.
So what do you suggest I do? Obviously your team tested against this, so it might be helpful if you share your setup with me. Did you add the sharepoint databases in Local SQL Server and added "NT AUTHORITY\System" as dbo to the config database ?
I am guessing it might work but Im not sure.
Thanks for your help,
Hananiel
Thanks.