Xml Load error

Last post 11-12-2009 4:27 AM by Qin Dian Tang - MSFT. 4 replies.

Sort Posts:

  • Xml Load error

    11-06-2009, 2:14 PM
    • Member
      3 point Member
    • gslakmal
    • Member since 06-06-2008, 1:33 AM
    • Posts 125

    Hi,

    My asp.net site this code working fine. But when i put this code to dotnetnuke its raise error.

    Dim strUrl As String = "http://e-conomic.excomhost.com/DesktopModules/dnnConnector/dnnconnectorOrders.aspx?portalid=0&OrderStatus=0_unpaid:1_paid:1_Betalt:1_betalt:0_ubetalt:0_Ej betald"

             
                    'readxml
                    Dim xmlDocument As New System.Xml.XmlDocument
                    xmlDocument.Load(strUrl)


    Error is

    The remote name could not be resolved: 'e-conomic.excomhost.com'

    Why this error come?


    lakmal


    http://www.odesk.com/users/ASP-NET-Web-application-Designer-DotNetNuke-Expert_~~4fc245f3b8e64e9b
  • Re: Xml Load error

    11-06-2009, 3:07 PM
    • Participant
      1,716 point Participant
    • atifsarfraz
    • Member since 10-06-2009, 7:55 PM
    • Florida
    • Posts 274

    From DotNetNuke the DNS doesn't allow you to access the specific site you have mentioned. They might have a restriction for accessing outside URLs from your .net application.

    Regards,

    Atif Sarfraz

    Please mark this post as answered if it helped you!
  • Re: Xml Load error

    11-06-2009, 11:55 PM
    • Member
      3 point Member
    • gslakmal
    • Member since 06-06-2008, 1:33 AM
    • Posts 125

    Hi,

    Its same domain which dnn site . I create normal asp.net application through it i can load xml file. Only problem is through dnn module i cant load xml file. How can i solve it?


    lakmal



    http://www.odesk.com/users/ASP-NET-Web-application-Designer-DotNetNuke-Expert_~~4fc245f3b8e64e9b
  • Re: Xml Load error

    11-07-2009, 11:30 AM
    • Member
      3 point Member
    • gslakmal
    • Member since 06-06-2008, 1:33 AM
    • Posts 125

    Hi,

    Now error is different i have change web.config like below. Then error comming like this

    The proxy name could not be resolved

    web config changes

    <system.net>

            <defaultProxy>

                <proxy usesystemdefault ="False" proxyaddress="http://e-conomic.excomhost.com" bypassonlocal="True" autoDetect="False" />


            </defaultProxy>

        </system.net>
      

    krds

    lakmal



    http://www.odesk.com/users/ASP-NET-Web-application-Designer-DotNetNuke-Expert_~~4fc245f3b8e64e9b
  • Re: Xml Load error

    11-12-2009, 4:27 AM
    Answer

    Hi gslakmal,

    Please check your DNS setting, or change a DNS, even your network.

    http://forums.asp.net/t/992641.aspx

    http://bytes.com/topic/net/answers/617400-system-net-webexception-remote-name-could-not-resolved-e

    Thanks,

    Qin Dian Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (5 items)