Sculpture Community  Sculpture Discu...  Sculpture 2.1  Generation Error
Previous Previous
 
Next Next
New Post 6/30/2010 6:05 PM
  mcalhoun
4 posts


Generation Error 

I created a very basic project with 1 entity, 1 VO and 1 service. When I generate, the files are created, but for some reason are not added to the projects. I am running Visual Studio as Administrator. See log snippet below...

-- PreGenerate Actions [2 Action(s)]
========== Generation Started with 9 Mold(s) ==========
- Generation of [PSDBMold] Mold Started ------
- [PSDBMold] Mold Generation Complete: 0 file(s) generated.
- Generation of [NHibernateMold] Mold Started ------
-- Template : Templates\Entity.tt
--- C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\Tenant.cs
** Can't Add the file to Project, File path: C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\Tenant.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400
-- Template : Templates\ComplexType.tt
-- Template : Templates\EntityRepository.tt
--- C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Implementations\TenantRepository.cs
** Can't Add the file to Project, File path: C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Implementations\TenantRepository.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400
-- Template : Templates\IEntityRepository.tt
--- C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Interfaces\ITenantRepository.cs
** Can't Add the file to Project, File path: C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Interfaces\ITenantRepository.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400
-- Template : Templates\IRepository.tt
-- Template : Templates\Repository.tt
-- Template : Templates\EntityRepositoryTest.tt
--- C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\Unit Tests\ProviderPrice.DataAccess.Tests\TenantRepository\TenantRepositoryTest.cs
** Can't Add the file to Project, File path: C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\Unit Tests\ProviderPrice.DataAccess.Tests\TenantRepository\TenantRepositoryTest.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400
-- Template : Templates\RepositoryTest.tt
-- Template : Templates\RepositoryMethodTest.tt
-- Template : Templates\RepositoryMethodTest.tt
-- Template : Templates\CrudTranslator.tt
-- Template : Templates\Translator.tt
--- C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Translators\TenantTranslator.cs
** Can't Add the file to Project, File path: C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Translators\TenantTranslator.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

 
New Post 6/30/2010 6:30 PM
  TAboraya
258 posts


Re: Generation Error 

mcalhoun,

Exception from HRESULT: 0x80040400

This error almost comes from 'ProjectItems.AddFromFileCopy(String FilePath)' method.

Try creating new project with new name, or with shorter path 'C:\Users\mcalhoun\Documents\Visual Studio 2008\Projects\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\'.

Let me know if the problem did not solved.

 

Best Regards,


Tamer Aboraya - Product Manager - Sculpture project
 
New Post 6/30/2010 6:42 PM
  mcalhoun
4 posts


Re: Generation Error 

I tried with a shorter path and am getting the same issue. As I said before, the files are actually being generated, just not added to project. If I right-click on a file and select "Include In Project" that doesn't work either. Very strange...

New log below...

-- PreGenerate Actions [2 Action(s)]

========== Generation Started with 9 Mold(s) ==========

- Generation of [PSDBMold] Mold Started ------

- [PSDBMold] Mold Generation Complete: 0 file(s) generated.

- Generation of [NHibernateMold] Mold Started ------

-- Template : Templates\Entity.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\Tenant.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\Tenant.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ComplexType.tt

-- Template : Templates\EntityRepository.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Implementations\TenantRepository.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Implementations\TenantRepository.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\IEntityRepository.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Interfaces\ITenantRepository.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\Repositories\Interfaces\ITenantRepository.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\IRepository.tt

-- Template : Templates\Repository.tt

-- Template : Templates\EntityRepositoryTest.tt

--- C:\Code\PP\ProviderPrice\Unit Tests\ProviderPrice.DataAccess.Tests\TenantRepository\TenantRepositoryTest.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\Unit Tests\ProviderPrice.DataAccess.Tests\TenantRepository\TenantRepositoryTest.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\RepositoryTest.tt

-- Template : Templates\RepositoryMethodTest.tt

-- Template : Templates\RepositoryMethodTest.tt

-- Template : Templates\CrudTranslator.tt

-- Template : Templates\Translator.tt

-- Template : Templates\HBM.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Mapping\Tenant.hbm.xml

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Mapping\Tenant.hbm.xml, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\CompositePrimaryKey.tt

-- Template : Templates\Configuration.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\hibernate.cfg.xml

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\hibernate.cfg.xml, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\NHibernateHelper.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\NHibernateHelper.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.DataAccess\GeneratedCode\NHibernateHelper.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\RuleViolation.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\RuleViolation.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\RuleViolation.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\EntityBase.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\EntityBase.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Entities\GeneratedCode\Entities\EntityBase.cs, Mold: NHibernateMold, details: Exception from HRESULT: 0x80040400

- [NHibernateMold] Mold Generation Complete: 0 file(s) generated.

- Generation of [WCFMold] Mold Started ------

-- Template : Templates\ValueObject.tt

-- Template : Templates\ValueObjectEnum.tt

-- Template : Templates\ValueObjectCollection.tt

-- Template : Templates\ServiceContract.tt

-- Template : Templates\ServiceImplementation.tt

-- Template : Templates\FaultContract.tt

-- Template : Templates\SVCHost.tt

-- Template : Templates\ValueObjectBase.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Common\GeneratedCode\DataContracts\DataContractBase.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Common\GeneratedCode\DataContracts\DataContractBase.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\Web.Config.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.ServiceHost\GeneratedCode\Web.config

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.ServiceHost\GeneratedCode\Web.config, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ServiceClient.tt

-- Template : Templates\ServiceClientSilverlight.tt

-- Template : Templates\ValueObject.tt

-- Template : Templates\ValueObjectEnum.tt

-- Template : Templates\ValueObjectCollectionSilverlight.tt

-- Template : Templates\FaultContract.tt

-- Template : Templates\ValueObjectBase.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\DataContracts\DataContractBase.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\DataContracts\DataContractBase.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ServiceClientContract.tt

-- Template : Templates\ServiceClientContractSilverlight.tt

-- Template : Templates\ServiceConfiguration.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\ServiceReferences\ServiceConfiguration.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\ServiceReferences\ServiceConfiguration.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\FakeEntityRepository.tt

--- C:\Code\PP\ProviderPrice\Unit Tests\ProviderPrice.Service.Tests\GeneratedCode\FakeRepositories\FakeTenantRepository.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\Unit Tests\ProviderPrice.Service.Tests\GeneratedCode\FakeRepositories\FakeTenantRepository.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\FakeRepository.tt

-- Template : Templates\ServiceTest.tt

-- Template : Templates\OperationTest.tt

-- Template : Templates\CrudService.tt

-- Template : Templates\EntityCrudInfo.tt

-- Template : Templates\EntityValueObject.tt

-- Template : Templates\ICrudService.tt

-- Template : Templates\LookUpValueObject.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Common\GeneratedCode\DataContracts\LookUpValueObject.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Common\GeneratedCode\DataContracts\LookUpValueObject.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\CrudServiceClient.tt

-- Template : Templates\ICrudServiceClient.tt

-- Template : Templates\CrudServiceSVCHost.tt

-- Template : Templates\CrudServiceClientSilverlight.tt

-- Template : Templates\EntityCrudInfo.tt

-- Template : Templates\EntityValueObject.tt

-- Template : Templates\LookUpValueObject.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\DataContracts\LookUpValueObject.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\DataContracts\LookUpValueObject.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\RuleViolation.tt

--- C:\Code\PP\ProviderPrice\ProviderPrice.Common\GeneratedCode\DataContracts\RuleViolation.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\ProviderPrice.Common\GeneratedCode\DataContracts\RuleViolation.cs, Mold: WCFMold, details: Exception from HRESULT: 0x80040400

- [WCFMold] Mold Generation Complete: 0 file(s) generated.

- Generation of [SilverlightMold] Mold Started ------

-- Template : Templates\Bootstrapper.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\Bootstrapper.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\Bootstrapper.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\IModule.tt

-- Template : Templates\EventController.tt

-- Template : Templates\Shell.xaml.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\Shell.xaml

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\Shell.xaml, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\Shell.xaml.cs.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\Shell.xaml.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Shell\GeneratedCode\Shell.xaml.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ValueObject.tt

-- Template : Templates\ValueObjectBase.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Models\ViewModelBase.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Models\ViewModelBase.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ViewState.xaml.tt

-- Template : Templates\ViewState.xaml.cs.tt

-- Template : Templates\Controller.tt

-- Template : Templates\ControllerInterface.tt

-- Template : Templates\FinalStateEvent.tt

-- Template : Templates\DecisionPointTest.tt

-- Template : Templates\ActionMethodTest.tt

-- Template : Templates\UseCaseTest.tt

-- Template : Templates\EntityController.tt

-- Template : Templates\EntityFormView.xaml.cs.tt

-- Template : Templates\EntityFormView.xaml.tt

-- Template : Templates\EntityFormViewModel.tt

-- Template : Templates\EntityListView.xaml.cs.tt

-- Template : Templates\EntityListView.xaml.tt

-- Template : Templates\EntityListViewModel.tt

-- Template : Templates\EntityControllerInterface.tt

-- Template : Templates\RuleViolation.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Validation\RuleViolation.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Validation\RuleViolation.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ErrorStatus.xaml.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\ErrorStatus.xaml

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\ErrorStatus.xaml, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\ErrorStatus.xaml.cs.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\ErrorStatus.xaml.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\ErrorStatus.xaml.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\IValidationInfo.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\RuleViolation\IValidationInfo.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\RuleViolation\IValidationInfo.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\WaitIndicator.xaml.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\WaitIndicator.xaml

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\WaitIndicator.xaml, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\WaitIndicator.xaml.cs.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\WaitIndicator.xaml.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\WaitIndicator.xaml.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\SearchControl.xaml.cs.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\SearchControl.xaml.cs

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\SearchControl.xaml.cs, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

-- Template : Templates\SearchControl.xaml.tt

--- C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\SearchControl.xaml

** Can't Add the file to Project, File path: C:\Code\PP\ProviderPrice\UI\ProviderPrice.Infrastructure\GeneratedCode\Controls\SearchControl.xaml, Mold: SilverlightMold, details: Exception from HRESULT: 0x80040400

- [SilverlightMold] Mold Generation Complete: 0 file(s) generated.

========== Generation Complete: 0 succeeded, 0 failed, 0 skipped ==========

 

 
New Post 7/1/2010 5:51 PM
  mcalhoun
4 posts


Re: Generation Error 

I uninstalled and reinstalled and this error has gone away.

 
Previous Previous
 
Next Next
  Sculpture Community  Sculpture Discu...  Sculpture 2.1  Generation Error
Users Minimize
 
Membership Membership:
Latest New User Latest: Fosna
New Today New Today: 3
New Yesterday New Yesterday: 7
User Count Overall: 2772

People Online People Online:
Visitors Visitors: 0
Members Members: 0
Total Total: 0

Online Now Online Now: