I have an asp.net 2.0 web app running on my laptop with FCKeditor file browsing working fine. When I copy my app to my GoDaddy shared hosting account, the file browser throws an error:
the file being called is
I have Googled and all I have found indicates that this is a Partial Trust issue that can only be corrected in the machine.config, which of course I have no access to. What's really weird is that I have other sites hosted on GoDaddy with the FCKeditor and do not have this issue. Also, it lets me upload images. It just doesn't let me browse them to insert them into the editor. Any ideas?
Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: System.Security.Permissions.SecurityPermission
the file being called is
editor/filemanager/browser/default/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F
I have Googled and all I have found indicates that this is a Partial Trust issue that can only be corrected in the machine.config, which of course I have no access to. What's really weird is that I have other sites hosted on GoDaddy with the FCKeditor and do not have this issue. Also, it lets me upload images. It just doesn't let me browse them to insert them into the editor. Any ideas?
Re: File Browser Trust Issue
I am still getting this error about security and I cannot browse the files. It works perfectly on my dev box. I have even tried putting the UserFiles folder in different directories to no avail. This is a HUGE issue as the editor is useless if I can't browse the images I have uploaded for insertion in the editor.
Anybody else have FCK editor working on Goddaddy shared hosting? My config has the aspx indicated and the webconfig has the proper path. As I mentioned, it uploads images perfectly.
Re: File Browser Trust Issue
- If the DLL had no trust and no permissions on the folder then the uploads would not work. But they do work perfectly. (I've tried everything with permissions and setting different folders)
- The error message litterally read that it cannot access the current folder "/". Is it possible that the browser is trying to access the root directory (which, by the way, does NOT have open permissions set on my account, for a good reason) - could we possibly set the default directory to something other than "/"? (to be honest, the documentation indicates that the browse function occurs WITHIN the UserFilesPath... so "/" may actually be... "/UserFiles/"???)
- If I were to convince the host (GoDaddy) to allow override of trust level, they would have to reconfigure this every time they move my account to a new server... so I am not sure that I would want them to have to do that. SO I did not pursue this option. Is there another way to give an application a higher trust level that does not violate the 'allow overide=false' flag?
- In the past I remember somthing about a .dll being compiled differently so that it has 'Medium Trust'. Possibly someone could help us learn to compile the source code for 'Medium Trust'?
Looking forward to a solution. This is quite needed for my users as well!
Re: File Browser Trust Issue
Just two days ago other user posted the correct answer for this problem instead of bringing back to life an old unanswered thread viewtopic.php?f=5&t=6837
You can check also http://dev.fckeditor.net/ticket/415
Re: File Browser Trust Issue
(If anyone is having trouble following the instructions included in the links above, please feel free to contact me. It was not too complicated for a programmer, but I can only imagine the confusion for a web admin who is not familiar with Visual C#)
Re: File Browser Trust Issue
orgsauce could you help me?
thank you
and must i put bin directory under the /FCKeditor/editor/filemanager/connectors/aspx/ and it's include FredCK.FCKeditorV2.dll ? not only root/bin/ ?