473,516 Members | 2,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

global.asax and global.asax.cs

My company has an existing web app. It was written by someone who has left.
It generates an error if authentication fails and sends an email to the email
address of the person who left. I want it to send the email to me. I have
found Global.asax and Global.asax.cs in the virtual directory. The
Global.asax says Application CodeBehind and points to Gloabl.asax.cs

The Global.asax.cs has a Application_Error method and I changed the email
address to mine, but it still sends it to the other address. What else do I
need to do?

Many thanks.
Nov 18 '05 #1
5 2003
Do you have Visual Studio? Rebuild the application.

"bcharles" <bc******@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
My company has an existing web app. It was written by someone who has left. It generates an error if authentication fails and sends an email to the email address of the person who left. I want it to send the email to me. I have
found Global.asax and Global.asax.cs in the virtual directory. The
Global.asax says Application CodeBehind and points to Gloabl.asax.cs

The Global.asax.cs has a Application_Error method and I changed the email
address to mine, but it still sends it to the other address. What else do I need to do?

Many thanks.

Nov 18 '05 #2
Assuming your re-compiled and re-deployed (moved the .dll file of your web
project to the /bin folder), you might wanna check the web.config for any
registered HttpModules which could also be hooked up.

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"bcharles" <bc******@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
My company has an existing web app. It was written by someone who has left. It generates an error if authentication fails and sends an email to the email address of the person who left. I want it to send the email to me. I have
found Global.asax and Global.asax.cs in the virtual directory. The
Global.asax says Application CodeBehind and points to Gloabl.asax.cs

The Global.asax.cs has a Application_Error method and I changed the email
address to mine, but it still sends it to the other address. What else do I need to do?

Many thanks.

Nov 18 '05 #3
Just checking...Did you rebuild the DLL in the /bin folder?

"bcharles" wrote:
My company has an existing web app. It was written by someone who has left.
It generates an error if authentication fails and sends an email to the email
address of the person who left. I want it to send the email to me. I have
found Global.asax and Global.asax.cs in the virtual directory. The
Global.asax says Application CodeBehind and points to Gloabl.asax.cs

The Global.asax.cs has a Application_Error method and I changed the email
address to mine, but it still sends it to the other address. What else do I
need to do?

Many thanks.

Nov 18 '05 #4
TJS
search all the files to see where the other address exists
"bcharles" <bc******@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
My company has an existing web app. It was written by someone who has
left.
It generates an error if authentication fails and sends an email to the
email
address of the person who left. I want it to send the email to me. I have
found Global.asax and Global.asax.cs in the virtual directory. The
Global.asax says Application CodeBehind and points to Gloabl.asax.cs

The Global.asax.cs has a Application_Error method and I changed the email
address to mine, but it still sends it to the other address. What else do
I
need to do?

Many thanks.

Nov 18 '05 #5
Thank you everyone. A rebuild did the trick. Thought I originally did it,
maybe not. Again thank you.

"bcharles" wrote:
My company has an existing web app. It was written by someone who has left.
It generates an error if authentication fails and sends an email to the email
address of the person who left. I want it to send the email to me. I have
found Global.asax and Global.asax.cs in the virtual directory. The
Global.asax says Application CodeBehind and points to Gloabl.asax.cs

The Global.asax.cs has a Application_Error method and I changed the email
address to mine, but it still sends it to the other address. What else do I
need to do?

Many thanks.

Nov 18 '05 #6

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

Similar topics

22
3732
by: fd123456 | last post by:
Hi Tom ! Sorry about the messy quoting, Google is playing tricks on me at the moment. > Global.asax is where you normally have the Global Application > and Session variables and code to manipulate them. It starts > and ends with <script></script> tags. > > Yours looks like a compiled version of it.
12
3798
by: John M | last post by:
Hello, On Microsoft Visual Studio .NET 2003, I want to use some global elements, that can be used in each one of my pages. i.e I put a oleDBConnection on global.asax.vb How can I use it (the oleDBConnection on global.asa.vb) at the other aspx pages ?
8
4845
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical differences in the way both the objects are handled by IIS. Are both objects stored in different memory spaces? I can access both the objects in my web...
5
14988
by: ad | last post by:
The Global.asax is code-inside with default. How to change Global.asax to code-behind?
2
3691
by: Steve | last post by:
I am new to this newsgroup & to .NET in general. I have been playing around with Visual Studio .NET, building and rendering web pages using VB "code behind" files. My problem / question is; How do I ensure that changes made to the "Global.asax.vb" file are immediately reflected in the "Global.asax" file? After I change to the...
11
8324
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the generated code on a W2K3 server the application_start and any other event on the global.asax file won't fire. I added tracing and logging to make sure...
4
3019
by: Al Santino | last post by:
Hello, I've created a simple C# web services project using Visual Studio 2005. My service compiles and runs correctly when called by remote clients. I'm able to step through the service in the debugger unless I add a Global.asax file. When I do that and then try to run the debugger I receive error 403. If I remove the Global.asax file...
16
5011
by: thefritz_j | last post by:
We just converted our VS2003 1.1 VB web project (which was working fine) to VS2005 2.0 and now I get: Parser Error Message: Could not load type '<Namespace>.'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="<Namespace>." %> I've done a lot of things I've found on the web to no avial, but here are some...
8
13176
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project compiles & runs fine locally, but when I copy to the production machine, I get this error: Parser Error Message: Could not load type 'Global'....
15
2530
by: =?Utf-8?B?UGF0Qg==?= | last post by:
Just starting to move to ASP.NET 2.0 and having trouble with the Global.asax code file. In 1.1 I could have a code behind file for the global.asax file. This allow for shared variables of the Global class. Note: I use these shared variables for read only values that are set at application start. It would appear the 2.0 doesn't like you...
0
7182
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...
0
7581
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7142
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
7548
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...
1
5110
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
3267
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...
0
3259
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1624
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
0
488
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...

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.