Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

using xsd.exe to generate c# files, getting error and warnings -


this command i'm running:

xsd.exe -c -l:c# d:\documents\dev\sarpilot\docs\schemas\06-141r2\06-141r2.xsd 

these errors i'm getting:

microsoft (r) xml schemas/datatypes support utility [microsoft (r) .net framework, version 2.0.50727.3038] copyright (c) microsoft corporation. rights reserved. schema validation warning: undefined complextype 'http://www.opengis.net/sps/0:parameterdescriptortype' used base comp lex type extension. line 617, position 2. schema validation warning: undefined complextype 'http://www.opengis.net/ows:getcapabilitiestype' used base complex ty pe extension. line 23, position 2. schema validation warning: undefined complextype 'http://www.opengis.net/ows:capabilitiesbasetype' used base complex t ype extension. line 35, position 2. schema validation warning: 'http://www.opengis.net/gml:point' element not declared. line 869, position 2. schema validation warning: 'http://www.opengis.net/gml:polygon' element not declared. line 870, position 2. schema validation warning: 'http://www.opengis.net/gml:rectangle' element not declared. line 871, position 2. schema validation warning: 'http://www.opengis.net/sps/0:parameter' element not declared. line 381, position 2. schema validation warning: 'http://www.opengis.net/sps/0:id' element not declared. line 451, position 2.  warning: schema not validated. class generation may fail or may produce incorrect results.  error: error generating classes schema 'd:\documents\dev\sarpilot\docs\schemas\06-141r2\06-141r2'.   - datatype 'http://www.opengis.net/ows:getcapabilitiestype' missing.  if more help, please type "xsd /?".  c:\program files (x86)\microsoft sdks\windows\v7.0a\bin> 

the xsd file copy/pasted appendix in following document: http://services.eoportal.org/portal/documents/06-141r2_ordering_services_for_earth_observation_products_0.9.2.pdf

the xml schema included in pdf document linked has references several other xsd files using <import> element. need download these additional schema files , make sure path references in <import> elements pointing correct locations on local computer.

if still getting errors, because xsd.exe not follow on external references. solve issue, specify required xsd files directly on command line follows:

xsd.exe /c myschema.xsd import01.xsd import02.xsd include01.xsd include02.xsd

where import01.xsd, import02.xsd, include01.xsd , include02.xsd xsd files referenced via import , include elements in myschema.xsd.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -