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. Can a web application run without Web.Config [modified]

Can a web application run without Web.Config [modified]

Scheduled Pinned Locked Moved ASP.NET
question
11 Posts 7 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.
  • J Offline
    J Offline
    Jagz W
    wrote on last edited by
    #1

    Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

    M P A R P 6 Replies Last reply
    0
    • J Jagz W

      Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

      M Offline
      M Offline
      m dhu
      wrote on last edited by
      #2

      Your question Title and Description are completely different. Update it.

      J walia wrote:

      Can a web application run without Web.Config

      Yes. If web.config file is not there, then the configuration settings are included from machine.config file. web.config file override the settings of machine.config at directory level.

      modified on Friday, May 13, 2011 4:11 AM

      J 1 Reply Last reply
      0
      • J Jagz W

        Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

        P Offline
        P Offline
        Prasanta_Prince
        wrote on last edited by
        #3

        A website cant run with out web.config. when you first create the solution intime of developing. Visual studio ask youto place web.config.

        P 1 Reply Last reply
        0
        • M m dhu

          Your question Title and Description are completely different. Update it.

          J walia wrote:

          Can a web application run without Web.Config

          Yes. If web.config file is not there, then the configuration settings are included from machine.config file. web.config file override the settings of machine.config at directory level.

          modified on Friday, May 13, 2011 4:11 AM

          J Offline
          J Offline
          Jagz W
          wrote on last edited by
          #4

          done. Thanks One person's data is another person's program. --J.Walia

          1 Reply Last reply
          0
          • J Jagz W

            Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #5
            1. Delete web.config.
            2. Run website.
            3. ...
            4. Profit!

            [

            S<T>::f(U) // Out of line.

            ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

            1 Reply Last reply
            0
            • J Jagz W

              Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

              R Offline
              R Offline
              Ravi Sant
              wrote on last edited by
              #6

              Yes. Practically, you need configuration. I have never seen practical scenario where you do so.

              // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

              1 Reply Last reply
              0
              • J Jagz W

                Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

                P Offline
                P Offline
                Parwej Ahamad
                wrote on last edited by
                #7

                Yes you can because required configuration will pull from machine.config file. Thanks

                Parwej Ahamad ahamad.parwej@gmail.com

                1 Reply Last reply
                0
                • J Jagz W

                  Can a web application run without Web.Config, If Yes then How? One person's data is another person's program. --J.Walia -- Modified Friday, May 13, 2011 11:47 AM

                  P Offline
                  P Offline
                  Prasanta_Prince
                  wrote on last edited by
                  #8

                  Yes you can .

                  1 Reply Last reply
                  0
                  • P Prasanta_Prince

                    A website cant run with out web.config. when you first create the solution intime of developing. Visual studio ask youto place web.config.

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    Prasanta_Prince wrote:

                    A website cant run with out web.config

                    Of course it can. If one isn't present, the runtime will attempt to apply values from machine.config.

                    Forgive your enemies - it messes with their heads

                    My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                    J 1 Reply Last reply
                    0
                    • P Pete OHanlon

                      Prasanta_Prince wrote:

                      A website cant run with out web.config

                      Of course it can. If one isn't present, the runtime will attempt to apply values from machine.config.

                      Forgive your enemies - it messes with their heads

                      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                      J Offline
                      J Offline
                      Jagz W
                      wrote on last edited by
                      #10

                      how i can use machine.config inside of web.config One person's data is another person's program. --J.Walia

                      P 1 Reply Last reply
                      0
                      • J Jagz W

                        how i can use machine.config inside of web.config One person's data is another person's program. --J.Walia

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #11

                        You don't need to. By default, if a section is present in machine.config, and the same section is not present inside your web.config, the website can read the values it needs from machine.config. The important thing to note is that machine.config is seen by all .NET applications, so you should not look to modify it yourself unless you really know what you are doing. If settings are present in your web.config, and also present in machine.config, the settings from web.config will be used.

                        Forgive your enemies - it messes with their heads

                        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                        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