sharepoint - Using Smart part for FBA site -
The controls use to me, including some Ajax functionality I add relevant tags to your site Ajax compatible (ie web.config) Make all the necessary changes to make that work fine. I am using a smart part to load this user control. But when I click on opening the tool panel for the smart part, it is giving me this for the following.
We could not open the user control path: System.UnauthorizedAccessException: Access to the path 'C: denied \ Inetpub \ wwwroot \ WSS \ VirtualDirectories \ 5252 \ UserControls'. System.IO .__ Error.WinIOError (Int32 errorCode, String maybeFullPath) (string path System.IO.Directory.InternalGetFileDirectoryNames on System.IO.Directory.GetFiles, string userPathOriginal, string searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) at (string path, string searchPattern, SearchOption searchOption) on SystemkIOkDirectorykGetFiles (string path) at SmartPart.UserControlToolpart.RenderToolPart (HtmlTextWriter output)
Please outside help me to solve this error I had a problem sometime ago ..
With its more problem with how SmartPart works, User ControlPath always points towards the user control path.
According to January (SmartPart Creator) you can convert it to DWP file. You can do change Ippart its path to deploy and Vebpart export, open Dwvp / Vebpart file in Notepad, text UserControlPath . Back to the webpart Upload SharePoint with different names and to use the new webpart
An issue is that it works for the first time and then when I edit it or user control it changes back to the / UserControl Try to change
What I have copied the code from to solve and made the UserControlPath property truly browsable so that path is present in the web page. Part of the code snippet is shown in the toolpart SmartPart.cs
[browsable (right), WebPartStorage (Storage.Personal)] public string UserControlPath {....}
Comments
Post a Comment