or
<telerik:RadUpload ID="RadUpload1" runat="server" TargetFolder="~/images/cars/" maxfileinputscount="10" maxfilesize="1000000" ControlObjectsVisibility="All" Skin="Web20" InitialFileInputsCount="5" > </telerik:RadUpload><asp:Repeater ID="rptMain" runat="server"> <ItemTemplate> <Telerik:RadToolTip ID="RadToolTip" runat="server" TargetControlID="btnPhone" IsClientID="false" HideEvent="ManualClose"> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr valign="top"> <td><asp:ImageButton ID="btnPhoneStartP" runat="server" ImageUrl="~/DesktopModules/MaganSoft.PerKad.CandidateActive/Images/phone_green.png" CommandName="PhoneStart" CommandArgument='<%# Container.DataItem.PhoneNumberP %>' AlternateText="Made Call" ToolTip="Made Call" Visible='<%# IIF(Container.DataItem.PhoneNumberP <> "", True, False) %>' /></td> <td><asp:ImageButton ID="btnPhoneStopP" runat="server" ImageUrl="~/DesktopModules/MaganSoft.PerKad.CandidateActive/Images/phone_red.png" CommandName="PhoneStop" CommandArgument='<%# Container.DataItem.PhoneNumberP %>' AlternateText="Missed Call" ToolTip="Missed Call" Visible='<%# IIF(Container.DataItem.PhoneNumberP <> "", True, False) %>' /></td> </tr> </table> </Telerik:RadToolTip> </ItemTemplate></asp:Repeater>Protected Sub rptMain_ItemCommand(source As Object, e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles rptMain.ItemCommand If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then If e.CommandName = "PhoneStart" Then Dim strPhoneNumber As String = e.CommandArgument Dim lblFirstName As Label = CType(e.Item.FindControl("lblFirstName"), Label) Dim lblLastName As Label = CType(e.Item.FindControl("lblLastName"), Label) Dim strGUID As String = System.Guid.NewGuid.ToString Dim strCompanyName As String = Null.NullString Dim strName As String = lblFirstName.Text & " " & lblLastName.Text m_MaganSoftHelperMethods.CreateXMLPhoneCalls(strGUID, strName, strCompanyName, strPhoneNumber, Server.MapPath(Path.Combine(PortalSettings.HomeDirectory, "madecalls.xml")), "madecalls.xml", "madecalls", "madecall") End If If e.CommandName = "PhoneStop" Then Dim strPhoneNumber As String = e.CommandArgument Dim lblFirstName As Label = CType(e.Item.FindControl("lblFirstName"), Label) Dim lblLastName As Label = CType(e.Item.FindControl("lblLastName"), Label) Dim strGUID As String = System.Guid.NewGuid.ToString Dim strCompanyName As String = Null.NullString Dim strName As String = lblFirstName.Text & " " & lblLastName.Text m_MaganSoftHelperMethods.CreateXMLPhoneCalls(strGUID, strName, strCompanyName, strPhoneNumber, Server.MapPath(Path.Combine(PortalSettings.HomeDirectory, "missedcalls.xml")), "missedcalls.xml", "missedcalls", "missedcall") End If End IfEnd SubDIR2\bgr.png' is denied.
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\DIR1\DIR2\bgr.png' is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10546931 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2580 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138 System.IO.FileStream..ctor(String path, FileMode mode) +91 System.Web.HttpPostedFile.SaveAs(String filename) +151 Telerik.Web.UI.PostedFile.SaveAs(String fileName, Boolean overwrite) +54 Telerik.Web.UI.Widgets.FileSystemContentProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +120 Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +959 Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +169 System.Web.UI.Control.LoadRecursive() +66 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428 |
e.Appointment.Start.ToUniversalTime();
e.Appointment.End.ToUniversalTime();
While stepping thru the code the start and end times look ok, meaning they are in UTC however i get the error above
at Exchange\ExchangeSchedulerProvider.cs:line 166
at Telerik.Web.UI.SchedulerProviderBase.Insert(ISchedulerInfo schedulerInfo, Appointment appointmentToInsert)
when trying to create the item.
Can you please help?