System.Configuration.SettingsPropertyNotFoundException:尝试访问SSRS报告执行服务时

时间:2013-08-28 13:44:52

标签: reporting-services configuration ssrs-2008 appsettings settings.settings

我有一个.Net 4.0项目,它有一个对Report Execution Service的Web引用。当我针对此运​​行我的测试代码时它工作正常。但是当我迁移到另一台机器时,对服务的调用失败:

System.Configuration.SettingsPropertyNotFoundException:找不到设置属性“MyNamespace_localhost_ReportExecutionService”。

我的Settings.settings文件如下所示:

    [global::System.Configuration.ApplicationScopedSettingAttribute()]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)]
    [global::System.Configuration.DefaultSettingValueAttribute("http://localhost:8080/ReportServer/ReportExecution2005.asmx")]
    public string MyNamespace_localhost_ReportExecutionService {
        get {
            return ((string)(this["MyNamespace_localhost_ReportExecutionService"]));
        }
    }

app.config看起来像这样:

<applicationSettings>
    <MyNamespace.Properties.Settings>
        <setting name="MyNamespace_localhost_ReportExecutionService"
            serializeAs="String">
            <value>http://localhost:8080/ReportServer/ReportExecution2005.asmx</value>
        </setting>
    </MyNamespace.Properties.Settings>
</applicationSettings>

据我所知,这是正确的。我尝试删除并重新创建Web服务引用,但没有任何效果。我现在没有想法。同样,这适用于我的开发机器。当我将此程序集放在另一台服务器上时会出现此问题。执行服务正在该服务器上运行,因为我可以通过URL访问它。

有谁知道这个问题可能是什么?

0 个答案:

没有答案
相关问题