473,651 Members | 3,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.c s.

Webform1.aspx gives a template for an HTML form, and uses codebehind
for the code. Webform1.aspx.c s 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
<authenticati on mode="Windows" />
gives the following error: " It is an error to use a section registered as
allowDefinition ='MachineToAppl ication' 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="Web Form1.aspx.cs" AutoEventWireup ="false"
Inherits="WebAp plication.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 1228
"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.c s.

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
1539
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 model works fine, but we are running into some scaling issues. What I'm trying to determine is, what is the optimal configuration for this system. It is currently a 2.4G Pentium with a large RAID and 1G of RAM. We have been using the "fixed"...
0
5312
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 written in C#. I created a small .exe file to test that the library builds propertly from configuration and that it communicates properly. This work great in the System.Windows.Forms. However, when I use the library in a web enviroment things...
2
1607
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. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom
6
1514
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 download the Visual Web Developer Express 2005 at the same time the VSTO 2005 version is loaded to see if ASP.NET Configuration would work in the Visual Web Developer Express 2005. I realize this is not a solution but am curious to see if I can get...
5
2082
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 freq:5.6e6 power:3.7 analyser freq:5.6e6 span:1e3 resbw:100 atten:20 } As you can see, the configuration file will define:
2
14248
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) to manage settings of MyService, but have problems with accessing MyService.exe.config from Manager app. I am getting this error: "System.Configuration.ConfigurationElement.this' is inaccessible due to its protection level"
2
3621
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 Windows Service must call a Web Service every now and then. I have added the web reference, and made it dynamic, so I can change the
3
3861
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 app.config). The only configuration reading I have used before is AppSettings and I have also used Spring Framework. It is more the type of configuration that Spring uses I am looking at now.
2
2726
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 settings panel. When I try to do the following;
3
3861
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 wanted to download the .Net SDK 2.0 - but the download page said that it is outdated , superseded by the "Windows SDK for Windows Server 2008 and .NET Framework 3.5". Therefore I downloaded the WebInstaller and installed all .Net related...
0
8361
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.