Configuration problems.

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.
 
R

Roland Hall

in message
: 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.

Hi Peter...

You might want to post your question in a .NET newsgroup. They all have
dotnet in their name. This is a Classic ASP NG which only supports
VBScript/JScript.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
G

Guest

First, it objects to the standard Web.Config file. The lin
<authentication mode="Windows" />>gives the following error: " It is an error to use a section registered a
allowDefinition='MachineToApplication' beyond application level
This error can be caused by a virtual directory not being configure
as an application in IIS.
I've tried changing the mode, but it gives the same error whateve
I set it to

Are you talking about the directory's properties in IIS? Have you told IIS that the directory has an application (Properties>>Directory>>Application Settings)? Visual Studio does this for you, but I don't know about Borland.
 
P

Peter Morris

LoC said:
Are you talking about the directory's properties in IIS? Have you told IIS
that the directory has an application (Properties>>Directory>>Application
Settings)? Visual Studio does this for you, but I don't know about Borland.
Ah, I didn't know that.

That's solved at least part of the problem. I can now run programs in
internet explorer.
Although I still cant run it from Borland - that must be a seperate issue.

You've helped a lot, thanks very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top