473,748 Members | 8,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems using __code reference in healthMonitorin g/eventMappings

Hi,

Has anyone experienced problems when deploying a web app via VS2005 with
regards health monitoring configuration settings in the web.config? I get a
"could not load file or assembly '__code' or one of its dependencies" error
messege on compilation/deployment.

Here's the config, from the web.config:

<healthMonitori ng enabled="true">
<eventMapping >
<add name="Generic Error Handling" type="ErrorHand ling, __code"/>
</eventMapping>
<rules>
<add name="Generic Error Handling" eventName="Gene ric Error Handling"
provider="Event LogProvider"/>
</rules>
</healthMonitorin g>

ErrorHandling is a class held in the App_Code directory.

All works ok when I fire up the page with the 'View in browser' option, i.e
when the app fires up in the VS2005 built in virtual web server, but just
won't deploy to the real IIS6 web server, which is on the same local server.

Any help would be much appreciated

--
Regards,
Neil Billingham

P.S. I'm using Visual Studio 2005 Professional Edition (Version 8.0.50727.42
RTM.050727-4200)
May 4 '06 #1
1 1613
Yeah, there's some compilation dependency problem in ASP.NET. I've found
that if you comment out the <healthMoniroti ng> section, run a page, then
uncomment the section again it's all good. Like I said, something about the
app is getting loaded and something in the initialization reads that setting
and needs that class before the initialization has compiled App_Code. Your
best bet would be to not put your WebEvents in App_Code :)

-Brock
http://staff.develop.com/ballen

Hi,

Has anyone experienced problems when deploying a web app via VS2005
with regards health monitoring configuration settings in the
web.config? I get a "could not load file or assembly '__code' or one
of its dependencies" error messege on compilation/deployment.

Here's the config, from the web.config:

<healthMonitori ng enabled="true">
<eventMapping >
<add name="Generic Error Handling" type="ErrorHand ling, __code"/>
</eventMapping>
<rules>
<add name="Generic Error Handling" eventName="Gene ric Error
Handling"
provider="Event LogProvider"/>
</rules>
</healthMonitorin g>
ErrorHandling is a class held in the App_Code directory.

All works ok when I fire up the page with the 'View in browser'
option, i.e when the app fires up in the VS2005 built in virtual web
server, but just won't deploy to the real IIS6 web server, which is on
the same local server.

Any help would be much appreciated

P.S. I'm using Visual Studio 2005 Professional Edition (Version
8.0.50727.42 RTM.050727-4200)

May 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2074
by: peter | last post by:
Hello all, Recently I've started to refactor my code ...(I'm using python 2.3.4) I tried to add extra functionality to old functions non-intrusively. When I used a construct, which involves renaming functions etc... I came across some recursive problems. (a basic construct can be found under the section BASIC CODE) These problems do not occur when renaming objects. (see section EXTRA CODE)
2
3382
by: stephen henry | last post by:
Hi all, Please help me... I have two projects: systemc (written in C++) and x264 (written in C). I would like to have a C++ project that that can call both systemc functions and x264 functions. What I've done is I've linked both libraries into my project, using an additional header file to include the C functions from x264 as follows:
3
2334
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49' /usr/src/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -I/ =500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I .49/modules/proxy
4
2064
by: russell.lane | last post by:
I'm trying to set up health monitoring for web services and a web application. To start very simply, I want to turn on event logging for web requests. To do this I added the following markup to the <system.web> section of the web.config file in the service and application directories: <healthMonitoring enabled="true" heartbeatInterval="0"> <rules> <add name="Log Web Requests" provider="EventLogProvider" eventName="Request Processing...
1
1880
by: Anonieko | last post by:
Logging To a File In A S P . N E T 2 . 0 . I also want weekly rolling filename for the log file. Step 1. Create a class library ( 2 classes) ============================== AppWebEvent.cs -------------- using System; using System.Web.Management;
0
926
by: robl | last post by:
I have a custom Eventlog created for my application that I would like healthmonitoring events to log to instead of the Applcation Event Log. I would prefer to have the additional information that healthmonitoring adds to the log instead of the less descriptive message that System.Diagnostics.EventLog.WriteEntry("MyApp", "Error Message to Display"); provides.
0
920
by: Q. John Chen | last post by:
I am configure the healthMonitoring so all the errors are redirected as an email instead of EventLog. It is pretty simply to get it working. Great new feature for simple error handling - no need to write any error handling code. The only catch is that the document http://msdn2.microsoft.com/en-us/library/zaa41kz1.aspx is not correct for <provider(of SimpleMailWebEventProvider Provider): 1. "from" is optional and will inherit from SMTP...
4
1978
by: hardieca | last post by:
Hi! I have built a custom attribute that tracks my list of things left to do in my application: Public Class SomeClass ... Using reflection, I am able to find all attributes within the App_Code folder:
14
3788
by: Mohamed Mansour | last post by:
Hey there, this will be somewhat a long post, but any response is appreciated! I have done many PInvoke in the past from C++ to C#, but I did PInvoke within C# not C++/CLI. Can someone explain more why C++/CLI would be better to PInvoke than doing the PInvoke in C#? Because, usually in C# as you already know we use DLLImport and extern
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.