run time error w/ multiple web sites

Discussion in 'ASP.NET 2.0' started by sgrg, Mar 2, 2008.

  1. I turned the mode On. This is what I get now.
    Thankyou for taking a look.


    Server Error in '/PhotoGallery' Application.


    Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'MB.TheGurkhas.CustomEvents' or one of its dependencies. The system cannot find the file specified.

    Source Error:





    Code:
    Line 158:			</providers>
    Line 159:			<eventMappings>
    Line 160:				<add name="TBH Events" type="MB.TheGurkhas.WebCustomEvent, MB.TheGurkhas.CustomEvents" />
    Line 161:			</eventMappings>
    Line 162:			<rules>
    Source File: E:\web\gurkhascom0\htdocs\web.config Line: 160

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'MB.TheGurkhas.CustomEvents' could not be loaded.





    Code:
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    
     
  2. Hello,

    I added a new module (PhotoGallery) to my original website. This new module has it's own web.config file, AppData, AppCode folders. It works on my local PC. I've uploaded this new website to my hosting site,
    and set it as Web Application. But when I run it by typing www.mywebsite.com/PhotoGallery/Default.aspx,
    it'sthrowing run-time error below. How can I fix this error? Thankyou!

    Server Error in '/PhotoGallery' Application.
    --------------------------------------------------------------------------------
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>


    Regards,
    San
     
  3. it appears thatmy PhotoGallery application is inheriting settings from the web.config file inmy root directory
    based upon the error message.

    Can you advise how to modify the root web.config file to not allow inheritance to resolve the problem?
    Thankyou!

    Regards,
    San
     
  4. Change your custom errors to On and lets see what you get...
     

Share This Page