473,387 Members | 1,481 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,387 software developers and data experts.

Name does not exist in current context of code (error message)

36
I inheritede some code, and am making minor changes (email name changes) to the code, and want to recompile to another server.

I am getting this error:
"The name 'H39FE001E' does not exist in the current context"
On this line of code:
"emailSender.Fields(&H39FE001E);

This is the code:
Expand|Select|Wrap|Line Numbers
  1.  private string GetEmailAddress(AddressEntry emailSender)
  2.         {
  3.             string exchangeAddress = emailSender.Address.ToString().ToLower();
  4.             emailSender.Fields(&H39FE001E);
  5.  
  6.             int aliasStart = exchangeAddress.LastIndexOf("=") + 1;
  7.             int aliasLength = exchangeAddress.Length - aliasStart;
  8.  
  9.             if (aliasStart > 0) 
  10.             {
  11.                 string alias 
  12.                     = exchangeAddress.Substring(aliasStart, aliasLength);
  13.                 WriteToLog(exchangeAddress);
  14.                 if (exchangeAddress.Contains("compWorld")) {
  15.                     return String.Format("{0}@emailAddressHere.com", alias);
  16.                 } else {
  17.                     return String.Format("{0}@emailAddressHere.com", alias);
  18.                 }
  19.             } 
  20.             else 
  21.             {
  22.                 WriteToLog(
  23.                     "Sender email not determined -> " + 
  24.                     exchangeAddress
  25.                 );
  26.  
  27.                 // email address could not be determined, return a generic one
  28.                 return "unknown@emailAddressHere";
  29.             }
  30.         }
  31.  
Thanks in advance for any assistance.
Nov 12 '10 #1
0 1268

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Brian | last post by:
Does anyone know what the error message: the callee(server(not server application) is not available and disappeared; all connections are invalid. The call did noot execute. means? I get this...
1
by: Jade | last post by:
Hi, Does anyone encountered the following error message: The following exception has occured: InvalidOperationException: Cannot call Invoke or InvokeAsync on a control until the window handle...
1
by: hrhoe | last post by:
Hi, I'm trying to create a reusable component with C#. So, I created a user control that uses Microsoft SQLDMO Object Library (SQLDMO). And I could add that UserControl on Toolbox. However,...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
1
by: Arjen | last post by:
Hi, I do this inside a repeater: <% if ((Boolean)((DataRowView)Container.DataItem) == true) { %> <%} %> I get this message: CS0103: The name 'Container' does not exist in the current...
2
by: Jeff | last post by:
hey asp.net 2.0 (C'#) In the code behind file I have this method: public String AddBR(Object param) { String text = (String) param; return text; }
3
by: Michael | last post by:
Hi, I am getting a strange error. Last night when I left work this was working perfectly. This morning when I try to run this code in VS2005, it comes up with an error saying "The name 'UserName'...
3
by: lukefrancomusic | last post by:
I am trying to learn Python. I am working on a simple backup program (code listed below). When using a source directory (the files to be backed up) without spaces in the title, my program works...
0
by: Terry | last post by:
Hello, I have problem adding controls to my webpage default.aspx. There is a group of controls that just refuse to be used with message: 'The name 'controlname' does not exist in the current...
20
by: cowboyrocks2009 | last post by:
Hi, I need help to automate my code to take data from input file. Also I need to create it as a function so that I can pass it to some other program. I am new to Java so having a bit limitation to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.