View Single Post
  #1  
Old 08-01-2008, 12:04 PM
stienessen stienessen is online now
Registered User
 
Join Date: 02-19-2007
Posts: 5
Write XML issue with namespace???

Hi,
I have an ASP.NEt Web.config file that I'm trying to update - in my case sessionState - the file looks like:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="22"/>
</system.web>
</configuration>

the writexml step fails when the xmlns=... attribute present on the configuration element - if I remove that xmlns attribute, it works fine - I tried to add Namespace alias to namespace URI mappings but it doesn't like xmlns as an alias.

any way to do this update without removing the namespace?

Thanks
Dave
Reply With Quote