Skip to Content
Former Member
Mar 22, 2012 at 09:21 AM

DataServiceQueryException was handled by user code.Visual Studio 2010.


Dear Friends,

I have just started to venture in the SAP Netweaver gateway programming from Visual Studio 2010 and I am facing an issues in the startup itself. Any help is highly appreciated.

1. Downloaded and installed SA Netweaver Gateway developer tool.

2. Downloaded the Flight Example .Net code sample from

3. Unzipped and executed the code F5 and encountered the error DataServiceQueryException was handled by user code. error code 400 in page0.aspx.cs at Page_Load event.

Also further tried to create a new sap web application from the wizard but still encountered the same error. I went through the pdf for the installation and prerequisite but nothing seems to show that I am missing some component installation or any required configuration.

If I can get any help to resolve this issue or any pointer in the right direction, it will help me a lot. I am also attaching the snapshot of the error message.


error.jpg (555.9 kB)