| Author |
Message |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Fri Jan 28, 2011 12:25 am Post subject: Can't figure out how to profile my web services application. |
|
|
I have a web services application that pretty much consists of .asmx pages separated by folders.
I can't figure out how to profile it. Specifically, I don't know what to enter for the ASP.NET web application (path). I've selected one of the ASMX pages, but when IE comes up and I click on the ASMX, it says:
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'CC.Fusion.Services.Account'.
Source Error: Line 1: <%@ WebService Language="C#" CodeBehind="Account.asmx.cs" Class="CC.Fusion.Services.Account" %>
My directory structure is like this:
Accounts
* Account.asmx
* Dashboard.asmx
Proposals
* Proposals.asmx
* Audit.asmx
When I kick off the Web Services project, it creates http://localhost:1672/FusionServices/ as the root URL, Virtual Path is /FusionServices and the Physical Path is C:\Code.Net\MyCompanyName\Fusion\CC.Fusion\CC.Fusion.Services\
What do I have to do to be able to profile my web services project?
I am using ANTS Performance Profiler 5.2 Professional |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Fri Jan 28, 2011 11:45 am Post subject: |
|
|
Hello,
The error message indicates that a type can't be loaded and this usually means a precompiled DLL can't be found. ANTS Perf Profiler shouldn't cause any reconfiguration of the applicaiton, although in 5.2 I believe it changes the user who is running the applicaiton from the app pool user to whoever is logged in to the desktop.
I would say, try using the development web server (outside ANTS Profiler) and see if you get the same result. Then it may be a permissions problem that you can easily sory by granting yourself access to all the files. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Sat Jan 29, 2011 1:38 am Post subject: |
|
|
The app works fine outside of the ANTS Profiler. And it's not a permissions issue (full rights to folders & subfolders to everyone).
I did figure it out. Your tool works well if you select an .asmx page in the root of the project, because it picks the folder of the asmx file as the application directory. However, I do not have any .asmx files in the root of the project (they are all in subdirectories). So I created a dummy .asmx file in the root of the project (on the file system, not in the actual project), selected that and it worked fine.
It's probably a good idea to change the New Profiling Session dialog to have the user select a directory rather than an .asmx file.
Thanks. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Mon Jan 31, 2011 11:01 am Post subject: |
|
|
Thanks for the update. I think that what may have happened is that the root folder of the website needed to be chosen. It's not really important that an .aspx | .asmx file has been chosen, even though the file chooser makes it look that way. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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