I have got this error which recurred many times about 18 months ago when I first began. I have a web site running from a menu and at the time I first encountered this error,
I found the solution to be removing the web.config filefrom any sub-folders in the site. Now I am trying to pass controls from one task to another. To do this I need a call to RESPONSE.REDIRECT. I fussed with this but somehow I could not make it link correctly. I have concluded that I am lacking some basic information and definitions. I tried to first see if I could make a simple hyperlink work and here is where I've run into the problem above. What I have is a page called newbase which has a hyperlink to "newbaserec" that does nothin but display "SUCCESS"
Without doing anything beyond the above, I get the crash with the famous caption:
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.
The hyperlink code is right from my toolbox and the navigation property is set properly to be default.aspx in my second folder. I took out the web.config files out of both folders and it apparently worked to get rid of the problem but now I am getting a different
problem which evidently stems from removing the web.config.
Could not load type 'NEWBASEREC._Default'.
Line 1: <%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
Line 2: CodeBehind="Default.aspx.vb" Inherits="NEWBASEREC._Default" %> Line 3:
Now what do I do? Hyperlinks work on my site when I employ them via html commands. I do not understand several items such as configuring in IIS, but thats a question for another day. Can someone help me on this?