Hi,
I’m trying to install “Telerik_AJAX_controls_2010_2_929_for_SharePoint_2010_Dev.msi” and I have a rollback installation failure.
I’m very interested to know why the installer tries to access the "SharePoint_Config" database:
Looking in “event log”:
SQL database login for 'SharePoint_Config' on instance 'SP2010D' failed. Additional error information from SQL Server is included below.
Login failed for user 'PHARMA\GTYSAPPSPTT01$'.
Looking in “installation wizard log”:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Management.Automation.CmdletInvocationException: Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again. ---> Microsoft.SharePoint.PowerShell.SPCmdletException: Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again.
Regards,
Frederic Dobon
<telerik:RadCaptcha ID="recaptcha" Runat="server" />
I need to do client side validation in radgrid for this above scenario and i need to disable link button it criteria doesnot match.
Thanks,
Nagendra Prasad
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" OnDetailTableDataBind="RadGrid1_2Bind" OnItemDataBound="RadGrid1_OnDataBound" OnPreRender="RadGrid1_OnPreRender" <HeaderStyle CssClass="RadGridHeader" /> <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"/> <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True"> <ClientEvents OnRowDblClick="RowDblClicked" /> <Selecting AllowRowSelect="True" /> </ClientSettings> <MasterTableView AutoGenerateColumns="False" HierarchyLoadMode="ServerOnDemand" ShowHeadersWhenNoRecords="false" NoDetailRecordsText=""> <CommandItemSettings ExportToPdfText="Export to Pdf" ShowAddNewRecordButton="False" ShowExportToExcelButton="True" ShowExportToPdfButton="True" ShowExportToWordButton="True" ShowRefreshButton="False" /> <DetailTables> <telerik:GridTableView runat="server" Name="RedGrid_2" AllowPaging="true" AutoGenerateColumns="False" NoMasterRecordsText="" PageSize="10" Width="100%"> <Columns> <telerik:GridBoundColumn SortExpression="SupplierName" HeaderText="Supplier Name" DataField="SupplierName"> <telerik:GridTemplateColumn HeaderText="DM" SortExpression="DMetrix" DataType="System.String" UniqueName="DM" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <a><%# ((Int32)(DataBinder.Eval(Container.DataItem, "DMetrix")) == -2) ? ("--") : DataBinder.Eval(Container.DataItem, "DMetrix")%></a> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </telerik:GridTemplateColumn> </Columns> </telerik:GridTableView> </DetailTables> <Columns> <telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID" UniqueName="ID" Visible="false"> </telerik:GridBoundColumn> <%-- <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"> </telerik:GridBoundColumn>--%> <telerik:GridTemplateColumn HeaderText="" UniqueName="UpANDDown" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"> <itemtemplate> <asp:ImageButton ID="btnUp" runat="server" OnClick="btnUp_Click" ImageUrl="images/UP_Arrow_Icon.png" CommandName="UP" /> <asp:ImageButton ID="btnDown" runat="server" OnClick="btnDown_Click" ImageUrl="images/DOWN_Arrow_Icon.png" CommandName="DOWN"/> </itemtemplate> <itemstyle horizontalalign="Center"></itemstyle> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Field Quota" SortExpression="FieldQuota" UniqueName="FieldQuota" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:TextBox ID="tbFieldQuota" runat="server" Text='<%# Bind("FieldQuota") %>' ToolTip="Enter Numeric Value" Width="50px" MaxLength="5" OnTextChanged="UpdateFieldQuotaInGrid" AutoPostBack="true"></asp:TextBox> </ItemTemplate> </telerik:GridTemplateColumn> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Order" HeaderText="Order" UniqueName="IsLock" Visible="false"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </ContentTemplate> protected void RadGrid1_2Bind(object source, GridDetailTableDataBindEventArgs e) { try { GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem; if (e.DetailTableView.Name == " RadGrid1_2Bind") { string parentHedgeRemaining = dataItem["ID"].Text; DataTable dt = GetDatatabe(); e.DetailTableView.DataSource = dt; } else { e.DetailTableView.DataSource = null; } } catch (Exception ex) { } }


Hi, we have a scenario as follows:
We are using impersonation to send the windows credentials of the logged in user (NOT ASP user) to the file system.
The token is checked and the appropriate folders are displayed for that user.
The root folder is set to allow all users to view the contents of THIS FOLDER ONLY. Permissions are then set via NTFS per folder under the root folder.
SO EVERYONE CAN SEE THE LIST OF FOLDER UNDER THE ROOT FOLDER.
If we have 3 folders under the root folder, I want to list these 3 folders for the user. If they then try to navigate to one of the sub folders, the user’s NTFS permissions are used to determine if they can enter the folder, and if so, if they can read/write, etc in that folder.
This all works with the radfileexplorer EXCEPT that if a user does not have read or write permissions to one of the sub folders the control first triggers a windows challenge response, then you get an access to path “x” is denied error.
This behaviour is fine, as long as I can TRAP and handle this. I assume I need to override either the
FileSystemContentProvider.ResolveRootDirectoryAsTree function or
DirectoryLister.GetDirectory function.
I assume the problem is that the file explorer control is reading the root folder, then trying to read the contents of the sub folders in the root. As the user does not have any permissions to this folder, this causes the problem.
The only change I want to make is that it either doesn’t attempt to read sub folders when creating the root (I assume this is done in resolverootdirectoryastree).
If the user then tried to access a folder that they do not have access to, I would like to be able to handle this as well.
I have a much simpler page which has this functionality. When I list the files and fodlers in a direcotyr I simply encapsulate it in a try and catch – this allows me to handle the access is denied error:
Try
Dim arrFiles As New ArrayList
arrFiles.AddRange(myDir.GetFiles)
Dim arrFolders As New ArrayList
arrFolders.AddRange(myDir.GetDirectories)
Catch ex As Exception
Literal1.Text = ("<script language=""javascript"">alert('Error reading path: " & myDir.FullName.Replace(lblRootPath.Text, "[Root Folder]\").Replace("\", "\\") & "\n\n" & ex.Message.Replace(lblRootPath.Text, "[Root Folder]\").Replace("\", "\\").Replace("'", "\'") & "');</script>")
End Try
The trace for the error is below:
UnauthorizedAccessException: Access to the path 'C:\denzien_docs\james cannot get in here' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2001955
System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +1817
System.IO.DirectoryInfo.GetDirectories(String searchPattern, SearchOption searchOption) +57
System.IO.DirectoryInfo.GetDirectories() +11
Telerik.Web.UI.Widgets.DirectoryLister.GetDirectories(DirectoryInfo directory, String parentPath) +24
Telerik.Web.UI.Widgets.DirectoryLister.GetDirectory(DirectoryInfo dir, String virtualName, String location, String fullPath, String tag) +150
Telerik.Web.UI.Widgets.FileSystemContentProvider.ResolveRootDirectoryAsTree(String path) +210
Telerik.Web.UI.RadFileExplorer.HasSubFolders(String virtualPath) +73
Telerik.Web.UI.RadFileExplorer.PopulateTreeNode(RadTreeNode currNode) +315
Telerik.Web.UI.RadFileExplorer.BindExplorer() +627
Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +166
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436