473,568 Members | 2,905 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 1602
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
2062
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...
2
3371
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
2310
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....
4
2050
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">...
1
1864
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
915
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...
0
906
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...
4
1973
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
3774
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
7693
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...
0
7917
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. ...
1
7665
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
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...
0
6277
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...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
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...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2105
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

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.