Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Setting .Net version in IIS

Setting .Net version in IIS

Scheduled Pinned Locked Moved ASP.NET
csharpwindows-adminquestionannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    satsumatable
    wrote on last edited by
    #1

    Hi Is there any ways to set the .Net version in IIS through some scripts like Batch file etc? Thanks

    D 1 Reply Last reply
    0
    • S satsumatable

      Hi Is there any ways to set the .Net version in IIS through some scripts like Batch file etc? Thanks

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      You can use the aspnet_regiis batch file from the version of .NET that you wish to set in IIS. It would register ASP.NET from that version of .NET as the default version for your IIS.

      S 1 Reply Last reply
      0
      • D Dinesh Mani

        You can use the aspnet_regiis batch file from the version of .NET that you wish to set in IIS. It would register ASP.NET from that version of .NET as the default version for your IIS.

        S Offline
        S Offline
        satsumatable
        wrote on last edited by
        #3

        Yeah i did try this out before i post it but it throws an error Coommand:- C:\WINDOWS\Microsoft.NET\Framework\v4.0.20506>aspnet_regiis.exe -s "E:\App path\Apps\Azure\SQL_Azure\SQLServerApp" Error Message:- Installation stopped because the specified path (E:\App path\Apps\Azure\SQL_Azure\SQLServerApp) is invalid. The path is exactly what i see in IIS local path. Thanks

        S D 2 Replies Last reply
        0
        • S satsumatable

          Yeah i did try this out before i post it but it throws an error Coommand:- C:\WINDOWS\Microsoft.NET\Framework\v4.0.20506>aspnet_regiis.exe -s "E:\App path\Apps\Azure\SQL_Azure\SQLServerApp" Error Message:- Installation stopped because the specified path (E:\App path\Apps\Azure\SQL_Azure\SQLServerApp) is invalid. The path is exactly what i see in IIS local path. Thanks

          S Offline
          S Offline
          satsumatable
          wrote on last edited by
          #4

          I made it C:\WINDOWS\Microsoft.NET\Framework\v4.0.20506>aspnet_regiis.exe -sn "W3SVC/1/ROOT/SQLAzureApp" SQLAzureApp - the virtual path Thanks

          1 Reply Last reply
          0
          • S satsumatable

            Yeah i did try this out before i post it but it throws an error Coommand:- C:\WINDOWS\Microsoft.NET\Framework\v4.0.20506>aspnet_regiis.exe -s "E:\App path\Apps\Azure\SQL_Azure\SQLServerApp" Error Message:- Installation stopped because the specified path (E:\App path\Apps\Azure\SQL_Azure\SQLServerApp) is invalid. The path is exactly what i see in IIS local path. Thanks

            D Offline
            D Offline
            Dinesh Mani
            wrote on last edited by
            #5

            Refer the aspnet_regiis documentation here[^] At the fag end you will notice this NOTE

            From MSDN:

            Note The path parameter refers to the root path of the application, not the physical path. For example, W3SVC/1/ROOT/SampleApp1.

            The Examples section just below will help you accomplish the task! HTH!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups