Hi,
First thing first I’m using FCKEditor in asp.net site on GoDaddy.com. Of course I’m using dll assembly to control editor
Now, the problem:
When I try to browse for file I always get Security Exception in procedure
Public Shared Function CreateDirectory(ByVal path As String) As DirectoryInfo
Afther several days spent in searhing solution on google, I changed entire component to vb.net and found problem and solution on my on.
Problem was in procedure _mkdir and, I quess, dllimport function “msvcrt.dll”. Probably godaddy doesn’t allow access to this function so when I change entire CreateDirectory procedure with this
Public Shared Function CreateDirectory(ByVal path As String) As DirectoryInfo IO.Directory.CreateDirectory(path) Exit Sub
Re: Securety exception on browse
Re: Security exception on browse
Thank for your post: it keept me from trouble while deploying a .net site that uses the FCK editor at godaddy.com. Nevertheless, I feel your original post lacked detailed steps to achieve its proposed solution. Therefore, I'd post the steps I followed to solve this issue. The main tasks involded to solve this issue are:
- Edit the source code of the FCKEditor .NET dll
- Recompile the FCKEditor .NET dll
- Refresh the FCKEditor .NET dll in the project that is giving problems
To accomplish these tasks the following is required:
- Access to the source code of the FCKEditor .NETdll (In my case C#)
- Means to compile .NET assemblies (In my case Visual Studio 2005 and Visual Studio 2003)
At the time of this writing the current version of the .NET source files for the FCKEditor is 2.2. Open the Project file FredCK.FCKeditorV2.csproj with VS 2003 (If a security message appears, simply disregard it). Open the file Util.cs and comment out or delete lines 30 and 31; that is :