2012-01-18 19 views
0

iframeを使用してページ内にDefault.aspxページ内に埋め込みしようとしています。ASPXページ内の.aspxページ内でiframeが500.23エラーをスローする

ChartModuleには、グラフを更新するボタンイベントがあります。 ChartModuleには独自のChartsModule.csがあります。

私はこのエラーを取得しています:

HTTP Error 500.23 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.Most likely causes:

•This application defines configuration in the system.web/httpHandlers section. Things you can try: •Migrate the configuration to the system.webServer/handlers section. You can do so manually or by using AppCmd from the command line. For example, from the IIS Express install directory, run appcmd migrate config "Default Web Site/". Using AppCmd to migrate your application will enable it to work in Integrated mode. It will continue to work in Classic mode and on previous versions of IIS. •If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/[email protected] to false. •Alternatively, switch the application to a Classic mode application pool. For example, from the IIS Express install directory, run appcmd set app "Default Web Site/" /applicationPool:"Clr4ClassicAppPool". Only do this if you are unable to migrate your application.

Detailed Error Information: Module ConfigurationValidationModule Notification BeginRequest Handler
PageHandlerFactory-Integrated-4.0 Error Code 0x80070032 Requested URL http://localhost:4161/Default.aspx Physical Path
C:\Documents and Settings\singhm\Desktop\Temp\Trial2\Trial2\Default.aspx Logon Method Not yet determined Logon User Not yet determined Request Tracing Directory

これはなぜでしょうか?

答えて

1

これは直接あなたの質問に答えられないかもしれないが、ここで考えられている:あなたはオプションを持っている場合は

は、にChartModule.aspxを回す考えるUserControlascx)は、別の「ページ」(同じライフサイクル、独自のコードビハインドファイルなど)と同じように機能しますが、既存のaspxページにもっときれいに統合されています。上記のリンクは、UserControlsを作成して使用するのに適した導入方法です。

0
私は本当にこの方法は、あなたがリフレッシュデータのようなそのユーザーコントロールページに何かを渡すことができる点で

public override DataBind() 

を実行しているユーザーコントロールをバインドすることができますasp.netでのiframeの代わりに、ユーザーコントロールのページを使用することをお勧めします

、負荷特定のデータ、など。

1

エラーメッセージを溶液に手がかりが含まれています

setting system.webServer/[email protected] to false

だから、次はあなたのweb.configに存在していることを確認してください。

<validation validateIntegratedModeConfiguration="false"/> 

例えば:

<configuration> 

    <!-- your existing settings --> 

    <system.webServer> 

    <!-- Add this to here.... --> 
    <validation validateIntegratedModeConfiguration="false"/> 

    </system.webServer> 
</configuration> 

IISを7とASP.NETは最近、エラーメッセージやヒントcに関して非常に役立ちますあなたがそれらを読むために時間を取るべきであるので、そこにあった。