WCF 4.0, REST, HELP PAGE
-
Thursday, January 13, 2011 5:08 AM
Hi,
I have a wcf 4 rest service that I am trying to run locally from visual studio 2010, and it works fine when you navigate to the help page, but when you click on any of the service method names, the page never loads. It actually just keeps running up my RAM and cpu usage, until my machine comes to a screeching halt. It's weird because I can build a request with fiddler and post to one of the service methods, and get a response just fine, it's just the specific help page never works. Anyone run into this?
My service class lives in my app_code directory, I don't know if that has anything to do with it.
Thanks!
I should mention, this is the output on my output window in visual studio - if you look the thread is aborted, and right when that happens, there is no more output, and my page just looks like it's continuing trying to load, and my cpu/ram usage starts to spike.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Discovery\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Discovery.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Routing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Channels\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Channels.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '<No Name>' (0x2e78) has exited with code 0 (0x0).
All Replies
-
Thursday, January 13, 2011 5:19 AM
Ok, so it appears it was what I was trying to return from my service method is what was doing it. I was returing a List<T>, where T is my custom class that lives in a dll that is referenced in my bin folder - which is also a class generated by codesmith/nettiers, and is marked as serializable, and with data contract attributes, etc, so I don't know what the problem is. ...but I decided to test this, and instead of returning a List<T> where T was that kind of object I just described, I decided to return one with a simple class I built with a few string properties (just temporarily created it in my app code folder), and then the specific help page for that service method worked just fine.
Anyone see this before? ...again, it worked before with my original class when I posted a request to it with fiddler, but only the help page didn't work correctly.
-
Monday, January 17, 2011 6:14 AMModeratorHi Jme1234,
The HelpPage behavior you encountered does be a bit unexpected. As you've mentioned that the problem is somewhat related to the data used in the serviceContract, it is a good approach to try isolating the issue and repro it with a simplified version. If the problem can be repro by a simplified project, you can send to me so that we can perform some local test to verify it.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

