打开弹出窗口时,allowDefinition ='MachineToApplication'错误

时间:2012-05-03 21:13:08

标签: asp.net c#-4.0

打开弹出窗口时出现应用程序级别错误。我的代码中有一个try catch块,但仍然没有将错误记录在数据库中。错误说:

“在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的。此错误可能是由于虚拟目录未在IIS中配置为应用程序”

Source Error
<deny Users="*"/>
</authrization>
<authetication mode="Forms">
<forms defaultURL= "~/login.aspx" cookieless="Autodetect"/>
</authetication>

.

我的应用程序配置为IIS中的虚拟目录。我在应用程序的任何地方都没有收到此错误,除非我打开此弹出窗口。下面是我打开弹出窗口的代码。

private void openWindow(int QueryId)
    {
        try
        {
            pnlChart.Visible = true;
            BindBarGraph();
            string strScript = "window.open('/N/Viewer/ViewerSummary.aspx?QueryID=" + QueryId + "', '_blank','height=650, center:yes, width=800, status=no, resizable= yes, menubar=no, toolbar=no, location=yes, scrollbars=no, status=no');";
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "strScript", strScript, true);
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }

我在Windows 2008服务器上收到此错误。我在开发机器上运行程序时没有收到此错误。

0 个答案:

没有答案
相关问题