Could not load type 'Telerik.Web.Examples.Scheduler.ExchangeSchedulerProvider'

9 posts, 0 answers
  1. Brian
    Brian avatar
    68 posts
    Member since:
    Jun 2011

    Posted 07 Jul 2011 Link to this post

    Hello,

    I have installed the RadControls trial version and the sample ScheduleBuilder (that is the only sample that I have installed). The sample is in C# and in the header of the Default.aspx sample, it contains:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     
    My reason for pointing this out is because on your webpage Scheduler / Binding to Generic List, the VB example contains several additional lines of script between the <%@ Page... line and the <!DOCTYPE.... line (as follows):

    <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb"

    Inherits="Telerik.Web.Examples.Scheduler.BindToList.DefaultVB" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <%@ Register TagPrefix="sds" Namespace="Telerik.Web.SessionDS" %>
    <!
    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

     

    I'm not sure if this has anything to do with my issue, so I want to point out this difference between the VB and C# examples.

    The ScheduleBuilder sample has, but default, connection strings for SQL Server. I am trying to replace those connections with a connector to my Exchange data store. That is possible, right?

    I am using Visual Studio 2010 and Exchange Server 2010. These are 2 different machines. The sample ScheduleBuilder is running from the VS2010 machine and attempting to connect to the Exchange server machine (both machines are in the same network).

    I modified the Web.config that is included with the sample. Under the <configuration> node of the Web.Config, I added:

    <

    configuration>

      <!-- I Added: -->

      <configSections>

       <sectionGroup name="telerik.web.ui">

        <section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>

       </sectionGroup>

      </configSections

      <!-- And I Added: -->

      <telerik.web.ui>

       <radScheduler defaultAppointmentProvider="Integrated">

        <appointmentProviders>

         <add name="ExchangeSchedulerProvider" type="Telerik.Web.Examples.Scheduler.ExchangeSchedulerProvider" serverUrl=https://myExchSvr.myDomain.com/EWS/Exchange.asmx username="Admin" password="myPwd" domain="myDomain" />

        </appointmentProviders>

       </radScheduler>

      </telerik.web.ui>

      <!-- Everything after this was already in the Web.Config -->

      .

      .

      .

     </configuration>

     
    In addition, I went to the Default.aspx script and along with the attributes already assigned to telerik:RadScheduler, I added attribute:

                            ProviderName="ExchangeSchedulerProvider"

    The sample project compiles clean, but when I try to view Default.aspx, the browser displays:

    Server Error in '/ScheduleBuilder.Web' Application.

    Configuration Error

     

     

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load type 'Telerik.Web.Examples.Scheduler.ExchangeSchedulerProvider'.

    Source Error:
    Line 9:      <radScheduler defaultAppointmentProvider="Integrated">
    Line 10:       <appointmentProviders>
    Line 11: <add name="ExchangeSchedulerProvider" type="Telerik.Web.Examples.Scheduler.ExchangeSchedulerProvider" serverUrl="https://myExchSvr.myDomain.com/EWS/Exchange.asmx" username="Admin" password="myPwd" domain="myDomain" />Line 12:       </appointmentProviders>
    Line 13:     </radScheduler>

    Source File: C:\Users\Public\Downloads\Telerik\ScheduleBuilder\ScheduleBuilder.Web\web.config    Line: 11

     Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

    Using the serverURL that you see above, I can successfully add a Web Reference to https://myExchSvr.myDomain.com/EWS/Services.wsdl, and when adding the reference, I was prompted for credentials, so I used the same username and password specified in the Web.Config. I was able to successfully add a reference to Services.wsdl. Therefore I am assuming that I should have access to Exchange.asmx as well.

    The error that I am encountering does not appear to be a server-side issue, but it appears that maybe the ExchangeScheduleProvider did not properly register when installed on the VS2010 machine??? Regardless, I did test with Anonymous access both enabled and disabled on the EWS virtual (Exchange Server machine), but the same error occurs.

    I believe I am overlooking something obvious, but don't know what, and I have been trying to resolve this for several hours now. My boss wants me to prove that this control will be able to read/write appointments directly from/to an Exchange data store before he will buy this product. And I would like to prove that this radControl will work so that I don't have to design something from scratch.

    How do I resolve this problem?

    Thank you,
    Steven

  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 12 Jul 2011 Link to this post

    Hello Steven,

    Please, have a look at these isolating instructions and the help topics on Using a Data Provider and Exchange Provider. We recommend you set the provider from code behind instead of through the web.config file.

    The Exchange provider classes in the App_Code folder of the demos use name space that is specific to the Telerik.Web.UI live demos web application. If you need to reuse them for different web application you need to change the name space accordingly or just remove it for a web site. I have attached a simple demo web site which also shows how to set the provider entirely from code behind. You just need to provide your credentials in code behind.


    Hope this will help you.

    Best wishes,
    Plamen Zdravkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    68 posts
    Member since:
    Jun 2011

    Posted 13 Jul 2011 Link to this post

    Thank you for your reply.

    The reason I was trying to establish a connection between the Scheduler RadControl and Exchange via web.config was b/c of this initial documentation that I found on Telerik's website. And this documentation made sense to me, b/c I had already successfully established a connection between the Scheduler and SQL Server using the web.config. So it was only logical to reconfigure the web.config for an Exchange connection.

    On the other hand, it also makes sense to establish a connection programmatically, as you suggest. So I took your suggestion and added a page_init to the ScheduleBuilder sample (the sample provided by you / Telerik). I added the following to Default.aspx:

    protected
    void Page_Init(object sender, EventArgs e) {
        ExchangeSchedulerProvider provider =
        new ExchangeSchedulerProvider("https:.../Exchange.asmx", "user_name", "pass_word", "domain_name");
        RadScheduler1.Provider = provider;

    }

    But I cannot get the project to compile after adding the page_init method. The VS2010 compiler throws the following error:

        Error 1 The type or namespace name 'ExchangeSchedulerProvider' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Public\Downloads\Telerik\ScheduleBuilder\ScheduleBuilder.Web\Default.aspx.cs 32 9 C:\...\ScheduleBuilder.Web\

    Where is the ExchangeSchedulerProvider class stored? I assumed it would be a member of Telerik.Web.UI.dll, which is currently referenced by the project and Default.aspx includes the following:

        using
    Telerik.Web.UI;

    Does the Trial Version and the sample ScheduleBuilder (that I am using from Telerik) contain a complete version of Telerik.Web.UI.dll or is it a scale-down, limited-functionality of the full Telerik product?

    Just like I mentioned in my intial posting of this issue, I am using the Trial Version of the RadControls. I do not have the full retail version. I must prove to my employer that RadControls will work with Exchange before my boss will purchase the full version. Is this class, ExchangeSchedulerProvider, included in the Trial Version of the RadControls and if so, why does my compiler encounter the above error?

    Thanks for your feedback,
    Steven

  5. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 18 Jul 2011 Link to this post

    Hi Steven,

    Please make sure that you copy the Exchange folder into your App_Code folder and set your own settings for "YourServerUrl", "YourUserName", "YourPassword", "YourDomain".

    Here is another project that worked at our side .

    Best wishes,
    Plamen Zdravkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 20 Jul 2011 Link to this post

    Hello Steven,

    Here I am sending you the whole project.

    Best wishes,
    Plamen Zdravkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  7. Les
    Les avatar
    29 posts
    Member since:
    Feb 2011

    Posted 09 Mar 2013 Link to this post

    Is there a way of updating this project with the 2013 1st Quarter update?
  8. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 14 Mar 2013 Link to this post

    Hi Les,

     
    I have tested it and it is working properly if you just change the dls with the ones in Q1 2013.

    Regards,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  9. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 03 Mar in reply to Plamen Link to this post

    The exchange project looks interesting and helpful but the default.aspx.cs file is missing from the zip, can you provide it please?
  10. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 04 Mar Link to this post

    Hello,

    You can find a sample page with the Exchange provider here and the help topic about it is here.

    Regards,
    Plamen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017