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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. visual studio 2013

visual studio 2013

Scheduled Pinned Locked Moved Web Development
visual-studiocsharphelpquestion
9 Posts 3 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.
  • M Offline
    M Offline
    msc920
    wrote on last edited by
    #1

    Hi, Recently I started using VS 2013. Before that I had used VS 2010. The problem is that: I cannot add refence of System.Web such that I cannot use its objects such as HttpContext. What can I do to solve it?

    Kornfeld Eliyahu PeterK Richard DeemingR 2 Replies Last reply
    0
    • M msc920

      Hi, Recently I started using VS 2013. Before that I had used VS 2010. The problem is that: I cannot add refence of System.Web such that I cannot use its objects such as HttpContext. What can I do to solve it?

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      Most interesting...Can you elaborate on 'cannot add'? Did you got any error? System.Web is not on the list?

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      M 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        Most interesting...Can you elaborate on 'cannot add'? Did you got any error? System.Web is not on the list?

        I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

        M Offline
        M Offline
        msc920
        wrote on last edited by
        #3

        If I add System.web reference to a class library in vs 2013 (.net 4) I can only reach AspNetHostingPermission, AspNetHostingPermissionLevel, AspNetHostingPermissionAttribute, and no other objects such as HttpContext or HttpRequest. Is my installation wrong?

        Kornfeld Eliyahu PeterK 1 Reply Last reply
        0
        • M msc920

          If I add System.web reference to a class library in vs 2013 (.net 4) I can only reach AspNetHostingPermission, AspNetHostingPermissionLevel, AspNetHostingPermissionAttribute, and no other objects such as HttpContext or HttpRequest. Is my installation wrong?

          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu Peter
          wrote on last edited by
          #4

          I done this: 1. Open new project of type 'Class Library' 2. Add reference to 'System.Web' 3. Add 'using System.Web' in my source code After all these I can access all the types you mentioned... You may be missing the proper using?

          I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

          M 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            I done this: 1. Open new project of type 'Class Library' 2. Add reference to 'System.Web' 3. Add 'using System.Web' in my source code After all these I can access all the types you mentioned... You may be missing the proper using?

            I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

            M Offline
            M Offline
            msc920
            wrote on last edited by
            #5

            I exactly took the same steps. I've puzzled about this. And it only occurs in Class Libraries. System.Web is normal in web sites. Before that in VS 2010, there was no problem in adding and using System.web components to Class Libraries.

            Life is short and the art is long.

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • M msc920

              I exactly took the same steps. I've puzzled about this. And it only occurs in Class Libraries. System.Web is normal in web sites. Before that in VS 2010, there was no problem in adding and using System.web components to Class Libraries.

              Life is short and the art is long.

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #6

              I never seen such bug you report here... All I can tell you that I'm using VS 2013 Premium with Update 2... Maybe a clean install can help you...

              I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              M 1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                I never seen such bug you report here... All I can tell you that I'm using VS 2013 Premium with Update 2... Maybe a clean install can help you...

                I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

                M Offline
                M Offline
                msc920
                wrote on last edited by
                #7

                Thank you. I tried it. Again I will uninstall and repeat it.

                1 Reply Last reply
                0
                • M msc920

                  Hi, Recently I started using VS 2013. Before that I had used VS 2010. The problem is that: I cannot add refence of System.Web such that I cannot use its objects such as HttpContext. What can I do to solve it?

                  Richard DeemingR Offline
                  Richard DeemingR Offline
                  Richard Deeming
                  wrote on last edited by
                  #8

                  Does your project's "Target Framework" have the words "Client Profile" at the end? This was a subset of the full framework in 3.5 / 4.0 which doesn't include any of the ASP.NET stuff: http://msdn.microsoft.com/en-us/library/cc656912%28v=vs.110%29.aspx[^] Try changing the target framework to the full framework from your project's properties page, or the drop-down list at the top of the "new project" dialog.


                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                  M 1 Reply Last reply
                  0
                  • Richard DeemingR Richard Deeming

                    Does your project's "Target Framework" have the words "Client Profile" at the end? This was a subset of the full framework in 3.5 / 4.0 which doesn't include any of the ASP.NET stuff: http://msdn.microsoft.com/en-us/library/cc656912%28v=vs.110%29.aspx[^] Try changing the target framework to the full framework from your project's properties page, or the drop-down list at the top of the "new project" dialog.


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    M Offline
                    M Offline
                    msc920
                    wrote on last edited by
                    #9

                    I firstly looked at it. But it was normal .net 4.0. I suppose the reason of it was up to my laptop's configuration or an error during setup process. I will reinstall vs 2013 later. Now I'm again workin in vs 2010 in order to finish my other projects.

                    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