I have run the website some error are displayed.


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.


Pls. give solution for me.

Recommended Answers

All 3 Replies

Hi...

Can you please tell version of IIS, you are using 6.0 or 7.0?

If IIS 6.0 >>>
Create new Virtual Directory

If IIS 7.0 >>>
Create an Application and dont forgot to enable application for 32-bit compatibility.

check ur iis version

on page top write

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" EnableViewStateMac="false" %>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.