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:
|
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