-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Server Error in ASP.NET Application w/ NHibernate
PostPosted: Wed Jun 01, 2005 11:47 pm 
Newbie

Joined: Wed Jun 01, 2005 11:28 pm
Posts: 1
I create an ASP.NET(VB.NET) project from Visual Studio 2003, and Nhibernate some thing works fine, some times it will occurs the following error code, what is the workaround

Compilation Error wrote:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: The compiler failed with error code 2000.




Show Detailed Compiler Output:


Code:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\7c298f05\a02a0f03_2567c501\asptest.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\f5c3cf02\00521713_a7cfc401\hashcodeprovider.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\0e3163ca\009c1639_13e0c401\castle.dynamicproxy.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\aa5d841d\0085006e_0a59c501\nhibernate.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\83d0fc57\00d1445a_99efc301\log4net.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\6fa1dcbd\00d13b69_0a59c501\iesi.collections.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\asptest\58b4fc30\c80907\3f3ap4pk.dll" /D:DEBUG=1 /debug+  "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\asptest\58b4fc30\c80907\3f3ap4pk.0.vb"



Code:
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

vbc : Command line error BC2017 : could not find library 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\asptest\58b4fc30\c80907\assembly\dl2\f5c3cf02\00521713_a7cfc401\hashcodeprovider.dll'
vbc : Fatal error BC2000 : compiler initialization failed unexpectedly:


Top
 Profile  
 
 Post subject: hi - copy hashcodeprovider into bin directory
PostPosted: Wed Jul 06, 2005 12:17 am 
Newbie

Joined: Sun Jun 05, 2005 8:41 pm
Posts: 18
hi
it seems the asp.net app needs access to hashcodeprovider.dll....

what you can do is to copy hascodeprovider.dll from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 to
c:\inetpub\wwwroot\bin

the error should go away now....:-)


Top
 Profile  
 
 Post subject: Re: hi - copy hashcodeprovider into bin directory
PostPosted: Tue Oct 18, 2005 5:21 pm 
sanjeev wrote:
hi
it seems the asp.net app needs access to hashcodeprovider.dll....

what you can do is to copy hascodeprovider.dll from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 to
c:\inetpub\wwwroot\bin

the error should go away now....:-)


new to nHibernate, but I have used Hibernate in Java. I am also having this problem.

Hascodeprovider.dll is in

c:\inetpub\wwwroot\PROJECT\bin

There is no bin directory in wwwroot. It doesn't make sense that there would be one.

The only way to debug the project is to do a rebuild all. This is a pain. Whenever I change any source file, I have to rebuild all, press F5, I get the error, close the browser, rebuild all again, press f5, and then move on with testing.

Any insights? I think that this has something to do with the *.hbm.xml files. Is there any way to not make them an embedded resource, but to reference them in a hibernate.cfg.xml as in Java?


Top
  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 7:02 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
I've had the same problem for the last year - sometimes hashcodeprovider.dll, sometimes log4net.dll. I could never prove it was an NHibernate problem. I can't wait to hear the answer to this one.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 5:16 am 
Beginner
Beginner

Joined: Mon Oct 03, 2005 4:59 am
Posts: 26
Location: Cambridge, UK
I get this problem too. At the moment I'm doing the same thing you are: just rebuilding all whenever it happens. I've googled a bit, and the only thing I've found that seems like it might be remotely informative and relevant is this: http://www.grimes.demon.co.uk/workshops/fusWSFour.htm

But I can't see how that applies to me, at least.


Top
 Profile  
 
 Post subject: Did you solve the problem?
PostPosted: Thu Feb 16, 2006 8:09 am 
Newbie

Joined: Thu Feb 16, 2006 8:02 am
Posts: 1
Hallo guys,
I was wondering if you managed to solve the problem. If it can help anybody, I tell you about my experience.
At the beginning, I was using NHibernate as a VS project and it referenced the other projects as .dll; like this I was getting the FileLoadException on the first reference to log4net, then I added log4net as a project and the FileLoadException moved to Iesi.Collections. Adding Iesi.Collections as project the FileLoadException is finally arrived to HashCodeProvider.... But there's no HashCodeProvider project, isn't there? Hoping to hear from somebody soon...
Best regards and happy rebuilding all the time....


Giorgio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.