Detecting .NET CLR from IE?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QXNhZg==?=

    Detecting .NET CLR from IE?

    Hello,

    I would like to detect .NET CLR on user computer to notice him if he will
    need to install .NET 3.5 runtime from IE.

    I have tried to detect using the code
    "Request.Browse r.ClrVersion.To String()" but result version is "2.0.50727" and
    I have installed .NET version 3.5 on my machine.

    Does IE can’t recognize if a .NET 3.5 is installed?

    Thanks for any advice,
    Asaf

  • Mark Rae [MVP]

    #2
    Re: Detecting .NET CLR from IE?

    "Asaf" <AG70@newsgroup s.nospamwrote in message
    news:0831FBAD-4B18-4848-99A7-B444DBA03049@mi crosoft.com...
    I would like to detect .NET CLR on user computer to notice him if he will
    need to install .NET 3.5 runtime from IE.
    You're confusing the CLR with the Framework - they aren't the same thing...
    I have tried to detect using the code
    "Request.Browse r.ClrVersion.To String()" but result version is "2.0.50727"
    and
    I have installed .NET version 3.5 on my machine.
    Yes, that would be correct...
    Does IE can’t recognize if a .NET 3.5 is installed?
    Yes it does - use Request.UserAge nt


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • =?Utf-8?B?QXNhZg==?=

      #3
      Re: Detecting .NET CLR from IE?

      Hello Mark,

      Thanks for your answer.

      I have tried using Request.UserAge nt but result is:

      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET
      CLR 2.0.50727)

      ..NET 3.5 is installed on my machine but UserAgent does not display it.

      Asaf

      "Mark Rae [MVP]" wrote:
      "Asaf" <AG70@newsgroup s.nospamwrote in message
      news:0831FBAD-4B18-4848-99A7-B444DBA03049@mi crosoft.com...
      >
      I would like to detect .NET CLR on user computer to notice him if he will
      need to install .NET 3.5 runtime from IE.
      >
      You're confusing the CLR with the Framework - they aren't the same thing...
      >
      I have tried to detect using the code
      "Request.Browse r.ClrVersion.To String()" but result version is "2.0.50727"
      and
      I have installed .NET version 3.5 on my machine.
      >
      Yes, that would be correct...
      >
      Does IE can’t recognize if a .NET 3.5 is installed?
      >
      Yes it does - use Request.UserAge nt
      >
      >
      --
      Mark Rae
      ASP.NET MVP

      >
      >

      Comment

      • =?Utf-8?B?QXNhZg==?=

        #4
        Re: Detecting .NET CLR from IE?

        Hi Mark,

        Sorry my mistake, it does working :)

        Asaf

        "Mark Rae [MVP]" wrote:
        "Asaf" <AG70@newsgroup s.nospamwrote in message
        news:0831FBAD-4B18-4848-99A7-B444DBA03049@mi crosoft.com...
        >
        I would like to detect .NET CLR on user computer to notice him if he will
        need to install .NET 3.5 runtime from IE.
        >
        You're confusing the CLR with the Framework - they aren't the same thing...
        >
        I have tried to detect using the code
        "Request.Browse r.ClrVersion.To String()" but result version is "2.0.50727"
        and
        I have installed .NET version 3.5 on my machine.
        >
        Yes, that would be correct...
        >
        Does IE can’t recognize if a .NET 3.5 is installed?
        >
        Yes it does - use Request.UserAge nt
        >
        >
        --
        Mark Rae
        ASP.NET MVP

        >
        >

        Comment

        Working...