Bug Report B145886
Visible to All Users

ASPxHttpHandlerModule - An error occurs when the module fails to resolve a referenced assembly

created 15 years ago

Hi,
     i'm working with NHibernate and i did my own HttpModule where i manage the Hibernate Session. Since i tried to use the combobox in my website it's didn't work. It always raise this exception :
[TypeInitializationException: Une exception a été levée par l'initialiseur de type pour 'DevExpress.Web.ASPxClasses.Internal.ResourceManager'.]
   DevExpress.Web.ASPxClasses.Internal.ResourceManager.ProcessRequest() +43
   DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule.BeginRequestHandler(Object sender, EventArgs e) +31
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
But when i erase this in my web.config (line 101):
<add name="NHibernateSessionPerRequestModule" type="WebApplication.Code.NHibernateSessionPerRequestModule" />
It work perfectly.
Can you help me to figure out what is the problem because if it's work we gonna use your tools in ours company.
thanks a lot
François

Show previous comments (6)
DevExpress Support Team 15 years ago

    Hi François,
    The previous message was an automatic messages sent by our Support Center. It's posted when we set a bug report status to reproduced. Sorry for this confusion.
    Actually, the problem, as I wrote in the previous posts, appears because our http module is unable to handle the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling assembly because it can't find the right dependent assembly.
    On our side, we fix this behavior in the following way - if our http module, while iterating through referenced assemblies, will find an assembly that it can't handle, it will omit this assembly.
    This new behavior should resolve your problem. However, a better way is to use correct assemblies.
    Thanks,
    Serge D

    FD FD
    François Desrosiers_1 15 years ago

      Thanks a lot :-)
      I'm working on my assemblies issue.
      thanks again and we gonna buy your library !

      FD FD
      François Desrosiers_1 15 years ago

        Very good job guys ! Your services is amazing !

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.