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. the element buildproviders cannot not be defined below the application level in asp.net 2.0

the element buildproviders cannot not be defined below the application level in asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomsysadminhelp
3 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.
  • R Offline
    R Offline
    Reddy Prakash
    wrote on last edited by
    #1

    i got an error when i tried to run this on my webserver but in my local machine its ok... the error is this: Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The element 'buildProviders' cannot be defined below the application level. Source Error: Line 31: Line 32: Line 33: Line 34: Line 35: Source File: \\smb0\mnt\w0704\d23\s48\b0271eea\www\margz.com\paul\shopftdl\web.config Line: 33

    G U 2 Replies Last reply
    0
    • R Reddy Prakash

      i got an error when i tried to run this on my webserver but in my local machine its ok... the error is this: Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The element 'buildProviders' cannot be defined below the application level. Source Error: Line 31: Line 32: Line 33: Line 34: Line 35: Source File: \\smb0\mnt\w0704\d23\s48\b0271eea\www\margz.com\paul\shopftdl\web.config Line: 33

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Your web application is not an application, it's just a subfolder in another application. You can only use certain settings in web.config when it's in the root folder of the application, but as the folder where you have put your code is not an application, the root folder is not where you think it is.

      Despite everything, the person most likely to be fooling you next is yourself.

      1 Reply Last reply
      0
      • R Reddy Prakash

        i got an error when i tried to run this on my webserver but in my local machine its ok... the error is this: Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The element 'buildProviders' cannot be defined below the application level. Source Error: Line 31: Line 32: Line 33: Line 34: Line 35: Source File: \\smb0\mnt\w0704\d23\s48\b0271eea\www\margz.com\paul\shopftdl\web.config Line: 33

        U Offline
        U Offline
        User 8005365
        wrote on last edited by
        #3

        You can fix this problem either defining the element in the web.config file of the root dir or setting Virtual Directory as APPLICATION in IIS. For doing this with IIS 6.0, you first have to set the the directory in which your site is present as a Virtual Directory and then define this virtual directory as an Application. All physical directories under Inetpub\Wwwroot are not considered applications until the following procedure is used. 1. Open IIS Manager. 2. Expand the Default Web Site node and look for the subdirectory that you want to designate as an application root. 3. Right-click the directory that you want to mark as an application root, and then click Properties. 4. On the Directory tab, in the Application Settings section, click Create. 5. In the Application name text box, type the name of the application, and then click OK. The virtual directory is now an application root.

        CUCURACHI GIORGIO

        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