Skip to content

C# XmlDocument doc = new XmlDocument(); fails

Ian

Asked Jan 10, 2013, 6:56 AM EST2 answers
Share
LinkedInX
Hi,

I have created an asp.net page (3.5) and the issue is when the following statement is reached:

XmlDocument doc = new XmlDocument();

On my home machine running VS 2010 it executes fine. But when uploaded to my web host the page never gets past this statement. There is no error, you are just left waiting.

Any suggestions?

Ian.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I've had a response from my host 1and1. Apparently they do not support XmlDocument .
    0
  • 0
    I have further queried the reason for this and their response was:

    The reason why we exclude the component for security purposes of our server. This component has been disable to our servers. If you want to have this component, you need to get a server package

    So, if you want to use XmlDocument and associated classes, then 1and1 is
    not the host for you!
    0