2011-09-06 34 views
0

この問題については、ネット上で多くの記事や質問を読んでいますが、私の問題の解決策は見つけられません。asp.net 4.0 web.config継承

私はいくつかのWebアプリケーションを含むWebアプリケーション(親)を持っています。

子アプリケーションには独自のweb.configファイルがあり、IIS(7.5)のアプリケーションに設定されています。ルートアプリケーションで

が、私は<location>タグ設定:私は取得するには、今、子アプリケーションの起動時に

<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> 
     <controls> 
      <add tagPrefix="web" tagName="Content" src="~/UserControls/Content.ascx"/> 
      <add tagPrefix="web" tagName="DynamicBox" src="~/UserControls/DynamicBox.ascx"/> 
      <add tagPrefix="web" tagName="GlobalStyle" src="~/UserControls/GlobalStyle.ascx"/> 
      <add tagPrefix="web" tagName="Image" src="~/UserControls/Image.ascx"/> 
      <add tagPrefix="web" tagName="String" src="~/UserControls/String.ascx"/> 
      <add tagPrefix="web" namespace="ApiShared.CustomControls.Frame" assembly="ApiShared"/> 
     </controls> 
    </pages> 

:子アプリケーションで

<location path="." inheritInChildApplications="false"> 
<system.web> 
    <compilation debug="true" targetFramework="4.0"> 
    </compilation> 
    <authentication mode="Forms"/> 
    <customErrors mode="Off" /> 
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> 
     <controls> 
      <add tagPrefix="web" namespace="CustomControls" assembly="YouSites"/> 
      <add tagPrefix="web" namespace="YouSites.Code" assembly="YouSites"/> 
      <add tagPrefix="web" tagName="ScriptLoader" src="~/UserControls/ScriptLoader.ascx"/> 
      <add tagPrefix="web" tagName="ParameterControl" src="~/UserControls/ParameterControl.ascx"/> 
     </controls> 
    </pages> 

</system.web> 
</location> 

を、私は次の行を設定します次のエラー:

Server Error in '/Layouts/vital' Application. 
-------------------------------------------------------------------------------- 

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Unknown server tag 'web:GlobalStyle'. 

Source Error: 


Line 7:  <script type="text/javascript" src="Assets/jquery-1.4.3.js"></script> 
Line 8:  <script type="text/javascript" src="Assets/jquery.simplemodal-1.4.1.js"></script> 
Line 9:  <web:GlobalStyle runat="server" /> 
Line 10:  <title></title> 
Line 11: </head> 

私の考えは、子web.configはまだ私ですメインのものから継承していますが、パスは問題ありませんが、子web.configファイルから読み込んでいるとは思われません。事前に

おかげで、

ギャル

答えて

0

は間違いなくIISでアプリケーションとして設定した子ですか?コントロールdllはchilds binディレクトリに存在しますか? GlobalStyleコントロールは、子アプリケーションに展開されていますか。それは入れ子になっていないときに機能しますか?

タイプを解決できないため基本的には不満です。

関連する問題