views:

12

answers:

0

Hello,

I understand it is possible to debug the dll that contains a class inheriting from SchemaImporterExtension type:

http://markitup.com/Posts/Post.aspx?postId=5ec8b485-602e-441c-aa2b-27d52b4bf93b

I have followed the instructions from the link above, but the method in my class (ImportSchemaType) never gets called.

This is my configuration in the xsd.exe.config (I have expanded on that suggested in the article, in fact, it feels like I've tried everything by now!):

<configuration>

<configSections>

`<sectionGroup name="system.xml.serialization" type="System.Xml.Serialization.Configuration.SerializationSectionGroup, System.Xml, Version=2.0.0.0, Culture=neutral">

    `<section name="schemaImporterExtensions" type="System.Xml.Serialization.Configuration.SchemaImporterExtensionsSection, System.Xml, Version=2.0.0.0, Culture=neutral"/> 

`</sectionGroup>`

</configSections>

<system.xml.serialization>

`<schemaImporterExtensions configSource="C:\VSS\ServiceDelivery\Customers\LIVFC\AesopToTrent\ImportWebService\Web.config">`

  `<add 
    name="MyClass"  
    type="MyNamespace.MyClass, MyNamespace, Version=1.0.0.0"
  />

`</schemaImporterExtensions>`

</system.xml.serialization>

</configuration>

(Apologies for clumsy formatting)...

Does anybody know what I may be doing wrong? The xsd.exe starts up, outputs a file, but does not break on my ImportSchemaType method (and I do have the .pdb file next to my .dll). Or could it be my configuration?

Any suggestions would be much appreciated.

Thank you,

Victoria