AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

Error on Generation #494

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate using QuickStart.cst
2. Open VS2008
3. Generate Outputs

What is the expected output? What do you see instead?
Generation of code. Stacktrace errors.

What version of the product are you using?
CodeSmith 5.2.2, PLINQO 5.0.0

Please provide any additional information below.
Template compilation succeeded. (454 ms)
Rendering output 'DBML'...
ERROR: [Undisclosed Path]\Source 
2.2.0\DomainCorePlinqo\Core.Data\Core.Data.csp(0,0) Error loading the dbml file 
'[Undisclosed Path]\Source 2.2.0\DomainCorePlinqo\Core.Data\Model.dbml'. Please 
verify the dbml file exists and is an xml file. --> Root element is missing.   
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.ReadToFollowing(String name)
   at LinqToSqlShared.DbmlObjectModel.Dbml.DbmlReader.GetAllFunctionIds(Stream stream)
   at LinqToSqlShared.DbmlObjectModel.Dbml.DbmlReader.FileToDbml(String filename) 
 Stack Trace:

Unable to render output DBML, skipping...
Rendering output 'Entities'...
ERROR: [Undisclosed Path]\Source 
2.2.0\DomainCorePlinqo\Core.Data\Core.Data.csp(0,0) Error loading the dbml file 
'Model.dbml'. Please verify the dbml file exists and is an xml file. --> Root 
element is missing.   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.ReadToFollowing(String name)
   at LinqToSqlShared.DbmlObjectModel.Dbml.DbmlReader.GetAllFunctionIds(Stream stream)
   at LinqToSqlShared.DbmlObjectModel.Dbml.DbmlReader.FileToDbml(String filename) 
 Stack Trace:

Unable to render output Entities, skipping...
Rendering output 'Queries'...
ERROR: [Undisclosed Path]\Source 
2.2.0\DomainCorePlinqo\Core.Data\Core.Data.csp(0,0) Error loading the dbml file 
'Model.dbml'. Please verify the dbml file exists and is an xml file. --> Root 
element is missing.   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.ReadToFollowing(String name)
   at LinqToSqlShared.DbmlObjectModel.Dbml.DbmlReader.GetAllFunctionIds(Stream stream)
   at LinqToSqlShared.DbmlObjectModel.Dbml.DbmlReader.FileToDbml(String filename) 
 Stack Trace:

Unable to render output Queries, skipping...
Done rendering outputs: 0 succeeded, 3 failed, 0 skipped (2475ms).

Original issue reported on code.google.com by ron.buch...@gmail.com on 1 Sep 2010 at 6:54

GoogleCodeExporter commented 9 years ago
Hello,

Could you please see if your DBML file is empty. If it exists but there is no 
content or its invalid markup, could you please attach your DBML file minus any 
sensitive information. After sending us the DBML file, could you please delete 
it and try regenerating.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 2 Sep 2010 at 11:00

GoogleCodeExporter commented 9 years ago
Sorry for the delayed response. The generated DBML file has been both empty and 
malformed XML. I have deleted and regenerated to no avail. I have ran this on 
both framework 3.5 and 4.0. I thought it could be something with the 
installation because it ran fine on one machine, but an uninstall/reinstall did 
not help. 

I will upload the file if you still wish, but it is completely empty.

Original comment by ron.buch...@gmail.com on 3 Sep 2010 at 12:51

GoogleCodeExporter commented 9 years ago
Hello,

If you could please upload this file as well as try a nightly build located 
here(http://community.codesmithtools.com/nightly/PLINQO/plinqo-r1914.zip) to 
see if you are still seeing the same behavior.

Thanks

-Blake Niemyjski

Original comment by bniemyjski on 3 Sep 2010 at 3:38

GoogleCodeExporter commented 9 years ago
I am having the same issue. I downloaded the nightly build, but received the 
same errors.

Original comment by jer...@goelevation.com on 20 Sep 2011 at 9:47