Hi People.

I want to use the integration between ActiveWriter and
NHibernateQueryGenerator. Well, i have the dll´s of NHibernate and
Castle.ActiveWriter in GAC because i used the installer of the Castle.
Their versions are 1.0.3.0 and 1.2.0.4000. I set the path of the NHQG
executable correctly and set the property "Use NHQG" to true.
Nevertheless, when i click to save or compile the project, i get the
following error message:

Error   2       Running transformation: System.Reflection.TargetException:
NHQG exited with the following error:

An error occured:
System.IO.FileNotFoundException: Could not load file or assembly
'Castle.ActiveRecord, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. O sistema
nÆo pode encontrar o arquivo especificado.
File name: 'Castle.ActiveRecord, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc'
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,
Boolean forIntrospection)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at NHibernate.Query.Generator.Program.GetActiveRecordAsembly
(Assembly assembly)
   at
NHibernate.Query.Generator.Program.GenerateFromActiveRecordAssembly
(String file, String baseNamespace)
   at NHibernate.Query.Generator.Program.OutputFile(String file,
String baseNamespace)
   at NHibernate.Query.Generator.Program.Main(String[] args)

Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\mscorwks.dll
Running under executable  C:\Arquivos de programas
\NHibernateQueryGenerator\NHQG.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = CORPORATIVO\msantos
LOG: DisplayName = Castle.ActiveRecord, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc
 (Fully-specified)
LOG: Appbase = file:///C:/Arquivos de programas/
NHibernateQueryGenerator/
LOG: Initial PrivatePath = NULL
Calling assembly : NHQG, Version=1.9.605.0, Culture=neutral,
PublicKeyToken=0b3305902db7183f.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Arquivos de programas
\NHibernateQueryGenerator\NHQG.exe.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET
\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Castle.ActiveRecord, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc
LOG: Attempting download of new URL file:///C:/Arquivos de programas/
NHibernateQueryGenerator/Castle.ActiveRecord.DLL.
LOG: Attempting download of new URL file:///C:/Arquivos de programas/
NHibernateQueryGenerator/Castle.ActiveRecord/Castle.ActiveRecord.DLL.
LOG: Attempting download of new URL file:///C:/Arquivos de programas/
NHibernateQueryGenerator/Castle.ActiveRecord.EXE.
LOG: Attempting download of new URL file:///C:/Arquivos de programas/
NHibernateQueryGenerator/Castle.ActiveRecord/Castle.ActiveRecord.EXE.

   at
Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.UseNHQG
(Assembly assembly)
   at
Altinoren.ActiveWriter.CodeGeneration.CodeGenerationHelper.Generate()
   at
Microsoft.VisualStudio.TextTemplatingA6B08F0443203947300A61A5A93DEDC2.GeneratedTextTransformation.TransformText
() in c:\Documents and Settings\msantos\Meus documentos\Visual Studio
2005\Projects\ORM\ActiveWriter\tags\VS2005\Debugging\Tests\Models
\GeneratedCodeGenericTestModel.actiw:line 32    C:\Documents and Settings
\msantos\Meus documentos\Visual Studio 2005\Projects\ORM\ActiveWriter
\tags\VS2005\Debugging\Tests\Models
\GeneratedCodeGenericTestModel.actiw    1       1       Debugging


Executing the NHQG by prompt or by external tool of VS i can generate
the code. Someone idea what might be?

I appreciate now.

Marcelo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to