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 8585129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:59:03+00:00 2026-06-11T21:59:03+00:00

Added references: microsoft.crm.sdk.dll microsoft.crm.sdk.proxy.dll microsoft.xrm.sdk.dll Errors i get: Error 2 ‘CrmService’ does not contain

  • 0

Added references:

  • microsoft.crm.sdk.dll
  • microsoft.crm.sdk.proxy.dll
  • microsoft.xrm.sdk.dll

Errors i get:

Error 2 ‘CrmService’ does not contain a definition for ‘Url’ and no extension method ‘Url’ accepting a first argument of type ‘CrmService’ could be found (are you missing a using directive or an assembly reference?)

Error 3 ‘CrmService’ does not contain a definition for ‘CrmAuthenticationTokenValue’ and no extension method ‘CrmAuthenticationTokenValue’ accepting a first argument of type ‘CrmService’ could be found (are you missing a using directive or an assembly reference?)

Error 4 ‘CrmService’ does not contain a definition for ‘Credentials’ and no extension method ‘Credentials’ accepting a first argument of type ‘CrmService’ could be found (are you missing a using directive or an assembly reference?)

Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Security;
using System.Runtime.InteropServices;
using Microsoft.Crm.Sdk;
using System.Xml;

public partial class _Default : System.Web.UI.Page
{
    public CrmService service;

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void id_Click(object sender, EventArgs e)
    {
         string server = "192.168.1.50";
         string domain = "domain";
         string org = "organization";
         string username = "user1\\crm.bdm";
         string password = "user1secret";

         NetworkCredential cred = new NetworkCredential();
         cred.Domain = domain;
         cred.UserName = username;
         cred.Password = password;

         CrmAuthenticationToken token = new CrmAuthenticationToken();
         token.AuthenticationType = 0;
         token.OrganizationName = org;

         service = new CrmService();
         service.Url = "http://192.168.1.50/airflights/XRMServices/2011/Organization.svc";
         service.CrmAuthenticationTokenValue = token;
         service.Credentials = cred;

         cred = null;
    }

    public CrmService Service
    {
        get
        {
            return service;
        }
    }
}

What am I forgetting here ?
Thanks.

  • 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-06-11T21:59:04+00:00Added an answer on June 11, 2026 at 9:59 pm

    I’m not certain why are getting compile errors, but it might because you appear to be mixing the Crm 4 and Crm 2011 dlls.

    It’s unclear what you are trying to achieve here, you are using CrmService (a Crm 4 class) to try and connect to a 2011 endpoint, I’ve never tried this but I wouldnt expect that to work.

    I’m going to guess you are trying to write web service calls for Crm 2011, in which case I would suggest having a look at this: http://msdn.microsoft.com/en-us/library/gg309557

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

Sidebar

Related Questions

I want to use the Linkshare helper in the Microsoft.Web.Helpers dll. I added the
I added a reference (LinqBridge.dll) to my existing project and the references are conflicted
imagine the following scenario: Assembly Foo.dll references the ADOX-Library (Microsoft ADO Ext. 2.8 for
I have MapPoint 2009 installed and added a reference to the Microsoft MapPoint 16.0
So I currently have 2 WSDLs added as Service References in my solution. They
I've added the reference to System.Runtime.Serialization dll to my project but still can't find
In Microsoft Dynamics CRM 2011, I wrote one plug-in in C# for Account entity
I have a strange situation where i have added a reference to Microsoft.SqlServer.Smo Microsoft.SqlServer.ConnectionInfo
I've downloaded CRM Dynamics SDK and keep it in a local directory. In my
As I read http://msdn.microsoft.com/en-us/library/ms165394.aspx : For VB: Inside the Snippet element, add the References

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.