deployment issue

  • Thread starter Thread starter abcd
  • Start date Start date
A

abcd

I am using simple ASP.NET page using C#.NET

I have developed

ABCD.aspx page and
ABCD.aspx.cs

when I compiled it has creatred ABCD.dll in my Bin directory.

Now I want to deply this to customer site I guess I will need to distribute
only aspx and .dll right?

my aspx page reads as below

<%@ Page language="c#" Codebehind="ABCD.aspx.cs" Inherits="ABCD.WebForm1"
SmartNavigation="true" AutoEventWireup="false" %>

What changes I will need to do so that I can send only .dll and aspx page.

thanks in advance
 
abcd said:
I am using simple ASP.NET page using C#.NET

I have developed

ABCD.aspx page and
ABCD.aspx.cs

when I compiled it has creatred ABCD.dll in my Bin directory.

Now I want to deply this to customer site I guess I will need to distribute
only aspx and .dll right?

my aspx page reads as below

<%@ Page language="c#" Codebehind="ABCD.aspx.cs" Inherits="ABCD.WebForm1"
SmartNavigation="true" AutoEventWireup="false" %>

What changes I will need to do so that I can send only .dll and aspx page.

thanks in advance
Nothing...just deploy the 2 files...the CodeBehind attribute is only
used by VS.NET, means nothing to the runtime; you don't have to modify
any aspx files to 'deploy'....all you have to do is compile and
distribute the aspx, dll (into the bin folder) and the other core files
(web.config, global.asax, etc.)
 
Thanks Craig

is it necessary to change

Codebehind="ABCD.aspx.cs"

to

Codebehind="ABCD.dll"

Thanks
 
abcd,

You don't need to do anything.

An easy way of releasing a project is to:

-Set up a new Virtual Directory pointing to a new folder that will just
contain the release of your application.

-When your solution is fully built, go to Project -> Copy Project, and
set the Destination Project Folder and Path to those you just created
(the VD and the physical path).

When you copy the project, it will only include the files necessary to
run it. This way you don't need mess around making sure you go the right
files.

/RT
abcd said:
Thanks Craig

is it necessary to change

Codebehind="ABCD.aspx.cs"

to

Codebehind="ABCD.dll"

Thanks
 
Ryan you have explained it very niccely. Thanks.

is .pdb also a part of deployment?

When I said copy project it also copied this file too...

Also which .NET framework I should install on the client machine (if .net
framerwork is not existing)...what are the minimal .NET components required
to run simple ASP.NET page....

thanks




Ryan Ternier said:
abcd,

You don't need to do anything.

An easy way of releasing a project is to:

-Set up a new Virtual Directory pointing to a new folder that will just
contain the release of your application.

-When your solution is fully built, go to Project -> Copy Project, and set
the Destination Project Folder and Path to those you just created (the VD
and the physical path).

When you copy the project, it will only include the files necessary to run
it. This way you don't need mess around making sure you go the right
files.

/RT
 
No, .pdb files are for the debugger -- a deployment build should not contain
these files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top