Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

error

  Asked By: Darla    Date: Jul 18    Category: Asp.net    Views: 966
  

im getting error in this line when compiling c# web project:

ipAddress = Request.ServerVariables("REMOTE_ADDR");

system.web... denotes a 'property' where a method was expected

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Paul Brooks     Answered On: Jul 18


C# uses [], not ()

ipAddress = Request.ServerVariables["REMOTE_ADDR"];

 
Answer #2    Answered By: Sheryl Morgan     Answered On: Jul 18

'm working with ASP.Net and XML files. Recently I have this error,
it's like some kind of permission is denegate for the ASP.Net user. I have check
some options in IIS but still the same error. Anybody can help me please?

 
Answer #3    Answered By: Brian Ross     Answered On: Jul 18

If you are writing to XML files (or any files) from your asp.net
application, the directrory they are in must have write permissions
for the ASP.NET user. If your application is on Windows 2003 server,
the Network Service user must have write permissions.

 
Answer #4    Answered By: Heidi Larson     Answered On: Jul 18

your error  did not make it through.
please include the error ... or resend if it just didn't make it through

 
Didn't find what you were looking for? Find more on error Or get search suggestion and latest updates.




Tagged: