Problem in answer f...
 
Notifications
Clear all

Problem in answer file

3 Posts
2 Users
0 Reactions
1,054 Views
Posts: 7
Topic starter
(@asofan)
Active Member
Joined: 7 years ago

I followed the steps in the tutorial, but after the virtual machine is created and started, I get an error with the unattend.xml file in line 5 column 3.

It is in this line:

<ad:set name="architecture" value="amd64" />

 

I ran the WSIM tool and tried to open the xml file, and it gives me this error:

System.Xml.XmlException: 'ad' is an undeclared namespace. Line 4, position 4.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.LookupNamespace(NodeData node)
at System.Xml.XmlTextReaderImpl.ElementNamespaceLookup()
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XsdValidatingReader.Read()
at Microsoft.ComponentStudio.ComponentPlatformInterface.Serializer.Validate(XmlSchema schema, String filename, ValidateCallBack additionalValidation, Object additionalParameter)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.DoLoad(Boolean useImagePathInAnswerFile)
at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenAnswerFile(String path)
at Microsoft.ComponentStudio.MainForm.OnFileOpenUnattend(Command command)

 

Can anyone help?

2 Replies
Posts: 7
Topic starter
(@asofan)
Active Member
Joined: 7 years ago

I suspect it has something to do with the index.xml..maybe i am missing something there. can someone direct me to a sample index.xml file with all parameters?

Reply
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hello,

 

Are you using HyperV 2008 or 2012+?

 

If using 2008 you do need the XML. There is a post about it at https://solidcp.com/forum/question/solidcp-os-templates/

 

The unattend.xml doesn't open in WSIM as we use some variables which are processed by SolidCP during the creation. You can see a sample unattend file at http://installer.solidcp.com/Files/stable/Tools/Sysprep/.

 

Kind Regards,

 

Trevor Robinson

Reply
Share: