473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

GAC web.config and Custome Events ASP .net 2.0

I created a custom event: MyPasswordChangedEvent. The .dll name is
MyWebEvent. I created a strong name and added it to the GAC. So far
so good. I know want to define an event using the new assembly and I
want it available to ALL web applications, so I went to modify the
global web.config file as follows:

<add assembly="MyWebEvent, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=ac21b43a32ac5432"/>

in the compilations-->assemblies section.

This line does not seem to be cause a problem. I then add the
following provider under Health Monitoring:

<add name="My Password Change Event"
type="MyPasswordChangedEvent,MyWebEvent,Version=1. 0.0.0,Culture=neutral,PublicKeyToken=ac21b43a32ac5 432"/
>

I have tried this in both the event mapping AND the profile sections.

Both ways I get the same message

Could not load file or assembly MyWebEvent, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=ac21b43a32ac5432or one of its
dependencies. The system cannot find the file specified.

What am I doing wrong? Do I need to make an entry in the
machine.config file as well?

Feb 13 '07 #1
1 1205
Isn't it great when we can answer our own questions...it turns out i
had two errors. First, I had a typo. More importantly, I was missing
a full type declation. The .dll name was MyWebEvent. The class had
the same name, and there was the PasswordChangeEvent within the
class...

Sooo...my global web.config entry should have read:

<add name="My Password Change Event"
type="MyWebEvent.MyWebEvent.MyPasswordChangedEvent ,MyWebEvent,Version=1..0.0.0,Culture=neutral,Pub*
licKeyToken=ac21b43a32ac5432"/

Hope that helps someone else!

Feb 13 '07 #2

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

Similar topics

9
by: Dan Olson | last post by:
My question is not about how to update an application's config file during run-time, but how to invalidate the cached copy so that if a change to the config file is made, the application can use the...
1
by: Ranjith Venkatesh | last post by:
I read and write to a config file which is the data store for this Windows Application written in C# using VS.NET 2003 in Windows XP. Now I want to trigger the program to read the config whenever...
1
by: Ray Stevens | last post by:
I have a dotnet wrapper service running on a service that calls one of our custome components. I would like to read the appsettings section from a config file, but because this is a class file...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
1
by: jack | last post by:
Hi all i have just read and tried custome validation and its working fine the validation checks length of the field and returns a message if in valid is just wanted to know where all this...
2
by: Oleg.Ogurok | last post by:
Hi there, When a Windows App is compiled in Visual Studio 2005, app.config is renamed to MyAppName.exe.config and placed under either bin\Debug or bin\Release, depending on the currently...
1
by: Ryan | last post by:
I am trying to log events to SQL Server instead of the computers event log, but, although I get no errors, I have no luck. The webevents_events table is empty. I have a custom event that I am...
3
by: DaveP | last post by:
Hi all... Looking for some advice We have alot of services in vb6 and im re-writing them in c#...they all use xml files for start up config i want to write a class to support these files... is...
3
by: sreemathy2000 | last post by:
My requirement is to read a store the value of values in the custome section of app.config. in the form load i need to read the custom section and populate the values in the combobox. section can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.