Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 17th, 2012, 04:16 PM
Authorized User
Points: 224, Level: 4
Points: 224, Level: 4 Points: 224, Level: 4 Points: 224, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old April 18th, 2012, 01:50 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
  #3 (permalink)  
Old April 18th, 2012, 01:57 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
  #4 (permalink)  
Old April 20th, 2012, 01:49 AM
Authorized User
Points: 224, Level: 4
Points: 224, Level: 4 Points: 224, Level: 4 Points: 224, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.