c# - using XSD.exe to generate an XSD -


For this, I am using SSAS cubes, for one of the public properties for sections of the server, cube, dimension etc. I want to get the list. This would be my superset, in which the user must provide mandatory properties and provide alternative.

I'm trying to generate an XSD schema I run the following command

XSD C: \ windows \ assembly \ GAC_MSIL \ Microsoft.AnalysisServices \ 10.0.0.0__89845dcd8080cc91 \ Microsoft.AnalysisServices.DLL / Dataset / Element: Cube / Out: c: \ Temp \ gac

and this error was found

  error: 'C : \ Windows \ assembly \ GAC_MSIL \ Microsoft.AnalysisServices \ 10.0.0.0__89845dcd8080cc91 \ Microsoft.AnalysisServices.DLL '. - There was an error indicating 'Microsoft.AnalysisServices.ModelComponent' type. - Members of type 'System.ComponentModel.ISite' can not sort 'System.ComponentModel.Component.Site', see internal exceptions for more details. - Members can not sort systems. CompanyModel.Companynt. Type type System.ComponentModel.ISite because it is an interface  

Can I do this so that the schema is generated properly?

Solution of your problem-loaded member (in your case 'System.ComponentModel.Component.Site') To release XSD.exe is to direct. To do this, add the following attribute to the class member, which creates the problem:

  [System.xml.Serialization.XmlIgnore]  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -