Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:10:30+00:00 2026-06-10T05:10:30+00:00

Hi everyone when i publish my website via IIS, I get this error code

  • 0

Hi everyone when i publish my website via IIS, I get this error code as you can see at below. Can you help me ?

 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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

    Source Error: 


    Line 27:       </assemblies>
    Line 28:     </compilation>
    Line 29:     <authentication mode="Forms">
    Line 30:       <forms loginUrl="~/Account/LogOn" timeout="2880" />
    Line 31:     </authentication>


    Source File: C:\Users\furkan\Desktop\WebCity\webcity\web.config    Line: 29 

Then I converted my root dictionary to Application but I get this error

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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error: 


Line 17:   <system.web>
Line 18:     <httpRuntime requestValidationMode="2.0" />
Line 19:     <compilation debug="true" targetFramework="4.0">
Line 20:       <assemblies>
Line 21:         <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />


Source File: C:\Users\furkan\Desktop\WebCity\WebCity\web.config    Line: 19 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:10:31+00:00Added an answer on June 10, 2026 at 5:10 am

    The answer to the first issue was this:

    This usually means you have not configured the directory for your website as an application. Open up IIS Manager, find the root directory for your website (where web.config is), right click, and select “Convert to Application”.

    For the new issue, it’s a problem of the .NET version. You either don’t have asp.net 4.0 installed, or you have the application pool set to use the wrong framework. It’s probably the latter, so go to the advanced setting for your site, select the Application Pool setting, and choose an Application Pool called ASP.NET 4.0, or any other that uses the 4.0 framework. If there aren’t any, then you need to install .NET 4.0

    Choosing an app pool:

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi everyone when I publish my web site via ISS I get this error
everyone. This is a piece of code from using sqlite in android tutorial: return
everyone. Please see example below. I'd like to supply a string to 'schedule_action' method
Everyone uses source-code control to manage versions (right?) and this provides some level of
everyone! I couldn't find a tutorial explaining the right way to code this. I
This question can have different answers because everyone would do it his own way.
Hello everyone I want to ask how to publish a MVC3 project on IIS
everyone! new to here and been pondering about this myself for some times with
everyone. I know this is a far treated subject, but I've looked everywhere and
everyone. I am an experienced C programmer trying to get adjusted to C++. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.