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

  • Home
  • SEARCH
  • 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 957199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:39:49+00:00 2026-05-16T00:39:49+00:00

When I try to develop CRM stuff, using the code below: public static CrmService

  • 0

When I try to develop CRM stuff, using the code below:

 public static  CrmService GetCrmService()
        {
           //Standard CRM setup

            var authenticationToken = new CrmAuthenticationToken();
            //Using the active directory
            authenticationToken.AuthenticationType = 0;
            authenticationToken.OrganizationName = "myorganizationName";

            var crmService = new CrmService();
            crmService.PreAuthenticate = true;
            crmService.UseDefaultCredentials = false;
            crmService.CrmAuthenticationTokenValue = authenticationToken;

            crmService.Credentials = new NetworkCredential("username", "password", "domain");
            crmService.Url = "http://<ourserver>/mscrmservices/2007/CrmServiceWsdl.aspx";

            return crmService;
        }

        public void RetrieveAccount()
        {

            var accountGuid = new Guid("088FFC38-8285-4AF5-8E36-84BAD6B268ED");
            var crmService = GetCrmService();

            //Set the column to return

            var returnedColumns = new ColumnSet();

            returnedColumns.Attributes = new string[] { "name", "telephone1", "customertypecode" };

            try
            {
                var receivedAccount = crmService.Retrieve(EntityName.account.ToString(), accountGuid, returnedColumns) as account;
                if (receivedAccount != null)
                {
                    Debug.WriteLine(string.Format("Name: {0}, Telephone: {1}", receivedAccount.name, receivedAccount.telephone1));
                }

            }
            catch (Exception exception)
            {

                Debug.WriteLine(exception.Message);
            }


        }

It comes up with the following exception:

“Possible SOAP version mismatch:
Envelope namespace
http://schemas.xmlsoap.org/wsdl/ was
unexpected. Expecting
http://schemas.xmlsoap.org/soap/envelope/.”

Is there any solution for this problem ?

Thanks in advance.

  • 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-16T00:39:50+00:00Added an answer on May 16, 2026 at 12:39 am

    After spending several hours, I have figured out that the problem was occured because of using the wrong service address. Instead of connecting to the actual address, I have connected to a redirected address.

    So in the above code, I used the redirected address:

    https://servername/MSCrmServices/2007/CrmServiceWsdl.aspx

    I should have been used the following address:

    https://servername/mscrmservices/2007/crmservice.asmx

    Cheers.

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

Sidebar

Ask A Question

Stats

  • Questions 513k
  • Answers 513k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think the Perl web framework with most Rails-like routing… May 16, 2026 at 5:49 pm
  • Editorial Team
    Editorial Team added an answer You can render the control into a string. public string… May 16, 2026 at 5:49 pm
  • Editorial Team
    Editorial Team added an answer The only thing you could do is return default(T), which… May 16, 2026 at 5:49 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm try develop an ActiveX Control in VB6. It have one UserControl and one
I try to develop my own little framework. For this, I'd like to read
I try to develop JPA project on ibm RAD. And i can run it
I try to develop a simple average function in Haskell. This seems to work:
I'm try to develop a regex that will be used in a C# program..
i am try to develop a small application. Now should i organize my 3rd
I'm currently working with PHPUnit to try and develop tests alongside what I'm writing,
I have a quick little application and wanted to give a try to develop
I use MVC2/asp.net and try to develop something like a wizard. This wizard will
Try the following code: myListener = new Object(); myListener.onKeyUp = function() { if (Key.isDown(Key.CONTROL)

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.