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