Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




NHibernate errors appearing all the time

web-app

We've recently migrated Gemini from an intranet server to a shared hosting account. The migration went pretty smoothly, for the most part, but then we had some problems with the MailPlugin, that turned out to be the hosting control panel's fault.

Now, for the past two or three days, Gemini keeps throwing errors related to NHibernate. Here's what we're seeing:

Access is denied: 'NHibernate'. at CounterSoft.GeminiDA.45f9694dc1888502..cctor() 21/02/2007 11:52:11 Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at Gemini.Issues.BindData() at Gemini.Issues.Page_Load(Object sender, EventArgs e) 21/02/2007 11:52:11 Access is denied: 'NHibernate'. at CounterSoft.GeminiDA.45f9694dc1888502..cctor() 21/02/2007 11:52:11 Access is denied: 'NHibernate'. at CounterSoft.GeminiDA.45f9694dc1888502..cctor() 21/02/2007 11:52:11 Access is denied: 'NHibernate'. at CounterSoft.GeminiDA.45f9694dc1888502..cctor() 21/02/2007 11:52:11 Access is denied: 'NHibernate'. at CounterSoft.GeminiDA.45f9694dc1888502..cctor() 21/02/2007 11:52:11 Access is denied: 'NHibernate'. at CounterSoft.GeminiDA.45f9694dc1888502..cctor() 21/02/2007 11:52:11 The type initializer for "CounterSoft.GeminiDA.45f9694dc1888502" threw an exception. at CounterSoft.GeminiBiz.33c10d769b8bcf93.7ffa17719addabb8(Int32 5575a8aa585d598f, Int32 b378eaa6f96e5474) at Gemini.Issues.BindData() 21/02/2007 11:52:11
Every time an error occurs, a sequence of exceptions like this list is logged.

I've scoured the net for this issue. A great majority of the googled results for the "Access is denied: 'NHibernate'." error come from Gemini.

I don't think it's a permissions problem, since it doesn't happen in any reproducible manner. But if it is related to permissions, I can't use impersonation to resolve it since it's sitting on a shared hosting account, which means, I don't have direct access to filesystem permission settings.

I also don't think it's related to changes being made to the web.config file, since nobody's making changes. Unless, of course, Gemini is making changes. Does Gemini ever change the web.config file on its own?

The only thing I can think of is script timeouts aborting the NHibernate thread in the middle. The network setup involved looks like this:
* Gemini is installed (manually) on the shared hosting account in the US somewhere (maybe Canada, not sure).
* One team of developers is connecting from Israel.
* Another team of developers is connecting from Ukraine.
This would naturally mean that the script requests are going to be longer, and it would explain the ThreadAbort error logged in the middle.

It's also possible it's not a script timeout, but an NHibernate database connection or operation timeout of some sort.

Is there any way for me to raise a relevant timeout to test these possibilities?
Is this a known issue or resolution to a known issue?

TIA,
shovavnik

shovavnik
· 1
shovavnik
Replies (3)
helpful
0
not helpful

Do you get this error all the time or is it coming and going?

This usually occurs when the web.config has been modified and the web app needs restrating.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hello,

I appreciate very much that you're trying to help, but I already foresaw that these question would arise, and wrote the answers in the body of the original post. As I said, I did a very wide search on the web before asking for help on the forum. But still, here are the answers again.

The errors are coming and going, seemingly at random. I believe that they peak during those hours when the team in Ukraine and the team in Israel are both very active, but even then it comes and goes.

Nobody is changing the web.config. Period. However, when these errors appeared, we read that it might be related, so we manually restarted the web application. We can't restart IIS since it's on a shared hosting server, but tghe control panel does let us restart the application. I'm not sure how effective that is: at first it seemed to work (though not always), but now it doesn't always change much. Which leads me to believe, again, that the problem is related not to the configuration but to the network setup and timeouts.

I will repost my question from my previous post, though. Note that one of the logged errors is a ThreadAbort error. Is is possible that NHibernate is timing out too soon, that the database connection is timing out, that the script is timing out, or that something else is timing out? If so, is there anything I can do to change the timeout, maybe in the web.config or elsewhere, or does the Gemini development team have to raise the timeouts in code?

Thanks again,
shovavnik



shovavnik
· 1
shovavnik
helpful
0
not helpful

You can try setting the Connection lifetime and Connection timeout in the connection string. Are you using SQL Express or MSDE?


Saar Cohen
· 5000
Saar Cohen