Sitefinity ASP.NET CMS - Content Management System

Support Forum Thread

Home >  Support >  Forums home > Sitefinity 3.x > Deployment > sub .net application error

Reply
Nick, 11/9/2007 10:05:38 AM
I have recently deployed a sitefinity site which has replaced an existing website.  The problem i am having is that the site has another .net application running in a virtual directory under the same domain which now has an error relating to sitefinity.  The error is below, i am wondering if there are any settings that i can change to get this to work.

Parser Error Message: Could not load file or assembly 'Telerik.Framework' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 89: 			</eventMappings>
Line 90: 			<providers>
Line 91: 				<add name="Simple Web Event Provider" type="Telerik.Utilities.TextFileWebEventProvider,Telerik.Framework" logFileName="~/App_Data/sitefinity.log"/>
Line 92: 				<add name="Simple Web Buffered Event Provider" type="Telerik.Utilities.BufferedTextFileWebEventProvider,Telerik.Framework" bufferMode="Notification" logFileName="~/App_Data/sitefinity.log"/>
Line 93: 			</providers>

Reply
, 11/12/2007 2:41:04 AM
Hello Nick,

The exception you are getting is caused by the inheritance of configuration files in the application hierarchy. Settings are overriden for subfolders, however, collections set in the web.config files are not overriden but extended as new items are added. To solve this, you have to clear these collections in the web.config in your sub application.

Add the following sections to the web.config => <system.web>:
<healthMonitoring>    
  <eventMappings>    
    <clear/>    
  </eventMappings>    
  <providers>    
    <clear/>    
  </providers>    
  <rules>    
    <clear/>    
  </rules>    
</healthMonitoring>    
 

Also add a clear tag in the roleManager section:
<roleManager ...> 
  <providers> 
    <clear/> 
  </providers> 
</roleManager> 


You should also add a remove tag to the <httpModules> section, before the add tags:
 
<httpModules> 
  <remove name="Cms"/>  
... 

and in the <httpHandlers> :

<httpHandlers> 
  <remove path="*.rss" verb="*"/>  
... 

This should be enough for your application not to seek for .dll files from Sitefinity.
Hope this will help.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center

Reply
Bob Erwin, 7/8/2008 11:18:59 PM
Hello,

I ran into this problem also, and this post helped me fix my sub-application problem...however, with 3.2 there were a few more lines that needed to be added to the web.config under the <httpHandlers> section

    <remove path="*.rss" verb="*"/>  
    <remove path="*.sflb" verb="GET"/> 
    <remove path="*.tmb" verb="GET"/> 
    <remove path="CaptchaImage.axd" verb="GET"/> 
    <remove path="blogs/metablog.ashx" verb="POST"/> 
    <remove path="trackback.ashx" verb="POST"/> 


Reply
, 7/10/2008 6:09:33 AM
Hello Bob Erwin,

Thank you for the supplement.
The solution was for Sitefinity 3.1. You completed it for 3.2 now.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center