P
Peter Morris
Hi, folks.
I'm just learning ASP programming in C# using Borland C# Builder
I'm having problems, which I think are some sort of configuration
issue, with .NET framework or IIS.
I'm using XP Pro on a standalone PC.
I use C#Builder to create a new ASP.NET Web application.
It creates various default files: Web.config, Global.asax, assemblyinfo.cs
Webform1.aspx., Webform1.aspx.cs.
Webform1.aspx gives a template for an HTML form, and uses codebehind
for the code. Webform1.aspx.cs gives a default namespace WebApplication,
and a default class WebForm1.
When I try to run the application in a browser, I get a lot of error
messages
shown in the browser.
First, it objects to the standard Web.Config file. The line
<authentication mode="Windows" />
gives the following error: " 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."
I've tried changing the mode, but it gives the same error whatever
I set it to.
I have the same problem with the part that sets the SessionState.
The only way I can fix it is to comment them out.
Then, when I try to run it, it objects to the first line in Webform1.aspx
<%@ Page language="c#" Debug="true"
Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="WebApplication.Form1" %>
It gives the error message: Could not load type
'WebApplication.Client.Form1'.
Now, it used not to run from a browser, but I could run it from
C#Builder.
Now, an additional problem has occurred. When I try to run an application
from C#Builder I get an alert box with a new error message.
"Unable to attach to ASP.NET Process (typically aspnet_wp.exe)"
Looking at taskmanager I see aspnet_wp.exe is running.
Any ideas? TIA.
I'm just learning ASP programming in C# using Borland C# Builder
I'm having problems, which I think are some sort of configuration
issue, with .NET framework or IIS.
I'm using XP Pro on a standalone PC.
I use C#Builder to create a new ASP.NET Web application.
It creates various default files: Web.config, Global.asax, assemblyinfo.cs
Webform1.aspx., Webform1.aspx.cs.
Webform1.aspx gives a template for an HTML form, and uses codebehind
for the code. Webform1.aspx.cs gives a default namespace WebApplication,
and a default class WebForm1.
When I try to run the application in a browser, I get a lot of error
messages
shown in the browser.
First, it objects to the standard Web.Config file. The line
<authentication mode="Windows" />
gives the following error: " 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."
I've tried changing the mode, but it gives the same error whatever
I set it to.
I have the same problem with the part that sets the SessionState.
The only way I can fix it is to comment them out.
Then, when I try to run it, it objects to the first line in Webform1.aspx
<%@ Page language="c#" Debug="true"
Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="WebApplication.Form1" %>
It gives the error message: Could not load type
'WebApplication.Client.Form1'.
Now, it used not to run from a browser, but I could run it from
C#Builder.
Now, an additional problem has occurred. When I try to run an application
from C#Builder I get an alert box with a new error message.
"Unable to attach to ASP.NET Process (typically aspnet_wp.exe)"
Looking at taskmanager I see aspnet_wp.exe is running.
Any ideas? TIA.