Ticket #415 (closed Bug: fixed)

Opened 2 years ago

Last modified 19 months ago

.NET Connector could not run in medium trust.

Reported by: RobertSirre Owned by: fredck
Priority: Normal Milestone: FCKeditor.Net 2.5
Component: Server : ASP.Net Version:
Keywords: Confirmed Cc:

Description

Dear Fred,

Is had an issue of the .Net connector not being able to run in medium trust in my .Net 2.0 environment. There for I downloaded your sourcefiles in order to be able to debug my situation.

I also converted the project to VS2005/.NET 2.0.

I made a minor change to FileWorkerBase.UserFilesDirectory() (one Configuration import, and hostingenvironment.Mappath)

And a major change to Util.CreateDirectory(path) You created the directory by recursively searching for a parent directory and then creating the child directories one by one by using an imported (Com?) dell. I circumvented this method and just called the createdirectory method, of which I know it can create nested directories at a time), and now it works.

Maybe I made your code less generic, but now it works on my host. Hope I've been a bit of help,

best regards,

Robert Sirre

Attachments

FredCK.FCKeditorV2.zip (26.1 KB) - added by RobertSirre 2 years ago.
VS2005 solution

Change History

Changed 2 years ago by RobertSirre

VS2005 solution

Changed 2 years ago by fredck

  • keywords Confirmed added
  • milestone set to FCKeditor.Net 2.3

Thanks Robert. Actually the DLL solution is still needed because of limits of Directory.CreateDirectory(). But you are right, we should at least try (catch) to use Directory.CreateDirectory, and if it throws and error, then use the _mkdir function.

Changed 19 months ago by fredck

  • status changed from new to closed
  • resolution set to fixed

Fixed with [1174].

We're now using Create() by default, and failing back to mkdir if we have problems with it.

I haven't implemented the proposed changes to FileWorkerBase as those are not related to this ticket. Also, they break compatibility with .Net 1.1, and should not bring any issues over .Net 2.0. Can you confirm it RobertSirre?

Changed 19 months ago by RobertSirre

Yes I can, works like a charm.

Wow it took me about one and a half hour to get into subversion again; get a Visual Studio subversion client, download the project, check out the changes in the sourcecode, build it, find me a test platform. Then the actual test took about 5 seconds :)

Note: See TracTickets for help on using tickets.