473,379 Members | 1,243 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,379 software developers and data experts.

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.Transport'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="Transport.aspx.cs"
AutoEventWireup="false" Inherits="BoekenB2C.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 1036
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.Transport.

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.Transport'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="Transport.aspx.cs"
AutoEventWireup="false" Inherits="BoekenB2C.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
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...
8
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...
0
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...
4
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...
0
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...
8
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...
4
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...
3
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...
8
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,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.