473,320 Members | 2,029 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,320 software developers and data experts.

What Gets Deployed?

I created a VB ASP.NET solution in VSNET 2003. It works fine in the IDE. As
per the instructions, I used Project/Copy Project to make a copy of all
required files (I used the FrontPage option). I then FTP'd all of those
files and directories to a virtual directory on my ISP account. In looking
through the contents, I don't see my Form1.aspx.vb file? I suspect the
code-behind is compiled into some other file?

I am currently working with the developer of a 3rd party grid that is used
in my project to resolve some problems, and he is all excited over the fact
that the Form1.aspx.vb file isn't there. I don't think that is relevant
since I can see that at least some of my code runs?

Can anyone educate me on what gets distributed?

TIA

Wayne
Jul 21 '05 #1
2 1241
Typically, you don't want or need the .vb / .cs etc files on a production
server. Any code files should have been compiled into the library or
executable used for your web application; these files are located within the
project's bin directory. Other files, such as the .aspx, .ascx etc. are
considered content of the project and are also copied. Obviously, any VB/C#
server side code within the content pages will be compiled on the server as
needed.

So, as a rule of thumb, you wouldn't expect to see .vb/.cs files (or indeed
..pdb or other debug files) on a web server as the code has been compiled.
In this respect, I would suggest you are right and your over excited friend
is wrong :)

A simple exercise if you have VS.NET is to select a file in the solution
explorer tree and look at the properties - the "Build Action" entry denotes
what is done with the file. Content is simply copied; Compile is just that;
Embedded Resource is auxilary info chucked into the assemblies etc.

K.

"Wayne Wengert" wrote:
I am currently working with the developer of a 3rd party grid that is used
in my project to resolve some problems, and he is all excited over the fact that the Form1.aspx.vb file isn't there. I don't think that is relevant
since I can see that at least some of my code runs?

Can anyone educate me on what gets distributed?

Jul 21 '05 #2
Kev;

Thanks for the helpful reply.

Wayne

"Kev Sherratt" <k.********@lancaster.ac.uk> wrote in message
news:c8*********@alliance.lancs.ac.uk...
Typically, you don't want or need the .vb / .cs etc files on a production
server. Any code files should have been compiled into the library or
executable used for your web application; these files are located within the project's bin directory. Other files, such as the .aspx, .ascx etc. are
considered content of the project and are also copied. Obviously, any VB/C# server side code within the content pages will be compiled on the server as needed.

So, as a rule of thumb, you wouldn't expect to see .vb/.cs files (or indeed .pdb or other debug files) on a web server as the code has been compiled.
In this respect, I would suggest you are right and your over excited friend is wrong :)

A simple exercise if you have VS.NET is to select a file in the solution
explorer tree and look at the properties - the "Build Action" entry denotes what is done with the file. Content is simply copied; Compile is just that; Embedded Resource is auxilary info chucked into the assemblies etc.

K.

"Wayne Wengert" wrote:
I am currently working with the developer of a 3rd party grid that is used in my project to resolve some problems, and he is all excited over the

fact
that the Form1.aspx.vb file isn't there. I don't think that is relevant
since I can see that at least some of my code runs?

Can anyone educate me on what gets distributed?


Jul 21 '05 #3

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

Similar topics

1
by: solex | last post by:
If you have, can you please point me in the right direction as to how to get this to work. TIA, Dan
0
by: newsgroupscnhs | last post by:
Hi, I have an app with many forms that contain grids. On my development and test machines everything is fine. I just deployed to my beta site and all my grids are missing their scrollbars! ...
0
by: pmud | last post by:
Hi, An ASP.NET project has been DEPLOYED to the WEB SERVER. I modified one of the pages in the DEVELOPMENT SERVER & tried to replace the Existing page in the project (which has already been...
6
by: jty202 | last post by:
"Although we do support the ASP.NET Starter Kits, we do not do the installation for you. You can run the installation file locally, then upload the kit. You will not be able to compile on the...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
2
by: Wayne Wengert | last post by:
I created a VB ASP.NET solution in VSNET 2003. It works fine in the IDE. As per the instructions, I used Project/Copy Project to make a copy of all required files (I used the FrontPage option). I...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: KronicDeth | last post by:
I have a package of python modules deployed on an NFS mount on my network that I use for sysadmin tools. Since some of the machines use different versions of python I've only put the .py files in...
3
by: DR | last post by:
I set my database to trustworthy and deployed this clr stored proc as unsafe ok but when i run this it returns 1 each time. as if ival keeps getting set back to 0 each time i call this clr stored...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.