Red Gate forums :: View topic - Profile existing WCF services
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 5
ANTS Performance Profiler 5 forum

Profile existing WCF services

Search in ANTS Performance Profiler 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Ninosd



Joined: 03 Jan 2012
Posts: 4

PostPosted: Tue Jan 03, 2012 10:20 pm    Post subject: Profile existing WCF services Reply with quote

I have two WCF services that I want to profile, I saw this link but it's not helpful, as the installUtil is failing with the below exception, note I added the SVC files in the bin folder which contains all required DLLs.

http://www.red-gate.com/supportcenter/Content?p=ANTS%20Performance%20Profiler&c=ANTS_Performance_Profiler/help/6.3/app_profiling_services.htm&toc=ANTS_Performance_Profiler/help/6.3/toc1447510.htm#o11695

C:\Program Files\Microsoft Visual Studio 10.0\VC>installutil -LogToConsole=true -ShowCallStack C:\Te
stPublish\From2010\bin\MyService.svc
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.

Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\TestPublish\From2010\bin
\MyService.svc' or one of its dependencies. The module was expected to contain an assembly
manifest..

Thanks,
Ninos
Back to top
View user's profile Send private message
Ninosd



Joined: 03 Jan 2012
Posts: 4

PostPosted: Wed Jan 04, 2012 12:11 am    Post subject: Reply with quote

Ok, so I was trying to use installUtil without creating a new Windows Service project, but there's no way around that. Now I have a Windows service that references my WCF service project following the steps in this URL

http://msdn.microsoft.com/en-us/library/ff649818.aspx

But, as the above URL says to copy the app.config from the WCF project, I assume it means the web.config, so that's what I have copied.

I have a service installed now, Service1, but every time I try to start it, it fails with Error 5: Access is denied.

So, can you please direct me as how I can profile a WCF service with your profiler?

Thanks.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Thu Jan 05, 2012 11:02 am    Post subject: Reply with quote

I'm afraid I don't understand how this relates to ANTS Performance Profiler. You must have an installed, working codebase before you can attempt to profile it, as it is not a static analysis tool.
Back to top
View user's profile Send private message
Ninosd



Joined: 03 Jan 2012
Posts: 4

PostPosted: Thu Jan 05, 2012 5:37 pm    Post subject: Reply with quote

Brian,

I see that you didn't even read the post. I gave some extra info on the things I've tried to profile a WCF service with your profiler.

I hope my question is clear.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Thu Jan 05, 2012 6:12 pm    Post subject: Reply with quote

But you are posting all sorts of errors about installutil. And then that the service will not start (error code 5).
Back to top
View user's profile Send private message
Ninosd



Joined: 03 Jan 2012
Posts: 4

PostPosted: Thu Jan 05, 2012 6:26 pm    Post subject: Reply with quote

Like I said, I've posted extra information in regards the steps I've taken and the outcome I got. So please just disregard that and answer my question.

How do you profile a WCF service with your profiler? And I have version 5.2
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Thu Jan 05, 2012 6:32 pm    Post subject: Reply with quote

I still don't see any information relevant to profiler in the previous text. But WCF can be hosted in any type of application and the profiler only cared about the process type, such as desktop application, windows service, or WCF hosted in IIS.

And I'm not sure what you have - is it hosted in a Windows Service? Then you would use the option to profile a Windows Service.

However, there is also information about web.config and .svc files, so I can't tell if your code is a Windows Service or a WCF hosted in IIS.
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