or
<%@ ServiceHost Language="C#" Debug="true" Service="CustomPlannerService, $SharePoint.Project.AssemblyFullName$" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
protected void RadScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e)
{HttpCookie cookie = FormsAuthentication.GetAuthCookie(User.Identity.Name, false);
string cookieHeader = string.Format("{0}={1}", cookie.Name, cookie.Value);
e.Headers.Add(HttpRequestHeader.Cookie, cookieHeader);
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
system.web
>
<
customErrors
mode
=
"Off"
/>
</
system.web
>
<
system.web.extensions
>
<
scripting
>
<
webServices
>
<
jsonSerialization
maxJsonLength
=
"5000000"
/>
</
webServices
>
</
scripting
>
</
system.web.extensions
>
<
system.serviceModel
>
<
services
>
<
service
name
=
"CustomPlannerService"
>
<
endpoint
address
=
""
behaviorConfiguration
=
"CustomPlannerServiceBehavior"
binding
=
"webHttpBinding"
contract
=
"CustomPlannerService"
/>
</
service
>
</
services
>
<
behaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"CustomPlannerServiceBehavior"
>
<
enableWebScript
/>
</
behavior
>
</
endpointBehaviors
>
<
serviceBehaviors
>
<
behavior
name
=
""
>
<
serviceMetadata
httpGetEnabled
=
"true"
/>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
</
behavior
>
</
serviceBehaviors
>
</
behaviors
>
</
system.serviceModel
>
</
configuration
>