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

What are the Consequences of Aspx page separate DLL from application DLL ?

Title: What are the Consequences of Aspx page separate from app DLL
Hi JL;
I am working on a big asp.net application.
When we migrate the dll (or dlls) to the production server, all users
who are login into the application are pumped off. In fact we must
close down the server (to preserve users from being logged on and
thinking they are updating data when it is in fact lost when we move
the dlls to the the applications bin directory).
What can be the reason for this? I checked to the "Temporary ASP.NET
Files" library and there does seem to be shodow copying going on of my
applications DLL.

One thing that might have to do with this is that the aspx pages are
NOT part of my Application DLL, that contains all the code that drives
and displays the pages (in *.cs files). The Dll is called
XXCSDLIB.dll

The file login.aspx:

<%@ Page language="c#" %>
<%@ Import Namespace="XXCSDLIB.Pages" %>
<script runat=server language="c#">
XXCSDLIB.Pages.login pageObject;

private void Page_Load(object sender, System.EventArgs e) {
pageObject = new XXCSDLIB.Pages.login();
}
</script>

<% pageObject.DoPage(Context); %>

There are no @Page Directive Attributes such as Inherits.
And my aspx page is not a project or part of my Visual Studio Solution
library.

My aspx page becomes an instance of its own class, ASP.login_aspx,
that inherits from the Page class (as I understand it). On Page_Load
in makes an XXCSDLIB.Pages.login object and then calls the
login.DoPage(HttpContext) method. The XXCSDLIB.Pages.login class is
from the login.cs file that is compiled into the XXCSDLIB.dll linked
library.
So I don't think I want the @Page Directive Attribute "src" because
there is no codebehind page.

According to the login.aspx page that is rendered as XML in the
shadowed copied library (see below). MY login.aspx is in a completely
different assembly than XXCSDLIB.dll, called "9vjm3ycg", so when I use
the ASP.login_aspx and then xcopy the XXCSDLIB.dll, the in process
link between the two is destroyed. This is how it is with all my aspx
pages.

Why is that? Is it because the aspx dlls and the application dll share
complete different sessionstates? Does it have anything with this to
do?

Jesse, your or others that might know, comments to my question and in
fact the entire scenario is very wellcome!

Regards,
Paul

In the temp shadowed copy library my login.aspx is better known as an
XML file, login.aspx.2b58a.xml. It looks like this.
<preserve assem="9vjm3ycg" type="ASP.login_aspx"
hash="ff6d03f98fbe092e">
<filedep name="C:\Inetpub\wwwroot_8007_paul\bin\XXCSDLIB.DL L" />
<filedep name="C:\Inetpub\wwwroot_8007_paul\login.aspx" />
</preserve>
Jul 21 '05 #1
1 1363
Please note that newsgroups that don't include dotnet have nothing to do
with the .NET framework & thus you shouldn't be posting questions about
it there. You did post to a .net newsgroup so maybe they can help you.

Paul wrote:
Title: What are the Consequences of Aspx page separate from app DLL
Hi JL;
I am working on a big asp.net application.
When we migrate the dll (or dlls) to the production server, all users
who are login into the application are pumped off. In fact we must
close down the server (to preserve users from being logged on and
thinking they are updating data when it is in fact lost when we move
the dlls to the the applications bin directory).
What can be the reason for this? I checked to the "Temporary ASP.NET
Files" library and there does seem to be shodow copying going on of my
applications DLL.

One thing that might have to do with this is that the aspx pages are
NOT part of my Application DLL, that contains all the code that drives
and displays the pages (in *.cs files). The Dll is called
XXCSDLIB.dll

The file login.aspx:

<%@ Page language="c#" %>
<%@ Import Namespace="XXCSDLIB.Pages" %>
<script runat=server language="c#">
XXCSDLIB.Pages.login pageObject;

private void Page_Load(object sender, System.EventArgs e) {
pageObject = new XXCSDLIB.Pages.login();
}
</script>

<% pageObject.DoPage(Context); %>

There are no @Page Directive Attributes such as Inherits.
And my aspx page is not a project or part of my Visual Studio Solution
library.

My aspx page becomes an instance of its own class, ASP.login_aspx,
that inherits from the Page class (as I understand it). On Page_Load
in makes an XXCSDLIB.Pages.login object and then calls the
login.DoPage(HttpContext) method. The XXCSDLIB.Pages.login class is
from the login.cs file that is compiled into the XXCSDLIB.dll linked
library.
So I don't think I want the @Page Directive Attribute "src" because
there is no codebehind page.

According to the login.aspx page that is rendered as XML in the
shadowed copied library (see below). MY login.aspx is in a completely
different assembly than XXCSDLIB.dll, called "9vjm3ycg", so when I use
the ASP.login_aspx and then xcopy the XXCSDLIB.dll, the in process
link between the two is destroyed. This is how it is with all my aspx
pages.

Why is that? Is it because the aspx dlls and the application dll share
complete different sessionstates? Does it have anything with this to
do?

Jesse, your or others that might know, comments to my question and in
fact the entire scenario is very wellcome!

Regards,
Paul

In the temp shadowed copy library my login.aspx is better known as an
XML file, login.aspx.2b58a.xml. It looks like this.
<preserve assem="9vjm3ycg" type="ASP.login_aspx"
hash="ff6d03f98fbe092e">
<filedep name="C:\Inetpub\wwwroot_8007_paul\bin\XXCSDLIB.DL L" />
<filedep name="C:\Inetpub\wwwroot_8007_paul\login.aspx" />
</preserve>


Jul 21 '05 #2

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

Similar topics

1
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are...
3
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a...
3
by: Joe | last post by:
Hi, I am new to creating .asp web sites and have a basic question. I have a website with .html pages running on an IIS server with .Net installed. I also have a couple of forms on the website....
4
by: Meir Rudovsky | last post by:
I have asp page which has iframe to host aspx page. Since , the main application (asp page) has session values , i need these values be passed to aspx page in iframe. But, i found out that...
3
by: dave | last post by:
I need to add additional .aspx pages to an existing web site. I was hoping to create a new web project in VS 2003, build the project, copy the .aspx files and the .dll into the virtual directory...
11
by: scott | last post by:
Hi, From IIS6 and from a session on the 2003 server i attempt to browse to http://localhost/default.aspx and get the following error: Description: An error occurred during the processing of...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
2
by: Max2006 | last post by:
Hi, Is there any way to break a web application into separated web projects, so we can re-use pages\? I am trying to put aspx pages and/or ascx pages in separated web projects,
6
by: =?Utf-8?B?d2lsbGlhbQ==?= | last post by:
Hi, I posted this in wrong group, so just re-post here. There are two ways to create web-based application or web service, from VS start page, click on File and New, two options you can choose,...
2
by: None | last post by:
We are creating a web application to be deployed to 150 of our customers to use as an interface to our software system. The web app needs to be completely customizable for our customers while...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
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...
0
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...
0
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...

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.