Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have web application name job portal. when i build this project it show error given bellow :
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. C:\dev\demo-jobportal-com-APPLICATION\web\web.config 98

And when i open other page it now show design view here show error "The Master Page error" and given view code when i view code here it indicate the 1t line of my page is:
<%@ page title="" language="C#" masterpagefile="~/MasterPages/SiteMaster.master" autoeventwireup="true" inherits="Login, App_Web_login.aspx.cdcab7d2" theme="ThemeGlobal" %>


What I have tried:

I dont know what can i do ,i dont understand where is problem here.
plz help me..
Posted
Updated 16-May-18 0:07am
v2
Comments
Richard Deeming 17-May-18 12:43pm    
"This error can be caused by a virtual directory not being configured as an application in IIS."

So either you've set up your project in IIS as a virtual directory instead of an application; or you've added an application-level setting to a web.config file that isn't in the root of your project.

If it's the former, then open IIS Manager, right-click on your project folder, and select "Convert to Application".

If it's the latter, then you'll need to edit the web.config file to remove the erroneous setting.
Deekshaa Singh Chauhan 24-May-18 5:52am    
it's not working,
Actually this web application was published.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900