Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8834845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:07:14+00:00 2026-06-14T09:07:14+00:00

I have a project created using Visual Studio 2008 targeting .NET 3.5 which makes

  • 0

I have a project created using Visual Studio 2008 targeting .NET 3.5 which makes use of the HttpListenerRequest class. As part of a statistics collection mechanism, all properties of the class are written to a file.

I recently attempted to convert the project from a VS2008 solution to a VS2010 solution and had no errors at all during the conversion, but as soon as I attempt to build the project the compiler claims that it can’t find “HttpListenerRequest.ServiceName” and “HttpListenerRequest.TransportContext”.

On both of these project the target framework is .NET Framework 3.5, I have compared the DLL version numbers being referenced and everything seems identical.

I decided to examine the HttpListenerRequest classes metadata in both version of visual studio to discover that while 2010 has no reference to ServiceName and TransportContext as expected, VS2008 shows both properties, but neither have the summary description.

Then I created a project targeting .NET 4 in VS2010 which allows me to reference both the above properties.

I really need to continue to target .NET 3.5, do you know of anyway I can make this work without changing the code to exclude so much functionality?

EDIT: As requested, this is the code:

void Log(System.Net.HttpListenerContext context)
{
    string line =
            DateTime.Now.ToString() + "|" +
            context.Request.HttpMethod + "|" +
            context.Request.RawUrl + "|" +
            context.Request.Url.ToString() + "|" +
            context.Request.RemoteEndPoint.ToString() + "|" +
            (context.Request.UrlReferrer == null ? "None" : context.Request.UrlReferrer.ToString()) + "|" +
            (context.Request.ServiceName == null ? "None" : context.Request.ServiceName) + "|" + // Error Here on ServiceName
            context.Request.UserHostName + "|" +
            context.Request.UserAgent + "|" +
            context.Request.TransportContext.ToString() + "|" + // Error here on TransportContext
            context.Request.ProtocolVersion + "|" +
            context.Request.ContentLength64.ToString();

    WriteToFile(line);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:07:15+00:00Added an answer on June 14, 2026 at 9:07 am

    So I figured it out:

    Both versions of Visual Studio only supplied me with the following version info for System.dll:
    v2.0.50727

    But after going to the windows directory and examining the files, there is a version difference.
    The one which does not include the properties is version v2.0.50727.3053, while version v2.0.50727.3634 includes them.

    I assume the problem is that I have had Windows updates disabled since installing Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Visual Studio 2008 . I have created a project with asp.net Mvc
I'm using Visual Studio 2008 and have created a setup project for my application.
I have created SQL Server 2008 Database project using visual studio 2010. after build
I have created a setup project using Visual Studio 2008 . When installing on
I have created a setup project using Visual Studio 2008. After the application is
I have created an Excel 2007 add-in using Visual Studio 2008 and built-in project
im using visual studio c++ 2008 i created project that contents the full window
I am new to LINQ. I am using Visual Studio 2008 and have created
In Visual Studio 2008 I have a Class Library project (called Media ) to
I have a standard sql server 2008 project which has been created using vs2010.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.