This project is read-only.
1
Vote

A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll

description

I have opened the project with Visual Studio 2012 Desktop Express and got his error after running the project.
I am using Newtonsoft.Json.Compact.dll.

'JsonRpcGen.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Development\misc\jsonrpcgen\JsonRpcGen\JsonRpcGen\bin\Debug\JsonRpcGen.exe', Symbols loaded.
'JsonRpcGen.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Development\misc\jsonrpcgen\JsonRpcGen\JsonRpcGen\bin\Debug\Newtonsoft.Json.Compact.dll'
'JsonRpcGen.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.AggregateException' occurred in mscorlib.dll
An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll
Additional information: One or more errors occurred.
The program '[9816] JsonRpcGen.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

comments

ncarthy wrote Dec 28, 2013 at 3:56 PM

This is caused by incorrect settings for the args variable in JsonRpcGen::Program.cs. Just set them to the correct settings for your xbmc machine. For example mine read:
#if DEBUG
            args=new string[]{"http://192.168.1.15:8080/jsonrpc","","", "XBMCRPC"};
#endif