VB将Vis Studio从2003年转换为2010年my.settings错误

时间:2011-10-18 16:51:08

标签: vb.net my.settings

尝试将使用Vis Studion 2003编写的VB应用程序转换为2010并将其停留在My.Settings上。我得到了2行中'My.Settings'代码的下划线。以下是default.aspx代码隐藏页面中的代码:

    Dim NonStandardIP() As String = **My.Settings**.NonStandardIPs.Split(Char.Parse(","))
    Dim ServiceCenterIPs As String = **My.Settings**.ServiceCenterIPs

以下是包含这些设置的web.config部分:

<applicationSettings>
    <Extranet.My.MySettings>
        <setting name="ErrorLocationAssocCentral" serializeAs="String">
            <value>/errors/AssocCentralError.aspx</value>
        </setting>
        <setting name="ErrorLocationGeneral" serializeAs="String">
            <value>/errors/GeneralError.aspx</value>
        </setting>
        <setting name="FatalErrorsEmailAddress" serializeAs="String">
            <value>shawn.wilkinson@associatedbank.com</value>
        </setting>
        <setting name="NonStandardIPs" serializeAs="String">
            <value>ip address #1,ip address #2,ip address #4,ip address #5,ip address #6</value>
        </setting>
        <setting name="ServiceCenterIPs" serializeAs="String">
            <value>ip address #6,ip address #7</value>
        </setting>
    </Extranet.My.MySettings>

删除了对ACTUAL IP地址的引用。提前谢谢!

0 个答案:

没有答案