- Home /
Question by
rejwan1 · Aug 26, 2013 at 09:14 AM ·
wwwwebexceptionswcf
Can't access Web Service exception using Unity's WWW
Hello, I've recently added some web service debugging (sends complete exception + stack trace on errors) to our development server.
Looking in Unity, the error returned is 400 Bad Request and I can't access anything else.
Looking in Fiddler I can see there is much more there, however, I can't access this data from Unity's WWW class.
HTTP/1.1 400 Bad Request
Content-Length: 2523
Content-Type: text/html
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Mon, 26 Aug 2013 09:09:15 GMT
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Request Error</title>
<style>BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; } A:link { color: #336699; font-weight: bold; text-decoration: underline; } A:visited { color: #6699cc; font-weight: bold; text-decoration: underline; } A:active { color: #336699; font-weight: bold; text-decoration: underline; } .heading1 { background-color: #003366; border-bottom: #336699 6px solid; color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal;margin: 0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top: 16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px; font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid; white-space: pre-wrap; white-space: -pre-wrap; word-wrap: break-word; } table { border-collapse: collapse; border-spacing: 0px; font-family: Verdana;} table th { border-right: 2px white solid; border-bottom: 2px white solid; font-weight: bold; background-color: #cecf9c;} table td { border-right: 2px white solid; border-bottom: 2px white solid; background-color: #e5e5cc;}</style>
</head>
<body>
<div id="content">
<p class="heading1">Request Error</p>
<p>The server encountered an error processing the request. The exception message is 'Attempted to divide by zero.'. See server logs for more details. The exception stack trace is: </p>
<p> at CashKingMobileWebService.CKService.SpinWheel(String SecretKey, String expectedResult) in d:\Users\NZXT\Documents\Visual Studio 11\Projects\CashKingMobileServer\WCFServiceWebRole1\CKService.svc.cs:line 114
at SyncInvokeSpinWheel(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</p>
</div>
</body>
</html>
This seems just broken - does anyone know how to access the actual data sent? (Accessing www.text/www.bytes raises an error as well).
Thanks, Ron
Comment
Your answer
Follow this Question
Related Questions
WWW Class behaves strangely on iOS 3 Answers
Asset Bundle Download Crashing 0 Answers
opening a webpage? 1 Answer
Unity Webserver Communication 1 Answer
Web build: WWW downloads correctly, but www.assetBundle is Null 0 Answers