cyrus_ Posted February 13, 2006 Share Posted February 13, 2006 Hi,I am trying to get a xml File and save it on another place by using Web Services.but i get allways the same exception. here is my exception and my code:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: The node to be inserted is from a different document context. at System.Xml.XmlNode.AppendChild(XmlNode newChild) at RSSFeedWS.MakeRSSFeed(String FilePath, XmlElement FileElement) in c:\IgnitoWSVirtualSite\IgnitoWSVirtualDirectory\RSSFeedWS\App_Code\RSSFeedWS.cs:line 34 --- End of inner exception stack trace --- string file = "C:\temp\myfile.xml"; RSSFeedWSRef.RSSFeedWS RSSWS = new RSSFeedWSRef.RSSFeedWS(); XmlDocument doc = new XmlDocument(); doc.Load(file); string newfile = "C:\\temp\\temp1\\Feeden.xml"; RSSWS.MakeRSSFeed(newfile, doc.DocumentElement); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now