none
Newbie: issues during setting WCF data services. Please help!!! RRS feed

  • Question

  • Need help with the following issue.

    Tools:

    Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL

    Microsoft .Net Framework Version 4.6.00081

    Database: Oracle 11G

    Tutorial Followed: 

    download .oracle . com/oll/obe/EntityFrameworkWCF/WCFEntityFramework.htm

    msdn . microsoft . com/en-us/data/gg601462.aspx

    After setting up, when i bring up my browser My initial page Shows the following( localhost : 45840/WcfDataService.svc/ ):

      <?xml version="1.0" encoding="utf-8" ?>
    - <service xml:base="http : / /  localhost: 45840 / WcfDataService.svc /" xmlns="http : / / www .w3 .org/2007/app" xmlns:atom="http : / / www . w3. org/2005/Atom">
    - <workspace>
      <atom:title>Default</atom:title>
    - <collection href="MCC_CODES">
      <atom:title>MCC_CODES</atom:title>
      </collection>
      </workspace>
      </service>



    Then, When I go in to MCC_CODES, I get the following error: ( http : / / localhost : 45840/WcfDataService.svc/MCC_CODES ):

    <?xml version="1.0" encoding="utf-8" ?>

    - <m:error xmlns:m="http: // schemas. microsoft. com/ado/2007/08/dataservices/metadata">
      <m:code />
      <m:message xml:lang="en-US">An error occurred while processing this request.</m:message>
    - <m:innererror>
      <m:message>The value returned by IDataServiceMetadataProvider.ContainerNamespace must not be null or empty.</m:message>
      <m:type>System.InvalidOperationException</m:type>
      <m:stacktrace>at System.Data.Services.Providers.DataServiceProviderWrapper.get_ContainerNamespace() at System.Data.Services.Providers.MetadataProviderEdmModel.GetContainerNamespace() at System.Data.Services.Providers.MetadataProviderEdmModel.EnsureDefaultEntityContainer() at System.Data.Services.Providers.MetadataProviderEdmModel.EnsureEntitySet(ResourceSetWrapper resourceSet) at System.Data.Services.Providers.MetadataProviderEdmModel.Microsoft.Data.OData.Metadata.IODataUriParserModelExtensions.FindEntitySetFromContainerQualifiedName(String containerQualifiedEntitySetName) at Microsoft.Data.OData.Query.ODataPathParser.CreateFirstSegment(String segmentText) at Microsoft.Data.OData.Query.ODataPathParser.ParsePath(ICollection`1 segments) at Microsoft.Data.OData.Query.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration) at Microsoft.Data.OData.Query.ODataUriParser.ParsePath(Uri pathUri) at System.Data.Services.RequestUriProcessor.ParsePath(Uri absoluteRequestUri, IDataService service) at System.Data.Services.RequestUriProcessor.ProcessRequestUri(Uri absoluteRequestUri, IDataService service, Boolean internalQuery) at System.Data.Services.DataService`1.ProcessIncomingRequestUri() at System.Data.Services.DataService`1.HandleRequest()</m:stacktrace>
      </m:innererror>
     </m:error>



    Not able to figure out what is wrong. Please let me know if you need any other info:

    Thanks

    Joe

    Tuesday, October 6, 2015 11:00 PM

Answers

All replies