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: orphan files (owner account deleted in linux but files exists)
• Re: help in perl script
• Re: Text wrapping on C# webforms buttons
• Re: Replacing patterns a^b with pow(a,b)
• Re: Problem - Object doesn`t support this property or method
• great sight
• Re: JavaScript: Not working in Firefox 3.x
• Re: Difference between two dates including From & To date
• Re: How to highlight text WITHIN a JTable cell?


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