Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2012, 04:16 PM
Authorized User
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default Compiled /Bin files

Hi,

got another question. in the past, I set up project using Web Application Project. After going through almost the your entire book, I discovered that Profile is not supported under Web Application Project; ergo, my latest project, I am using Web Site Project.

In the past, when I went live, I simply copied the files using FTP.

Post-live, when I made code changes, instead of copying all the files again, I was able to simply copy the .dll and .pdb files in the /bin directory. However, and I'm not sure if this is because I'm using Web Site project, I do not see my project dll and pdb files in the /bin directory. Therefore, whenever I make code behind changes to one file, I have to upload ALL the files again because I don't know where the .dll and .pdb files are.

Does the Web Site Project hide the .dll and .pdb files or should I be able to see them easily?

***

A related question regarding deployment is:

What files do I need to send over? Once the project is compiled/built on my local/dev machine, I do not need to send the aspx.cs files, right? I only need to send the .aspx and dlls, for the most part, right? Furthermore, this is better so that NO one can see my original code files, unless they did some sophisticated reverse engineering.

Is there an easy way to separate these files so that I can just copy over the files that I need? Right now, I don't see a way other than to go to production after coping the files, then deleting the .aspx.cs files individually ... there must be a better way, is there?

thanks ...

- nano
 
Old April 18th, 2012, 01:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

With a Web Site Project, code is compiled and assemblies are created on the fly on the very first request. So, you can simply upload your .aspx files and .cs / .vb code behind files to the server and they will be compiled into DLLs when you make a request. This works on a folder by folder basis so you don't need to upload the entire site; just the files that changed.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old April 18th, 2012, 01:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

BTW:

Quote:
A related question regarding deployment is:
Are you talking about a Web Site Project or a Web Application Project? In the latter case, all you need are the ASPX files (and other resources), as all code is indeed compiled into assemblies. E.g. no need to deploy .cs files).

In the former case you do need to copy them to the server, unless you "precompile" the site. To do this, right-click the site in the Solution Explorer and choose Publish. Then optionally uncheck "Allow this precompiled site to be updateable" if you also want to compile the markup into the assemblies.

Notice that once you publish that, you can no longer simply FTP and changed Code Behind file.

Quote:
unless they did some sophisticated reverse engineering.
Code files cannot be requested from the server, so you're safe. If people have access to the server, they can also look at your DLL files and reverse engineer your code which is extremely simple: http://www.reflector.net/ and requires no sophisticated knowledge....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old April 20th, 2012, 01:49 AM
Authorized User
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default

Imar,

It was all kind of foggy ... I remember bit parts of what you said ... thanks for the clarification ...

- nano





Similar Threads
Thread Thread Starter Forum Replies Last Post
Inspect properties of files in recycle bin andrewafresh VBScript 0 January 28th, 2012 07:15 PM
compiled phuc2583 ASP.NET 2.0 Professional 1 March 24th, 2008 11:10 PM
create recycle bin abaso.jadhav01 ASP.NET 2.0 Basics 3 December 11th, 2006 04:51 PM
msiloadr.bin is spyware???? nfollmer Intro Programming 0 February 3rd, 2006 03:42 PM
It compiled, but- - - craign924 BOOK: Beginning Java 2 1 August 19th, 2005 07:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.