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
• Re: How to concatenate a string and a variable using perl?
• Re: repaint() slow performence..
• Re: How Can I Get The Height Of A Hidden <div>?
• Re: Firefox/IE doctype problem.
• Re: Plz its urgent:validation code
• Re: Write text strings to Serial Port
• Re: Error configuring webservice identity in reporting services 2005
• Re: sort hash by value, numerically
• Re: Accessing user control in master page from any content page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010