Comments (8)
Hi Dave,
Definitely a more appropriate 500 'Service Not Found / Implemented' error
message should've been returned instead. Can you let me know the OS .NET
platform that you're using?
Original comment by [email protected]
on 22 Jun 2010 at 4:54
from servicestack.
Also can you attach the StackTrace that you're getting if any.
P.S. By 'OS .NET Platform' I mean which version of Windows or Linux are you
using and what version of .NET or Mono.
Original comment by [email protected]
on 22 Jun 2010 at 4:57
from servicestack.
It's .Net 4.0/IIS 7.0/Server 2008. Thanks for your quick response and help!
Here is the stack trace:
In File: /Public/Json/SyncReply
Date: 6/22/2010 10:02:54 AM
Error: System.ArgumentNullException: Value cannot be null.
Parameter name: key
Source: mscorlib
Stack trace:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at
ServiceStack.ServiceModel.Serialization.KeyValueDataContractDeserializer.Parse(I
Dictionary`2 keyValuePairs, Type returnType)
at ServiceStack.WebHost.Endpoints.Support.JsonHandlerBase.CreateRequest(String
operationName, String httpMethod, NameValueCollection queryString,
NameValueCollection requestForm, Stream inputStream)
at
ServiceStack.WebHost.Endpoints.Support.JsonHandlerBase.CreateRequest(HttpRequest
request, String operationName)
at
ServiceStack.WebHost.Endpoints.JsonSyncReplyHandler.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.I
ExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Original comment by dave.w.murphy
on 22 Jun 2010 at 5:03
from servicestack.
Hi Dave,
Can I have a look at the HTTP Url you are using that generates the error as
based on the StackTrace it looks like the error might be caused by the
querystring params instead of the missing service.
Original comment by [email protected]
on 22 Jun 2010 at 5:35
from servicestack.
There are are no querystring params. The URL is
'https://localhost/Public/Json/SyncReply/Tests' (where
'https://localhost/Public/Json/SyncReply/Test' is a valid service and works
just fine).
Here's a copy of the yellow page error (the previous stacktrace was from my
exception logger/handler) and screenshots attached.
Server Error in '/' Application.
Value cannot be null.
Parameter name: key
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can be
identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: key]
System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +12670101
ServiceStack.ServiceModel.Serialization.KeyValueDataContractDeserializer.Parse(IDictionary`2 keyValuePairs, Type returnType) +69
ServiceStack.WebHost.Endpoints.Support.JsonHandlerBase.CreateRequest(String operationName, String httpMethod, NameValueCollection queryString, NameValueCollection requestForm, Stream inputStream) +746
ServiceStack.WebHost.Endpoints.Support.JsonHandlerBase.CreateRequest(HttpRequest request, String operationName) +109
ServiceStack.WebHost.Endpoints.JsonSyncReplyHandler.ProcessRequest(HttpContext context) +160
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +597
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1
Original comment by dave.w.murphy
on 22 Jun 2010 at 5:45
Attachments:
from servicestack.
Hi Dave, thanks for the detailed StackTrace and screen-shots, it helped track
down the issue:
It seems that I wasn't extending the same error handling love found in my Xml
endpoint to the other JSON/JSV endpoints!
This should now be resolved with the latest binaries (v1.36+) and you should
hopefully get a more appropriate error message.
I'm having some delay problems uploading new versions of the binaries to
code-project (it looks like a CDN/cache issue with the new release of google
code). So I've attached the binaries on this comment for you to try.
Can you let me know if you get a more appropriate error?
Original comment by [email protected]
on 22 Jun 2010 at 11:54
Attachments:
from servicestack.
Yes, much better. 500 status returned and no exceptions are raised.
Cheers, thanks.
-Dave
Original comment by dave.w.murphy
on 23 Jun 2010 at 7:14
from servicestack.
Original comment by [email protected]
on 23 Jun 2010 at 9:22
- Changed state: Fixed
from servicestack.
Related Issues (20)
- Serializing byte[] cannot be Deserialized.
- CreateTransaction failing HOT 1
- TypeInitializationException when a class have a property that return an XElement value
- TypeInitializationException when deserialiaze a string to a class that have a static property
- Priority of Web Sockets HOT 1
- How to Store values in session
- Implement Forms Authentication Using ServiceStack HOT 1
- OrmPostgreSQL HOT 1
- Supporting for redis ZCOUNT command
- WCF helper implementation
- Null reference exception on call to GetAll HOT 2
- Broken link on Project Home HOT 2
- DeSerialising dictionary with type Dictionary<Tuple<string,string>,double>>() does not work
- Wrong Encoding
- ServiceStack.Redis reading large files from Redis server
- ServiceStack.Redis.RedisResponseException
- Db number is fogotten when using pooled clients.
- SOAP request and response wrappers
- Tutorial references ServiceStackHttpHandlerFactory which isn't included in ServiceStack.dll
- Future roadmap suggestion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicestack.