cancel
Showing results for 
Search instead for 
Did you mean: 

DataServiceQueryException was handled by user code.Visual Studio 2010.

Former Member
0 Kudos

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 http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/1051f6d9-e87a-2e10-d188-e2786c7878b1

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member206403
Active Contributor
0 Kudos

hi

install the plug in for the VS .net studio and then follow the wizard , it should work

it worked for me.

Regards

sameer

Former Member
0 Kudos

Hi Sameer,

Thanks for the reply. In my post earlier I have mentioned that I have already successfully installed the SAP Netweaver Gateway developer tool, but is there something that I am missing ? as you have mentioned in your post about some plugin. Please can you point me towards the download of this Plugin for Visual Studio.

Also I was able to successfully run the SAP_Gateway_ESW_CRM_Contacts solution without any issues. Upon debugging I found that this solution throws no exception anywhere and is able to succesfully execute the query on the url but this is not same scenario with the SAP_Gateway_ESW_Flights and Sales_Order solutions where I am facing the error on the page load event. Thanks again for your help.

Thanks and Regards,

Vipul

Former Member
0 Kudos

hi

i have tried the examples , the problem is some of the services that they have mentioned have new names that i found , the existing code which is available for download may not work , what i did is i created the app using the wizard in the tool given , it generated all the pages again , then it worked.

Are you trying to use the existing demo system that is provided by sap or have you got the gateway installed in ur landscape?

regards

sameer    

Former Member
0 Kudos

Hi Sameer,

Guess you are absolutely correct I thought the same that there is some issues with the service name. Also I have tried to create the app using the wizard on Flight Information and it works correctly.

Yes I am working on the demo system (http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/1051f6d9-e87a-2e10-d188-e2786c7878b1) we do not have gateway installed. Is there any demo installation for gateway so that I can learn/practice Update Delete operations as well and also help me for further learning SAP Netweaver.

Thanks and Regards,

Vipul

Former Member
0 Kudos

hi

i am trying to install in the ides system , lets see if it works. The CURD operations can be found in the sales order example. i hope it works.

Do share your expereince if it works , i also want create some DAL [Data access layer] for this kind of scenario.    

Regards

sameer

Former Member
0 Kudos

Hi Sameer,

Thanks, yes I had seen the Sales Order example but it requires user id and password which I don't have. Till now have been facing prompts for SAP Service marketplace authentication and for es.workplace authentication and overall I don't know how to get them or where to request for them.

Once I setup a sample for CRUD then I would try to link it with my existing GIS Web Mapping Application and see how it looks. But it seems too far fetched now. Sure I will share my experience with you.

Thanks and Regards,

Vipul

Former Member
0 Kudos

hi

you can take the service market place id frm your basis team.

regards

sameer    

Answers (0)