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> 1 1364
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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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,
|
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,...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: 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...
|
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...
|
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...
|
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,...
| |