Crash building XSD from command line
Hi,
I have an XSD-file which I have included in a Document!X project.
If I build the project from the user interface, it works properly.
If I build the same project from the command line, I get an exception.
The about box of the user interface says: Document!X 2010.01.50.0 running under .NET 4.0.30.319.269.
The Innovasys.DocumentX.CommandLine.NET4.exe is from 17.09.2010 17:19 and has file version 10.1.50.0.
If I include one or more DLL's or a database into the project, everything works fine. If I include the XSD-file, I get the error.
I've narrowed dow the XSD-file to the following, but the error still occures:
The error is:
C:\Buffer\RE_Test>"C:\Program Files\Innovasys\DocumentX2010\bin\Innovasys.Docume
ntX.CommandLine.NET4.exe" C:\Buffer\RE_Test\Documentation_RE.dxp /buildconfigura
tion=TFS
2012-06-27 10:27:50Z : Information : Build Started, Project [C:\Buffer\RE_Test\D
ocumentation_RE.dxp], Build Configuration [TFS] Started
2012-06-27 10:27:50Z : Information : Build started for Configuration [TFS], Prof
ile [Default], Locale [(Primary Locale)]
Unexpected error: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the ta
rget of an invocation. ---> System.NullReferenceException: Object reference not
set to an instance of an object. ---> SmartAssembly.SmartExceptionsCore.Unhandle
dException: SmartExceptionsCore.UnhandledException @ 876, offset:38 ---> SmartAs
sembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledExce
ption @ 481, offset:21 ---> SmartAssembly.SmartExceptionsCore.UnhandledException
: SmartExceptionsCore.UnhandledException @ 229, offset:309 ---> SmartAssembly.Sm
artExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2
30, offset:46 ---> SmartAssembly.SmartExceptionsCore.UnhandledException: SmartEx
ceptionsCore.UnhandledException @ 188, offset:277 ---> SmartAssembly.SmartExcept
ionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 600, offse
t:58 ---> SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsC
ore.UnhandledException @ 226, offset:102 ---> SmartAssembly.SmartExceptionsCore.
UnhandledException: SmartExceptionsCore.UnhandledException @ 225, offset:0 --->
SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.Unhand
ledException @ 204, offset:30 ---> SmartAssembly.SmartExceptionsCore.UnhandledEx
ception: SmartExceptionsCore.UnhandledException @ 202, offset:6 ---> SmartAssemb
ly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledExceptio
n @ 333, offset:755 ---> SmartAssembly.SmartExceptionsCore.UnhandledException: S
martExceptionsCore.UnhandledException @ 331, offset:321 ---> SmartAssembly.Smart
ExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 328,
offset:1121 ---> SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExc
eptionsCore.UnhandledException @ 356, offset:54 ---> SmartAssembly.SmartExceptio
nsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 356, offset:
243 ---> SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCo
re.UnhandledException @ 354, offset:145 ---> SmartAssembly.SmartExceptionsCore.U
nhandledException: SmartExceptionsCore.UnhandledException @ 135, offset:787
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Innovasys.DocumentX.Xsd.XsdDiagramItemViewModel.get_DataTemplateSelector()
at Innovasys.Diagramming.DiagramItemViewModelBase.SaveDiagramImage(Int32 dpiX
, Int32 dpiY, FileInfo imageFileName, String mapName)
at Innovasys.DocumentX.Xsd.XsdContentProvider.GetDiagramForItemWorker(XsdMode
lItem item)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Ob
ject target, Object[ arguments, SignatureStruct& sig, MethodAttributes methodAt
tributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Obj
ect target, Object[ arguments, Signature sig, MethodAttributes methodAttributes
, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[ parameters, CultureInfo culture, Boolean skipVisib
ilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[ args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callba
ck, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, De
legate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority
, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at System.Windows.Threading.Dispatcher.Invoke(Delegate method, DispatcherPrio
rity priority, Object[ args)
at Innovasys.DocumentX.Xsd.XsdContentProvider.GetDiagramForItem(DocumentableI
tem item)
at Innovasys.DocumentX.Xsd.XsdContentProvider.GetValueForElement(ParserTempla
teElement`1 element, TextWriter writer)
at Innovasys.ContentAuthoring.ContentAuthoringContentProviderBase.ProvideData
(ParserTemplateElement`1 element, TextWriter writer)
at Innovasys.Parser.ParserTemplateElement`1.‼?☻(TextWriter writer)
at Innovasys.Parser.ParserTemplateElement`1.GenerateTo(TextWriter writer)
at Innovasys.Parser.ParserTemplate`1.GenerateTo(TextWriter writer)
at Innovasys.Parser.ParserTemplate`1.GenerateToString()
at Innovasys.ContentAuthoring.ProjectBuilder.?☺☻(PageType pageType, FileInfo
file, ContentAuthoringContentProviderBase provider, Boolean stripMetadata)
at Innovasys.ContentAuthoring.ProjectBuilder?♥(ProjectBuilderItemSet itemSet)
at Innovasys.ContentAuthoring.ProjectBuilder.Execute(BuildConfigurationItem b
uildConfigurationItem, ProjectLocale localeToBuild)
at Innovasys.ContentAuthoring.ProjectBuilder.?←♥()
at Innovasys.ContentAuthoring.ProjectBuilder.?←♥()
at Innovasys.ContentAuthoring.ProjectBuilder.StartBuild(BuildConfiguration bu
ildConfiguration)
at Innovasys.ContentAuthoring.CommandLine.CommandLineHandler.ExecuteBuild()
at ??♥.?♣.?☻(String[ args)
What can I do to avoid this error?
Regards,
Rusk