It looks like there's some unmanaged business not taken care of. Any
action involving addition of project items through EnvDTE will crash
into an EntryPointNotFoundException. E.g. this is the case for
ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
Could it be you're running into (unmanaged) dll hell?
One of the call stacks I be getting, is (copied from the AW issue):
Error 107 Running transformation: System.EntryPointNotFoundException:
Entry point was not found.
at
VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
UInt32* prgfMoreInfo, Boolean* skipOriginal)
at
VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
at EnvDTE.ProjectItems.AddFromFile(String FileName)
at
Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
path, prjBuildAction buildAction)
at
Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.Generate()
at
Microsoft.VisualStudio.TextTemplatingD40CDA24B073E171ACBA53DFD98A879B.Gener atedTextTransformation.TransformText()
in F:\Development\Projects\Project.actiw:line 32 F:\Development\Project
\Project.actiw 1 1
Is this too vague a problem description? Or are too few people
affected? Is there something else I should do to get response on this?
Like kicking it? :)
On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
wrote:
> It looks like there's some unmanaged business not taken care of. Any
> action involving addition of project items through EnvDTE will crash
> into an EntryPointNotFoundException. E.g. this is the case for
> ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> Could it be you're running into (unmanaged) dll hell?
> One of the call stacks I be getting, is (copied from the AW issue):
> Error 107 Running transformation: System.EntryPointNotFoundException:
> Entry point was not found.
> at
> VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
> rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
> UInt32* prgfMoreInfo, Boolean* skipOriginal)
> at
> VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
> UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
> rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
> UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
> at EnvDTE.ProjectItems.AddFromFile(String FileName)
> at
> Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
> path, prjBuildAction buildAction)
> at
> Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.Generate()
> at
> Microsoft.VisualStudio.TextTemplatingD40CDA24B073E171ACBA53DFD98A879B.Gener atedTextTransformation.TransformText()
> in F:\Development\Projects\Project.actiw:line 32 F:\Development\Project
> \Project.actiw 1 1
> Is this too vague a problem description? Or are too few people > affected? Is there something else I should do to get response on this? > Like kicking it? :)
> On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com> > wrote:
> > It looks like there's some unmanaged business not taken care of. Any > > action involving addition of project items through EnvDTE will crash > > into an EntryPointNotFoundException. E.g. this is the case for > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > Could it be you're running into (unmanaged) dll hell?
> > One of the call stacks I be getting, is (copied from the AW issue): > > Error 107 Running transformation: System.EntryPointNotFoundException: > > Entry point was not found. > > at > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32 > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict, > > UInt32* prgfMoreInfo, Boolean* skipOriginal) > > at > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* , > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32* > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo, > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal) > > at EnvDTE.ProjectItems.AddFromFile(String FileName) > > at > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
> > path, prjBuildAction buildAction) > > at > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.Generate() > > at > > Microsoft.VisualStudio.TextTemplatingD40CDA24B073E171ACBA53DFD98A879B.Gener atedTextTransformation.TransformText()
I've uploaded a sample solution. To create it, I've done:
1. Create solution with class library
2. Add references to ActiveRecord.dll, NHibernate.dll and
Castle.Components.Validator.dll (not sure if required)
3. Add ActiveWriter item
4. Configure some simple model with a primary key
5. Configure the model with output type NHibernate instead of
ActiveRecord (default)
6. Try to save
At my place, this fails with VisualSVN 1.4 installed and not even
putting the solution under svn. The failure is reported in the Error
pane and prevents ActiveWriter from effectively adding the generated
hbm.xml file to the solution.
On 22 apr, 10:55, "VisualSVN Team" <supp...@visualsvn.com> wrote:
> > Is this too vague a problem description? Or are too few people
> > affected? Is there something else I should do to get response on this?
> > Like kicking it? :)
> > On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> > wrote:
> > > It looks like there's some unmanaged business not taken care of. Any
> > > action involving addition of project items through EnvDTE will crash
> > > into an EntryPointNotFoundException. E.g. this is the case for
> > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > > Could it be you're running into (unmanaged) dll hell?
> > > One of the call stacks I be getting, is (copied from the AW issue):
> > > Error 107 Running transformation: System.EntryPointNotFoundException:
> > > Entry point was not found.
> > > at
> > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
> > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
> > > UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > at
> > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
> > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
> > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
> > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > at EnvDTE.ProjectItems.AddFromFile(String FileName)
> > > at
> > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
> > > in F:\Development\Projects\Project.actiw:line 32 F:\Development\Project
> > > \Project.actiw 1 1- Tekst uit oorspronkelijk bericht niet weergeven -
I'm sorry, I forgot to report that I'm using a trunk build of
ActiveWriter in VS2008. Note that in the past, I've also tried to use
these two tools together, but had to abandon VisualSVN (1.3) in favor
of ActiveWriter (at that time, I was using VS2005).
Figuring the issue might have been resolved with AW2008/VS2008/
vSVN1.4, I thought I'd give it a shot again, but the issue popped up
again as a major showstopper :/
On 22 apr, 10:55, "VisualSVN Team" <supp...@visualsvn.com> wrote:
> > Is this too vague a problem description? Or are too few people
> > affected? Is there something else I should do to get response on this?
> > Like kicking it? :)
> > On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> > wrote:
> > > It looks like there's some unmanaged business not taken care of. Any
> > > action involving addition of project items through EnvDTE will crash
> > > into an EntryPointNotFoundException. E.g. this is the case for
> > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > > Could it be you're running into (unmanaged) dll hell?
> > > One of the call stacks I be getting, is (copied from the AW issue):
> > > Error 107 Running transformation: System.EntryPointNotFoundException:
> > > Entry point was not found.
> > > at
> > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
> > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
> > > UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > at
> > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
> > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
> > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
> > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > at EnvDTE.ProjectItems.AddFromFile(String FileName)
> > > at
> > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
> > > in F:\Development\Projects\Project.actiw:line 32 F:\Development\Project
> > > \Project.actiw 1 1- Tekst uit oorspronkelijk bericht niet weergeven -
> I'm sorry, I forgot to report that I'm using a trunk build of
> ActiveWriter in VS2008. Note that in the past, I've also tried to use
> these two tools together, but had to abandon VisualSVN (1.3) in favor
> of ActiveWriter (at that time, I was using VS2005).
> Figuring the issue might have been resolved with AW2008/VS2008/
> vSVN1.4, I thought I'd give it a shot again, but the issue popped up
> again as a major showstopper :/
> On 22 apr, 10:55, "VisualSVN Team" <supp...@visualsvn.com> wrote:
> > Hi Grimace,
> > Thanks for reporting this issue!
> > Unfortunately we were not able to reproduce this problem. Please could
> > you provide step-by-step reproduction script.
> > I assume that you have latest version of VisualSVN (1.4) and
> > ActiveWriter (Preview 4) installed in Visual Studio 2008.
> > > Is this too vague a problem description? Or are too few people
> > > affected? Is there something else I should do to get response on this?
> > > Like kicking it? :)
> > > On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> > > wrote:
> > > > It looks like there's some unmanaged business not taken care of. Any
> > > > action involving addition of project items through EnvDTE will crash
> > > > into an EntryPointNotFoundException. E.g. this is the case for
> > > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > > > Could it be you're running into (unmanaged) dll hell?
> > > > One of the call stacks I be getting, is (copied from the AW issue):
> > > > Error 107 Running transformation: System.EntryPointNotFoundException:
> > > > Entry point was not found.
> > > > at
> > > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
> > > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
> > > > UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > > at
> > > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
> > > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
> > > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
> > > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > > at EnvDTE.ProjectItems.AddFromFile(String FileName)
> > > > at
> > > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
> I'm sorry, I forgot to report that I'm using a trunk build of
> ActiveWriter in VS2008. Note that in the past, I've also tried to use
> these two tools together, but had to abandon VisualSVN (1.3) in favor
> of ActiveWriter (at that time, I was using VS2005).
> Figuring the issue might have been resolved with AW2008/VS2008/
> vSVN1.4, I thought I'd give it a shot again, but the issue popped up
> again as a major showstopper :/
> On 22 apr, 10:55, "VisualSVN Team" <supp...@visualsvn.com> wrote:
> > Hi Grimace,
> > Thanks for reporting this issue!
> > Unfortunately we were not able to reproduce this problem. Please could
> > you provide step-by-step reproduction script.
> > I assume that you have latest version of VisualSVN (1.4) and
> > ActiveWriter (Preview 4) installed in Visual Studio 2008.
> > > Is this too vague a problem description? Or are too few people
> > > affected? Is there something else I should do to get response on this?
> > > Like kicking it? :)
> > > On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> > > wrote:
> > > > It looks like there's some unmanaged business not taken care of. Any
> > > > action involving addition of project items through EnvDTE will crash
> > > > into an EntryPointNotFoundException. E.g. this is the case for
> > > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > > > Could it be you're running into (unmanaged) dll hell?
> > > > One of the call stacks I be getting, is (copied from the AW issue):
> > > > Error 107 Running transformation: System.EntryPointNotFoundException:
> > > > Entry point was not found.
> > > > at
> > > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
> > > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
> > > > UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > > at
> > > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
> > > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
> > > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
> > > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > > at EnvDTE.ProjectItems.AddFromFile(String FileName)
> > > > at
> > > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
We've been able to reproduce the problem and done some investigation. It turns out that problem is caused by ActiveWriter using DTE from temporary AppDomain. To fix this all calls to DTE should be marshaled to default AppDomain. As a simple workaround you can do code generation on separate working thread. I've attached a patch to the issue in the issue tracker (http://support.castleproject.org//browse/CONTRIB-118). Please let us know if you need further assistance.
BTW, retrieving DTE via enumerating RunningObjectTable looks too hacky. I would suggest marshaling DTE reference (which is already available in TemplatedCodeGenerator) using more standard approach, for example via GlobalInterfaceTable.
Thanks, Fyodor Sheremetyev VisualSVN Team
On Thu, Apr 24, 2008 at 1:21 PM, Grimace of Despair
> On 22 apr, 14:20, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> wrote: > > I'm sorry, I forgot to report that I'm using a trunk build of > > ActiveWriter in VS2008. Note that in the past, I've also tried to use > > these two tools together, but had to abandon VisualSVN (1.3) in favor > > of ActiveWriter (at that time, I was using VS2005).
> > Figuring the issue might have been resolved with AW2008/VS2008/ > > vSVN1.4, I thought I'd give it a shot again, but the issue popped up > > again as a major showstopper :/
> > On 22 apr, 10:55, "VisualSVN Team" <supp...@visualsvn.com> wrote:
> > > Hi Grimace,
> > > Thanks for reporting this issue!
> > > Unfortunately we were not able to reproduce this problem. Please could > > > you provide step-by-step reproduction script.
> > > I assume that you have latest version of VisualSVN (1.4) and > > > ActiveWriter (Preview 4) installed in Visual Studio 2008.
> > > > Is this too vague a problem description? Or are too few people > > > > affected? Is there something else I should do to get response on this? > > > > Like kicking it? :)
> > > > On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com> > > > > wrote:
> > > > > It looks like there's some unmanaged business not taken care of. Any > > > > > action involving addition of project items through EnvDTE will crash > > > > > into an EntryPointNotFoundException. E.g. this is the case for > > > > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > > > > Could it be you're running into (unmanaged) dll hell?
> > > > > One of the call stacks I be getting, is (copied from the AW issue): > > > > > Error 107 Running transformation: System.EntryPointNotFoundException: > > > > > Entry point was not found. > > > > > at > > > > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32 > > > > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict, > > > > > UInt32* prgfMoreInfo, Boolean* skipOriginal) > > > > > at > > > > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* , > > > > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32* > > > > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo, > > > > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal) > > > > > at EnvDTE.ProjectItems.AddFromFile(String FileName) > > > > > at > > > > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing
Thanks a lot! Even though it's technically not VisualSVN's fault, I'm
really glad you were able to dig up a workaround. As soon as I find
some time, I'll check out the patch.
On 27 apr, 14:46, "VisualSVN Team" <supp...@visualsvn.com> wrote:
> We've been able to reproduce the problem and done some investigation.
> It turns out that problem is caused by ActiveWriter using DTE from
> temporary AppDomain. To fix this all calls to DTE should be marshaled
> to default AppDomain. As a simple workaround you can do code
> generation on separate working thread. I've attached a patch to the
> issue in the issue tracker
> (http://support.castleproject.org//browse/CONTRIB-118). Please let us
> know if you need further assistance.
> BTW, retrieving DTE via enumerating RunningObjectTable looks too
> hacky. I would suggest marshaling DTE reference (which is already
> available in TemplatedCodeGenerator) using more standard approach, for
> example via GlobalInterfaceTable.
> Thanks,
> Fyodor Sheremetyev
> VisualSVN Team
> On Thu, Apr 24, 2008 at 1:21 PM, Grimace of Despair
> > Are you able to repro with the given solution?
> > On 22 apr, 14:20, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> > wrote:
> > > I'm sorry, I forgot to report that I'm using a trunk build of
> > > ActiveWriter in VS2008. Note that in the past, I've also tried to use
> > > these two tools together, but had to abandon VisualSVN (1.3) in favor
> > > of ActiveWriter (at that time, I was using VS2005).
> > > Figuring the issue might have been resolved with AW2008/VS2008/
> > > vSVN1.4, I thought I'd give it a shot again, but the issue popped up
> > > again as a major showstopper :/
> > > > > Is this too vague a problem description? Or are too few people
> > > > > affected? Is there something else I should do to get response on this?
> > > > > Like kicking it? :)
> > > > > On 16 apr, 11:52, Grimace of Despair <GrimaceOfDesp...@hotmail.com>
> > > > > wrote:
> > > > > > It looks like there's some unmanaged business not taken care of. Any
> > > > > > action involving addition of project items through EnvDTE will crash
> > > > > > into an EntryPointNotFoundException. E.g. this is the case for
> > > > > > ProjectItems.AddFromFile and DTE.ItemOperations.AddExistingItem.
> > > > > > Could it be you're running into (unmanaged) dll hell?
> > > > > > One of the call stacks I be getting, is (copied from the AW issue):
> > > > > > Error 107 Running transformation: System.EntryPointNotFoundException:
> > > > > > Entry point was not found.
> > > > > > at
> > > > > > VisualSVN.VS.Interop.NativeExtenderCallback.OnQueryEditFiles(UInt32
> > > > > > rgfQueryEdit, String[] rgpszMkDocuments, UInt32* pfEditVerdict,
> > > > > > UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > > > > at
> > > > > > VisualSVN.VS.Interop.NativeExtender.OnQueryEditFiles(NativeExtender* ,
> > > > > > UInt32 rgfQueryEdit, Int32 cFiles, UInt16** rgpszMkDocuments, UInt32*
> > > > > > rgrgf, __MIDL___MIDL_itf_ivsqueryeditquerysave2_0000_0001* rgFileInfo,
> > > > > > UInt32* pfEditVerdict, UInt32* prgfMoreInfo, Boolean* skipOriginal)
> > > > > > at EnvDTE.ProjectItems.AddFromFile(String FileName)
> > > > > > at
> > > > > > Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.AddToProject(Str ing