Forum  Community Devel...  Using the FCKEd...  FCKedtior is not loaded when running in IIS
Previous Previous
 
Next Next
New Post 8/23/2007 12:55 AM
  boulderdash
13 posts
No Ranking


FCKedtior is not loaded when running in IIS 
Seems like FCKeditor is not loaded when running from IIS. Debugging via the Visual Studio is OK, the FCKeditor is loaded and fully functional.
I have created a VWG form with the FCKeditor control, compiled it and stored the DLL in the IIS bin folder, created a asp.net which contains the VWG project.
So my IIS structure is as follow:
\form1.aspx (has the VWG formbox and assembly info)
\bin\form1.dll
\FCKeditor\
Running form1.aspx from IIS loads all VWG controls and the form functions OK but the FCKeditor control is not visible. I guessed it couldn't find the \FCKeditor\ folder. Tried moving the \FCKeditor\ folder to \bin\FCKeditor\ with no luck.
I've tried changing the VWG project, setting the fckeditor1.BasePath property to FCKeditor\ , ~\FCKeditor\ with no success too.
Please advice.
Thanks,
Asaf
 
New Post 8/25/2007 10:19 AM
  boulderdash
13 posts
No Ranking


Re: FCKedtior is not loaded when running in IIS 
Any idea anyone?
 
New Post 8/25/2007 12:54 PM
  Guy
2346 posts
1st Level Poster




Re: FCKedtior is not loaded when running in IIS 

Hi Asaf,

I found the bug and it is caused because the BasePath returns a default value that starts with a "/" that causes the url to be from the root which will work in a root domain but will not work in a virtual directory. To make it work you can either change the code of the base path to:

[ DefaultValue( "/FCKeditor/" ) ]
public string BasePath
{
          get 
          { 
                    if (mstrBasePath == null) 
                    mstrBasePath = System.Configuration.ConfigurationSettings.AppSettings["FCKeditor:BasePath"]; 
          
                    return (mstrBasePath == null ? "../../../../../FCKeditor/" : mstrBasePath); 
          } 
          set { mstrBasePath = value; }
}

Or you can set the BasePath to "../../../../../FCKeditor/" after initializing the control.

Cheers,
Guy

 
New Post 8/27/2007 2:29 AM
  boulderdash
13 posts
No Ranking


Re: FCKedtior is not loaded when running in IIS 
Excellent solution, thanks!
 
New Post 12/17/2007 7:25 AM
  TheSteelMam
14 posts
No Ranking


Re: FCKedtior is not loaded when running in IIS 

hi

i have the same problem it works good on debug and also works good on the net but when i host it on iis on my lan dont work i change the basepath to "../../../../../FCKeditor/" but dont load and give me "error in page"

what should i do ?

 

 
Previous Previous
 
Next Next
  Forum  Community Devel...  Using the FCKEd...  FCKedtior is not loaded when running in IIS
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS