codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  system.web.httpRequest method not found  ilfirinelda at 05:54 on Wednesday, March 09, 2005
 

hi,

i deployed an application to webserver and try to browse it, it gives me this error

" Method not found: System.Collections.Specialized.NameValueCollection

System.Web.HttpRequest.get_ServerVariables() "

I went through some the codes in my .net application and suspected that it was these line that is causing this error,


"strLoginName = RTrim(Request.ServerVariables("LOGON_USER"))
iPos = Len(strLoginName) - InStr(1, strLoginName, "\", 1)
iDom = InStr(1, strLoginName, "\", 1) - 1
strDomain = Left(strLoginName, iDom) 'returns the domain name only
strDomain = strDomain.ToLower() 'change the domain name to lowercase
strLoginName = Right(strLoginName, iPos)"


What i do is trying to retrieve the Windows NT login name from the system, but it prompt out this error.
I have try debug for a few times but i cant find whats wrong with it, does anybody knows whats the solution for this? i really need some help.

P.S: Im using asp.net to build my application


  Re: system.web.httpRequest method not found  tgreer at 15:43 on Wednesday, March 09, 2005
 

What namespaces are you using? Is the Collections namespace loaded?










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Javabeans incorporating sql query.
•  Re: Help: Trouble with z-Index and SELECT lists
•  Help with
•  Re: C# and EXCEL question saving a file saving the the first column as read only
•  Iexplore -
•  Iframe and Div Layer Scrollbar Problem
•  Left margin increases as page fills.....
•  Re: Parse error that is slowly driving me insane
•  simple javascript/dhtml drop-down menu


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005