473,670 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Site as virtual directory

Hi,

I have 2 websites. Now I want to run one site as a virtual site of the
other in IIS 5 (Win 2000).

Like this :
Website 1
\--Website 2 (Virtual directory)

1) If I create the virtual directory and don't create an application
on it, I get the following error:

Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'BoekenB2C.Tran sport'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="Tra nsport.aspx.cs"
AutoEventWireup ="false" Inherits="Boeke nB2C.Transport"
Culture="NL-nl"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

Line 3: <HTML>

2) If I create a application on the virtual directory, it works, but
my session is lost.

The only solution I heve yet found is rewriting all the code to not
use code behind, but this is not an option for me. Is there any other
solution?

Thanks in advance,

Patrick
Nov 19 '05 #1
1 1047
Lintie,

Be sure that you have placed your website2 DLL file into the website1 BIN
folder. Because you don't have website2 as an application, it is using
website1 as the application root, and not finding the DLL file to load type
BoekenB2C.Trans port.

Also, if you want to maintain website2 as its own application, you can
transfer the session between applications using the following solution
(assuming same domain between applications 1 and 2):
http://www.iansuttle.com/articles/sessiontransfer.aspx
If you do use this, just replace the code in the ASP Classic page to be done
in ASP.Net.

I recommend using the first solution however, as this will keep both
projects within the same session.

Regards,
Ian Suttle
http://www.IanSuttle.com

"Lintie" wrote:
Hi,

I have 2 websites. Now I want to run one site as a virtual site of the
other in IIS 5 (Win 2000).

Like this :
Website 1
\--Website 2 (Virtual directory)

1) If I create the virtual directory and don't create an application
on it, I get the following error:

Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'BoekenB2C.Tran sport'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="Tra nsport.aspx.cs"
AutoEventWireup ="false" Inherits="Boeke nB2C.Transport"
Culture="NL-nl"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

Line 3: <HTML>

2) If I create a application on the virtual directory, it works, but
my session is lost.

The only solution I heve yet found is rewriting all the code to not
use code behind, but this is not an option for me. Is there any other
solution?

Thanks in advance,

Patrick

Nov 19 '05 #2

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

Similar topics

0
2273
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or recommended and b) if there is another way. I want to add the projects under the sharepoint site as I want authentication but do not want my users to have to login everytime they access a net app from within the sharepoint site. Ideally, they...
8
2480
by: JR | last post by:
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local folder on the Web server containing an ASP.NET application. I get a "Failed to start monitoring changes" when I try to run the application. If I try to debug, I get a message "unable to start debugging on the Web server". I put an...
0
1074
by: Martin Maat | last post by:
I have two sites but it is really just one site. The second site is in a virtual directory of the first and the URL is mapped to that directory like http://xxx.xxx.xxx.xxx/myothersite I would rather have had two real sites using host header name recognition but for some reason DNS redirection doesn't pass the friendly URL to my site so IIS never knows what site was originally addressed, it only gets the IP address. So the only way to...
4
7565
by: Jerry | last post by:
I'm having just a bit of trouble wrapping my brain around the task of working with folders that are above the site's root folder. I let users upload photos (.jpg/.gif files) which can subsequently be viewed on the site's pages. My hosting provider is requiring that any files my Web app writes get written to a folder that is above the app's root folder (for security purposes). When writing the files I understand how to use MapPath to...
0
1234
by: Wayne Sepega | last post by:
We are using windows 2003 standard server, VSS 2005 and VS 2005 (mostly team dev, but some team arch and suite) We run windows 2003 on our development boxes, this gives us the ability to host multiple web sites running on the box at a time, this works great for the most part. However, we have the following issue: Lets say I have two web sites set up on my box that respond to their corresponding host header value:
8
1833
by: news.microsoft.com | last post by:
I have two completely distinct ASP.NET (2.0) web applications. They share no code, they have distinct web.config files, they don't even link to each other. During development, they have lived happily side by side in two virtual directories in the same IIS website. e.g. http://localhost/dotnetnuke and http://localhost/mobilephoneapp Now they are ready to be deployed to a production webserver (IIS 6.0). I want the first app to be run...
4
1053
by: WinDev | last post by:
One of my guys is trying to move an application from our test box to our production server cluster and is having problems. He had moved over everything, set up the new site including making the web site an application through properties. He even made a virtual directory that is in the web site an application. When somebody logs on he gets the error allowDefinition='MachineToApplication' beyond application level. This error can be caused...
3
7131
by: colintanner | last post by:
I've a test web site set up as a virtual directory under default web sites in IIS. However when I browse to the main .aspx page I get an error because it is referencing a web.config that belongs to sharepoint web sites. How can I force the test web site to reference the correct web.config file? The test web site contains the following in IIS: Default Web Site Test - contains aspx and web.config
8
1799
by: Paul W Smith | last post by:
I currently have a web site at www.middlesexccl.com I am also developing a new version of the web site using ASP.NET. I would like to give certain people access to this for evaluation purposes, so I thought I would create a directory called NewSite and copy the new files there. My problem is when I use www.middlesexccl.com/NewSite/LeagueTables.aspx I get an error message - Server Error in '/' Application. I have done as
0
8388
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
8907
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
8663
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...
0
7423
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6218
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
5687
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1799
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.