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

Request reference not found

I have the following error in VS 2003:

The type or namespace name 'Request' could not be found

But I have the following in my code:

using System;
using System.Data;
using System.IO;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using System.Web.Services;
using NewHires.RemoteUser;
using NewHires.NewHire;
using NewHires.EmployeeTax;
using NewHires.Employee;
using NewHires.ScorpeoUtility;
using MyFunctions;

using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

I also have the following references:

DBObject
System
System.Data
System.Web
System.Web.Services
System.XML

What else am I missing?

I have another project that has no problem with Request and it seems to have
the same stuff in it.

Thanks,

Tom
Nov 7 '06 #1
2 1055
Is this a class by itself and not a codebehind file? If so then you have to
reference it by the full namespace,

HttpContext.Current.Request
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"tshad" <ts**********@ftsolutions.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I have the following error in VS 2003:

The type or namespace name 'Request' could not be found

But I have the following in my code:

using System;
using System.Data;
using System.IO;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using System.Web.Services;
using NewHires.RemoteUser;
using NewHires.NewHire;
using NewHires.EmployeeTax;
using NewHires.Employee;
using NewHires.ScorpeoUtility;
using MyFunctions;

using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

I also have the following references:

DBObject
System
System.Data
System.Web
System.Web.Services
System.XML

What else am I missing?

I have another project that has no problem with Request and it seems to
have the same stuff in it.

Thanks,

Tom

Nov 7 '06 #2
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:uJ**************@TK2MSFTNGP02.phx.gbl...
Is this a class by itself and not a codebehind file? If so then you have
to reference it by the full namespace,

HttpContext.Current.Request
That was it.

And yes it was a Class by itself and the one that worked was a codebehind.

Thanks,

Tom
>

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"tshad" <ts**********@ftsolutions.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>I have the following error in VS 2003:

The type or namespace name 'Request' could not be found

But I have the following in my code:

using System;
using System.Data;
using System.IO;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using System.Web.Services;
using NewHires.RemoteUser;
using NewHires.NewHire;
using NewHires.EmployeeTax;
using NewHires.Employee;
using NewHires.ScorpeoUtility;
using MyFunctions;

using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

I also have the following references:

DBObject
System
System.Data
System.Web
System.Web.Services
System.XML

What else am I missing?

I have another project that has no problem with Request and it seems to
have the same stuff in it.

Thanks,

Tom


Nov 8 '06 #3

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

Similar topics

1
by: Clark | last post by:
I am trying to send a meeting request from vb.net and I have tried using this example. ---------------------------...
3
by: tascien | last post by:
I cannot believe that this code causes an error: Dim MyCookie as string = Request.Cookies("Email").Value Object reference not set to an instance of an object. If the cookie is found, it...
12
by: Guido Mureddu | last post by:
Hello, I'm a student in electronic engineering. I do know you've seen and answered this sort of topic/request countless times, but I haven't found past threads as helpful as I had hoped, and...
2
by: Reena | last post by:
Hi, Working on .NET 2003. Using C# as server code. I have created a class with following code... using System; using System.Data.OracleClient; using System.Web; using...
8
by: Ricky K. Rasmussen | last post by:
Hello NG, I'm having some encoding trouble using my own RequestHandler: Since the RequestHandler must be able to serve content with diffrent encoding, I set the Response.Charset and...
5
by: Filip | last post by:
Hello, (ASP.NET c#) I want to put some common functions into one class and within this class I need to have access to the Session, Request and Response. This class is not page behind file! I...
1
by: jctwguy | last post by:
G'day all My pc is on a domain and I have a test server in a work group. all the web application and the web service are working fine locally, but when I copy the project using service extension...
14
by: Harry Keck | last post by:
I have client side code that uses xmlhttp to make an asyncronous call to the server. This call really churns the server and can take a couple of minutes to finish. I have found that while this...
3
by: Joseph Geretz | last post by:
I'm using the Request Filter documentation which can be found here: http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx In this example, two filters are installed, one...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.