Last post Aug 17, 2011 09:57 PM by juno106
May 18, 2009 02:43 PM|ilija1|LINK
I just wrote a few REST services using the REST collection service template. Everything is working fine, except for one thing. When I run the services locally using the VS dev server, I can access the schemas and examples through the help minisites, i.e.
As soon as I push these services out to a production server running IIS, I can still get to http://blah.svc/help and get a listing of all the methods, but when I try to access any of the other stuff like http://blah.svc/help/GetItemsInXml/request/schema,
they just return a blank page.
I'm just using the Authorization HTTP header for custom security.
Here's my web.config:
<add key="LegacyAPIEncryptionKey" value="[removed]" />
<add key="MinimumOrdinalPosition" value="[removed]"/>
<add name="Main.ConnectionString" connectionString="[removed]"/>
<authentication mode="None" />
WCF REST Starter Kit
REST WCF XmlSerialization
May 20, 2009 11:50 AM|randallt|LINK
Most likely an exception is being thrown. You could try attaching a debugger to findout where the exception is coming from. If you post the exception, might be able to help more.
May 20, 2009 12:00 PM|ilija1|LINK
Ah the problem is though that the help is auto-generated(it seems) from the WCF Starter Kit classes. How can I attach a debugger to the code that I can't see?
May 28, 2009 12:36 PM|randallt|LINK
The help page is auto generated, but you should have the source code, as it comes with the WCF REST Starter Kit Preview 2. You can find the source at: Program Files\Microsoft WCF REST\WCF REST Starter Kit Preview 2\Sources\WCF REST Starter Kit Preview 2\Microsoft.ServiceModel.Web\Microsoft.ServiceModel.Web
Jun 07, 2009 09:39 PM|mikeyh|LINK
I have a similar issue, on the dev machine and intranet test server, the help links show the full machine name including domain and can be clicked on and show things fine.
On the production IIS box (in the DMZ), the URLs include only the machine name and hence cannot be accessed from the Internet. Works fine when browsed from the IIS box. So looks something like:
In our case, the production box is not in a domain, it's a standlone workgroup server 2003 - would that be why? I would have thought that (given none of our other websites on that box have this issue) that it would use the URL the user is asking for. Ie
whatever comes in via Host headers.
The web service itself works fine - it is just the Help pages autocreated by the starter kit that have a problem.
starter kit help urls not right
Jun 08, 2009 05:39 PM|ilija1|LINK
Ah with my problem, I can't even access the help files from the intranet on the IIS production server. It just returns a blank string as the response.
My local copy is running the visual studio dev webserver, and it works on there. In order to try to reproduce it, I would have to run my local copy off of IIS. I haven't gotten around to this yet.
Nothing in the event viewer on the IIS server either.
Sep 08, 2009 04:43 PM|aRokerya|LINK
Were you able to find any workaorund/solution for this problem?
I am having similar issues. Any help will be highly appreciated.
Aug 17, 2011 09:57 PM|juno106|LINK
I am having a similar although slightly different issue. None of my help pages work if the service references objects created with the Entity data Model. If i create a simple class defining a data object (as does the VS Template when it creates SampleItem)
everything is fine. As soon as i change from SampleItem to one of my EDM ocjjects the help pages hang my system?