This is a migrated thread and some comments may be shown as answers.

Server error opening "Image Manager" or "Document Manager"

4 Answers 196 Views
Editor
This is a migrated thread and some comments may be shown as answers.
smac_08
Top achievements
Rank 1
smac_08 asked on 08 Dec 2008, 06:30 PM
Hello,

before 20 days my Hosting provider had problems with his web server.
After reinstalling and restoring all reseller accounts including mine I have again uploaded customer website with our custom CMS developed with Telerik controls (RadControls_Q3_2007_SP1) in VS.NET 2005.
After that all pages with RadEditor (version 7.3.1.0) after opening "Image Manager" or "Document Manager" give error message.
Below is error text:

Server Error in '/RadControls' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'RadUpload.Net2' or one of its dependencies. The system cannot find the file specified. (C:\inetpub\vhosts\gimnazija-cres.hr\httpdocs\cms\web.config line 24)

Source Error:

Line 22:  
Line 23:  <httpModules>
Line 24:   <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
Line 25:  </httpModules>
Line 26:
 

Source File: C:\inetpub\vhosts\gimnazija-cres.hr\httpdocs\cms\web.config    Line: 24

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053


This is strange because on another page where we use only RadUpload (version 2.4.3.0) control for upload images all works well.

Below is our web.config file:
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="work" value="C:\inetpub\vhosts\gimnazija-cres.hr\httpdocs\test\galery" />
  </appSettings>
  <connectionStrings>
    <add name="connCres" connectionString="Provider=SQLOLEDB;Data Source=85.94.76.170\YODA;Initial Catalog=smartplus_gimnazija_cres; UID=smartplus; PWD=sasa3112;" />
  </connectionStrings>
  <system.web>
    <customErrors mode="Off"/>
    <authentication mode="Forms" />
 <authorization>
  <allow users="*"/>
  <deny users="?"/>
 </authorization>
   
 <compilation defaultLanguage="c#" />
    <globalization culture="hr-HR" uiCulture="hr-HR" />
 <httpHandlers>
      <add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />
    </httpHandlers>

    <httpModules>
      <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
    </httpModules>
  </system.web>
 
  <!--
  <system.webServer>
  <modules>
            <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" preCondition="managedHandler" />
        </modules> 
  <handlers>
  <add name="Telerik.RadUploadProgressHandler.aspx_*" path="Telerik.RadUploadProgressHandler.aspx" verb="*" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
 <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>
 
  -->
</configuration>
--------------------------------------------------------------------------------


Does anybody have the same problem or have any idea for solution of this problem?


Best regards,
    Sasa

4 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 10 Dec 2008, 07:42 AM
Hi Sasa,

The error details indicate that your project is referencing the RadUpload assembly, but the file RadUpload.Net2.dll cannot be opened. If you are not using the RadUpload in your project, open the file C:\inetpub\vhosts\gimnazija-cres.hr\httpdocs\cms\web.config on your server and delete line 24. Note that the editor dialogs have their own upload implementation which does not depend on RadUpload.

If you are using the RadUpload component somewhere else in your project, then what probably happened was that the RadUpload.Net2 assembly was in the server's GAC and after your hosting provider reinstalled the server, the assembly was no longer there. You need to ask them to put it back in the GAC or copy it in the bin folder of your web application.

Regards,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
smac_08
Top achievements
Rank 1
answered on 11 Dec 2008, 12:59 AM

Hello Lini,

 

thanx for your answer.

In CMS we use RadUpload control on other page without registering in GAC (only in bin directory).
Yesterday, we deleted this domain and again recreated in our reseller account.

After uploading CMS, we created virtual folder for RadControls and copied Telerik controls which
we use in our project (but I'm not sure any more that I must create virtual folder for RadControls).

After that all pages with RadEditor (version 7.3.1.0) after opening "Image Manager" or "Document Manager" give following error message:
This is a marker file generated by the precompilation tool, and should not be deleted!

Hosting manager (PLESK) for RadControls folder has created web.config file, but I'm not sure it is OK.
Bellow is script from this web.config file:
-----------------------------------------------------------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <clear />
            <add name="Plesk_Handler_0705112517" path="*.asp" verb="GET,HEAD,POST,TRACE" modules="IsapiModule" scriptProcessor="c:\windows\system32\inetsrv\asp.dll" resourceType="Either" />
            <add name="Plesk_Handler_0705113947" path="*.cer" verb="GET,HEAD,POST,TRACE" modules="IsapiModule" scriptProcessor="c:\windows\system32\inetsrv\asp.dll" resourceType="Either" />
            <add name="Plesk_Handler_0705113948" path="*.asa" verb="GET,HEAD,POST,TRACE" modules="IsapiModule" scriptProcessor="c:\windows\system32\inetsrv\asp.dll" resourceType="Either" />
            <add name="Plesk_Handler_0705113950" path="*.cdx" verb="GET,HEAD,POST,TRACE" modules="IsapiModule" scriptProcessor="c:\windows\system32\inetsrv\asp.dll" resourceType="Either" />
            <add name="Plesk_Handler_0705113951" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113952" path="*.asmx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113953" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113954" path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113955" path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0702953486" path="*.shtm" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="Either" />
            <add name="Plesk_Handler_0702953491" path="*.shtml" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="Either" />
            <add name="Plesk_Handler_0702953492" path="*.stm" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="Either" />
            <add name="Plesk_Handler_0705113959" path="*.php" verb="*" modules="CgiModule" scriptProcessor="c:\program files\swsoft\plesk\additional\pleskphp5\php-cgi.exe" resourceType="Either" />
            <add name="Plesk_Handler_0705113960" path="*.php3" verb="*" modules="CgiModule" scriptProcessor="c:\program files\swsoft\plesk\additional\pleskphp5\php-cgi.exe" resourceType="Either" />
            <add name="Plesk_Handler_0705113961" path="*.phtml" verb="*" modules="CgiModule" scriptProcessor="c:\program files\swsoft\plesk\additional\pleskphp5\php-cgi.exe" resourceType="Either" />
            <add name="Plesk_Handler_0705113962" path="*.cgi" verb="GET,HEAD,POST" modules="CgiModule" scriptProcessor="c:\program files\swsoft\plesk\additional\perl\bin\perl.exe &quot;%s&quot; %s" resourceType="Either" />
            <add name="Plesk_Handler_0705113963" path="*.pl" verb="GET,HEAD,POST" modules="CgiModule" scriptProcessor="c:\program files\swsoft\plesk\additional\perl\bin\perl.exe &quot;%s&quot; %s" resourceType="Either" />
            <add name="Plesk_Handler_0705113964" path="*.plx" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="c:\program files\swsoft\plesk\additional\perl\bin\perlis.dll" resourceType="Either" />
            <add name="Plesk_Handler_0705113965" path="WebResource.axd" verb="GET,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113966" path="trace.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113967" path="WebAdmin.axd" verb="GET,DEBUG" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" />
            <add name="Plesk_Handler_0705113970" path="*.dll" verb="*" modules="IsapiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
            <add name="Plesk_Handler_0705113971" path="*.exe" verb="*" modules="CgiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
            <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" />
        </handlers>
    </system.webServer>
</configuration>

-----------------------------------------------------------------------------------------------------------------------------------------------------------


On our demand hosting provider switched AppPoll in Classic mode for RadUpload control.
The same web.config file is in root of this CMS in which we have added this:
-----------------------------------------------------------------------------------------------------------------------------------------------------------

<system.web>
    <customErrors mode="Off"/>
    <authentication mode="Forms" />
 <authorization>
  <allow users="*"/>
  <deny users="?"/>
 </authorization>
   
 <compilation defaultLanguage="c#" />
    <globalization culture="hr-HR" uiCulture="hr-HR" />
 <httpHandlers>
      <add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />
    </httpHandlers>

    <httpModules>
      <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
    </httpModules>
  </system.web>

<system.webServer>
  <modules>
            <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" preCondition="managedHandler" />
        </modules> 
  <handlers>
  <add name="Telerik.RadUploadProgressHandler.aspx_*" path="Telerik.RadUploadProgressHandler.aspx" verb="*" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
    ...
    ...
    ... (above script with PLESK handlers)
  </system.webServer>
-----------------------------------------------------------------------------------------------------------------------------------------------------------


Do you know why now appears above error message in "Image Manager" or "Document Manager"?
Maybe RadEditor has colision with PLESK handlers?


Best regards,
    Sasa

0
Accepted
Lini
Telerik team
answered on 11 Dec 2008, 03:04 PM
Hi Sasa,

The message "This is a marker file generated by the precompilation tool, and should not be deleted!" means that you used the Publish Web Site dialog in Visual Studio to deploy your web site, but you did not check the "Allow this precompiled site to be updatable" checkbox. Because of that, Visual Studio removed the content of the editor dialogs. Try re-deploying the web site with the above checkbox selected and see if it works then.


Sincerely yours,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
smac_08
Top achievements
Rank 1
answered on 11 Dec 2008, 11:13 PM
Hello Lini,

thank you very much, it works !!!
After publishing web Site with checked checkbox "Allow this precompiled site to be updatable", I have small problem with
Error Message: Could not load type 'Telerik.WebControls.Dialogs.Dialog'.
But I found answer from your knowledgebase and all works well.

One more time, problem solved and thank you very much.

Best regards,
    Sasa
Tags
Editor
Asked by
smac_08
Top achievements
Rank 1
Answers by
Lini
Telerik team
smac_08
Top achievements
Rank 1
Share this question
or