OData by default and configuring service configuration files in a Silverlight application created in MS Visual Studio 2013

I am creating a Lightswitch application using MS Visual Studio 2013. As part of this, I access the data through the OData URL (referring to the dynamic navigation project), which does not seem to want to collect company data in the URL. (Without him). However, in Visual Studio, I see only column headers and data. When I debug a message, I get the following error message:

  

"The request cannot be processed because it cannot find the default Microsoft Dynamics NAV company. You can specify the default company in the service configuration file or specify it for each tenant or add a query line in the form" company = [name] ". You can see available companies by contacting the default OData web service, Company. For more information, see "OData Web Services" in the Help. "

  

For example: (OData url): local: 7048 / DynamicsNAV70 / OData / Company ('CRONUS% 20International% 20Ltd') / SalesOrder

But available only for viewing: localhost: 7048 / DynamicsNAV70 / OData /, and then select SalesOrder

: ? (Visual Studio? , ?) OData Web Services" .

0
1

Visual Studio , :

ServiceReference1.NAV nav = new ServiceReference1.NAV( Uri ( "http:...../OData/Company ('company_name')/" ));

nav.Credentials = System.Net.NetworkCredential( "", "", "" );

+2

Source: https://habr.com/ru/post/1774853/


All Articles