Jump to content
Sign in to follow this  

soap Exception

Recommended Posts

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);

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...