473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Configuration problems.

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.

Jul 19 '05 #1
1 1217
"Peter Morris" wrote in message
news:0C***********************@news-text.cableinet.net...
: 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
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gary | last post by:
I am working with a report generator that is based on SQL Server 2000 and uses ASP as the UI. Basically we have a set of reports that end users can execute through a web browser. In general the...
0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
2
by: Chris_24 | last post by:
To all, I am experiencing difficulties with an asp.net web application and its web.config file. No matter what I try I keep getting the following error: Server Error in '/action' Application....
6
by: barry | last post by:
I have VSTO 2005 and am not able to get ASP.NET Configuration under the Website menu to work. It just shows a not found page and comes back to where I executed it from. My question is can I...
5
by: Jay | last post by:
I want to store various text settings in a configuration file, that I will read into C# and make use of. Here's a simplified example of the file: #comment loop(var=1:5){ deviceundertest ...
2
by: Olegus | last post by:
I have Windows service MyService, that reads some settings from MyService.exe.config file via ConfigurationManager.AppSettings. I tried to write small WinForm frontend app(called it Manager.exe)...
2
by: Jan Eliasen | last post by:
Hi I am having some problems reading configuration values from a configuration file, using C# 2.0. I have programmed a Windows Service, and this part goes well - it runs nicely. Now, the...
3
by: Peter K | last post by:
Hi I need to be able to supply some relatively complex configuration to an application. The application will either run in a web context (with a web.config file, or as a application with an...
2
by: pantagruel | last post by:
Hi, I have a Visual studio 2005 project that runs as a Windows Service. In it I have declared that I am using System.Configuration. I have set one application setting for the service using the...
3
by: Robert Kochem | last post by:
Hi, I have some problems locating .NET Framework Configuration Tool for configuring an snk as fully trusted. On the PC I want to do this only the frameworks up to 3.5 were installed therefore I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.