liubiao4123 / servicestack

Automatically exported from code.google.com/p/servicestack
0 stars 0 forks source link

PlatformNotSupportedException in WinXP & Mono using Version 1.34 of ServiceStack #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open ServiceStack Examples in MonoDevelop (2.4) in WinXP.
2. Rename Web.config.rename_for_iis6_mono to Web.config
3. http://localhost:8080/Public/Xml/SyncReply/GetFactorial?ForNumber=5

What is the expected output? What do you see instead?
Expect: to see factorial of 5
Instead I see the following:
<GetFactorialResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
xmlns="http://schemas.sericestack.net/examples/types"> 
<ResponseStatus> 
<ErrorCode>PlatformNotSupportedException</ErrorCode> 
<ErrorMessage>This operation requires IIS integrated pipeline 
mode.</ErrorMessage> 
<StackTrace>   at System.Web.HttpResponse.get_Headers()
   at ServiceStack.WebHost.Endpoints.Extensions.HttpResponseWrapper.get_Headers()
   at ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions.WriteToResponse(IHttpResponse response, Object result, Func`2 defaultAction, String defaultContentType)</StackTrace> 
</ResponseStatus> 
</GetFactorialResponse>

What version of the product are you using? On what operating system?
Using Version 1.34 of Service Stack released on 20/06/2010 on WinXP & Mono.

Please provide any additional information below.
It was working fine with the earlier version.

Original issue reported on code.google.com by mgo...@gmail.com on 22 Jun 2010 at 6:21

GoogleCodeExporter commented 8 years ago
Hi,

It looks like this may be related to a bug in .NET / IIS that is identified 
here:
http://devproj20.blogspot.com/2008/02/this-operation-requires-iis-integrated.htm
l

I've implemented the work around suggested and is available in the latest 
v1.35+ version of ServiceStack .dlls you can get here:
http://servicestack.googlecode.com/files/ServiceStack.zip

Can you let me know if these changes resolves this issue?

- Demis

Original comment by demis.be...@gmail.com on 22 Jun 2010 at 10:47

GoogleCodeExporter commented 8 years ago
Downloaded the zip files. However, ServiceStack.dll and 
SeriviceStack.Interfaces.dll still has a timestamp of 6/20/2010 9:03 AM. 

Original comment by mgo...@gmail.com on 22 Jun 2010 at 11:02

GoogleCodeExporter commented 8 years ago
Hmmm, it looks like this new version of google code doesn't let me upload new 
files with the same name straight away. 
This is very lame indeed. Can you try using the attached binaries hopefully 
it's just a time/CDN/cache issue with the new uploads.

- Demis

Original comment by demis.be...@gmail.com on 22 Jun 2010 at 11:07

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, it worked fine now. Thanks for the quick fix. I probably should still wait 
for the official download from google code?

Original comment by mgo...@gmail.com on 22 Jun 2010 at 11:17

GoogleCodeExporter commented 8 years ago
Awesome!

No need, those binaries will be exactly the same as the v1.35 version (that 
hopefully make it up soon). Though I'm currently working on a fix for another 
unrelated issue so v1.35 may not be that long-lived :)

Good to know it resolved the issue. 
Thanks for reporting!

Original comment by demis.be...@gmail.com on 22 Jun 2010 at 11:21