Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7039199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:46:05+00:00 2026-05-28T01:46:05+00:00

I am trying to access WCF service through AJAX in Visual Studio 2008. For

  • 0

I am trying to access WCF service through AJAX in Visual Studio 2008.

For this, I have create one Service Library project with the name: BLM.ServiceLibrary. In this service library project, I have created one interface, one class implemented from that interface, one LINQ to SQL data classes item template to communicate with database.

I am trying to access this project from one another client project (Simple ASP.NET project) with the name: BLM. In this BLM project (client project) I have created one CRService.svc file to access the service from BLM.ServiceLibrary project. I have configured my web.config file inside BLM to access AJAX Service.

Following is the code for my web.config file. I think all the section inside is sufficient for my doubt. Hence I am presenting the code below:

<system.serviceModel>
  <behaviors>
    <endpointBehaviors>
      <behavior name="AspNetAjaxBehavior">
        <enableWebScript />
      </behavior>
    </endpointBehaviors>
  </behaviors>
  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
  <services>
    <service behaviorConfiguration="" name="BLM.ServiceLibrary.CRService">
      <endpoint behaviorConfiguration="AspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="" contract="BLM.ServiceLibrary.ICRService" />
    </service>
  </services>
</system.serviceModel>

I am getting the following error.

CAN ANYBODY HELP ME TO SORT-OUT THIS PROBLEM. Please…

One more doubt:
In the error description also told me to turn on IncludeExceptionDetailInFaults. How to do this

Microsoft JScript runtime error: Sys.Net.WebServiceFailedException: The server method ‘AddCR’ failed with the following error: null– The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:46:06+00:00Added an answer on May 28, 2026 at 1:46 am

    I forgot to code like:

    commandName.CommandType = CommandType.StoredProcedure;

    Hence, I got the above error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a client for a WCF service that I have hosted
My project is in VS2008/C# and a WCF service library. Trying to test the
I am trying to access the singleton instance created by my WCF service but
I'm trying to access the Reporting Services via Web Services in my Visual Studio
I am trying to access a WCF web service, that is using two way
I have a web application that accesses a database through a wcf service. The
I am trying to call my WCF service through a Flex application. I'm getting
I'm trying to get IIS6 to work reliably with a WCF service I have
i am trying to access a https wcf service from silverlight. the clientaccesspolicy is
I'm trying to host a WCF service in IIS so that I can access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.