473,397 Members | 1,974 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,397 software developers and data experts.

Source code for web applications

Max
Is it possible for an ASP.net server (like IIS 6) to run web application
without having available the code behind forms in clear ascii? Can I provide
a compiled product to the customer, not an exe file of course, but some dll
compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my source
code 2.customer is afraid of their internal security...

Thanks
Max

Jun 27 '08 #1
8 1280
On 8 May, 20:14, "Max" <mmwrote:
Is it possible for an ASP.net server (like IIS 6) to run web application
without having available the code behind forms in clear ascii? Can I provide
a compiled product to the customer, not an exe file of course, but some dll
compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my source
code 2.customer is afraid of their internal security...

Thanks
Max
DLL files that reside in the bin directory of the site are not
compiled by the server. They are precompiled on the development
machine using Visual Studio. VS2005 and later have a Publish option
which does this. So the answer is yes you can deploy them pre-
compiled. Make sure that they are in release form not debug which can
lay them open to reverse engineering.

If you are worried about security its worth reading the Microsoft
documentation for guidance on best practices. Beware that some files,
e.g. web.config have to remain in pain text (XML formatted) so avoid
any sensitive stuff there (e.g. use encryption for passwords).

Having said that, there is no need to worry unduly about source code
file or other plain text system file content being freely available to
anyone browsing the site. It isn't. It requires local administrative
access to the web server or special hacking tools for remote access to
get into them. IIS won't touch them.

HTH
Jun 27 '08 #2
"Max" <mmwrote in message
news:48***********************@reader1.news.tin.it ...
Is it possible for an ASP.net server (like IIS 6) to run web application
without having available the code behind forms in clear ascii? Can I
provide a compiled product to the customer, not an exe file of course, but
some dll compiled by my server ?
This is one of the many features of Web Deployment Projects:
http://weblogs.asp.net/scottgu/archi...-released.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #3
Hi,

if you develop ASP.NET application with Visual Studio and using web
application project model, you essentially deploy markup files e.g aspx
(ascx,asmx etc) and dll files to the server, and there's no need to deploy
the code-behind files. Idea is that code-behind is compiled to the dll, and
therefore isn't viewable so directly (to add: you can also obfuscate dlls).

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Max" <mmwrote in message
news:48***********************@reader1.news.tin.it ...
Is it possible for an ASP.net server (like IIS 6) to run web application
without having available the code behind forms in clear ascii? Can I
provide a compiled product to the customer, not an exe file of course, but
some dll compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my source
code 2.customer is afraid of their internal security...

Thanks
Max

Jun 27 '08 #4
Max
Understand that Express version doesn't offer this option. have looked for a
"deploy" or "publish" option but in vain, while Enterprise or Pro seem to
have it, afa I can read.
MS gave us a gift, but without the red staple.
Max
"Teemu Keiski" <jo****@aspalliance.comha scritto nel messaggio
news:O1**************@TK2MSFTNGP05.phx.gbl...
Hi,

if you develop ASP.NET application with Visual Studio and using web
application project model, you essentially deploy markup files e.g aspx
(ascx,asmx etc) and dll files to the server, and there's no need to deploy
the code-behind files. Idea is that code-behind is compiled to the dll,
and therefore isn't viewable so directly (to add: you can also obfuscate
dlls).

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Max" <mmwrote in message
news:48***********************@reader1.news.tin.it ...
>Is it possible for an ASP.net server (like IIS 6) to run web application
without having available the code behind forms in clear ascii? Can I
provide a compiled product to the customer, not an exe file of course,
but some dll compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my source
code 2.customer is afraid of their internal security...

Thanks
Max


Jun 27 '08 #5
re:
!Understand that Express version doesn't offer this option. have looked for a
!"deploy" or "publish" option but in vain, while Enterprise or Pro seem to
!have it, afa I can read. MS gave us a gift, but without the red staple.

ASP.NET comes with the tools to compile any .NET code that you
write regardless of the development environment that you prefer to work in.

Sample batch file :

set frmwk=Drive:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727
set src=Drive:\vwdsite
set dest=Drive:\vwdsite\compiled
del /F /Q Drive:\vwdsite\compiled\*.*
%frmwk%\aspnet_compiler -v /vwdsite -p %src% %dest% -c

Just substitute your actual boot drive letter anywhere "Drive" appears in the batch file.
After you compile, just upload all the files in Drive:\vwdsite\compiled

Also, you can modify VWD's menu so you can automate
batch compiling your VWD-developed applications.

See this article for the details on how to do that :
http://safari.oreilly.com/9780789736659/ch03lev1sec2

More background info on this process is found at :
http://www.informit.com/articles/article.aspx?p=1073232

As you can see, your gift isn't maimed.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Max" <mmwrote in message news:48***********************@reader1.news.tin.it ...
Understand that Express version doesn't offer this option. have looked for a "deploy" or "publish" option but in vain,
while Enterprise or Pro seem to have it, afa I can read.
MS gave us a gift, but without the red staple.
Max
"Teemu Keiski" <jo****@aspalliance.comha scritto nel messaggio news:O1**************@TK2MSFTNGP05.phx.gbl...
>Hi,

if you develop ASP.NET application with Visual Studio and using web application project model, you essentially deploy
markup files e.g aspx (ascx,asmx etc) and dll files to the server, and there's no need to deploy the code-behind
files. Idea is that code-behind is compiled to the dll, and therefore isn't viewable so directly (to add: you can
also obfuscate dlls).

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Max" <mmwrote in message news:48***********************@reader1.news.tin.it ...
>>Is it possible for an ASP.net server (like IIS 6) to run web application without having available the code behind
forms in clear ascii? Can I provide a compiled product to the customer, not an exe file of course, but some dll
compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my source code 2.customer is afraid of their internal
security...

Thanks
Max




Jun 27 '08 #6
Max
Juan,
you really gave me a huge help. I was unable to find such information on the
web, and I searched a lot before posting.
I've tried, and with a syntax similar to yours, I was able to compile a
application and have a server running it (with web dev express 2005!)
Only one question, it seems necessary to have IIS running on the machine
where it is compiled. A virtual IIS directory is needed. I could not compile
in any way from a physical path to a physical path.
Is that true?

Thanks
Max

"Juan T. Llibre" <no***********@nowhere.comha scritto nel messaggio
news:e9**************@TK2MSFTNGP04.phx.gbl...
re:
!Understand that Express version doesn't offer this option. have looked
for a
!"deploy" or "publish" option but in vain, while Enterprise or Pro seem
to
!have it, afa I can read. MS gave us a gift, but without the red staple.

ASP.NET comes with the tools to compile any .NET code that you
write regardless of the development environment that you prefer to work
in.

Sample batch file :

set frmwk=Drive:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727
set src=Drive:\vwdsite
set dest=Drive:\vwdsite\compiled
del /F /Q Drive:\vwdsite\compiled\*.*
%frmwk%\aspnet_compiler -v /vwdsite -p %src% %dest% -c

Just substitute your actual boot drive letter anywhere "Drive" appears in
the batch file.
After you compile, just upload all the files in Drive:\vwdsite\compiled

Also, you can modify VWD's menu so you can automate
batch compiling your VWD-developed applications.

See this article for the details on how to do that :
http://safari.oreilly.com/9780789736659/ch03lev1sec2

More background info on this process is found at :
http://www.informit.com/articles/article.aspx?p=1073232

As you can see, your gift isn't maimed.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Max" <mmwrote in message
news:48***********************@reader1.news.tin.it ...
>Understand that Express version doesn't offer this option. have looked
for a "deploy" or "publish" option but in vain,
while Enterprise or Pro seem to have it, afa I can read.
MS gave us a gift, but without the red staple.
Max
"Teemu Keiski" <jo****@aspalliance.comha scritto nel messaggio
news:O1**************@TK2MSFTNGP05.phx.gbl...
>>Hi,

if you develop ASP.NET application with Visual Studio and using web
application project model, you essentially deploy
markup files e.g aspx (ascx,asmx etc) and dll files to the server, and
there's no need to deploy the code-behind
files. Idea is that code-behind is compiled to the dll, and therefore
isn't viewable so directly (to add: you can
also obfuscate dlls).

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Max" <mmwrote in message
news:48***********************@reader1.news.tin. it...
Is it possible for an ASP.net server (like IIS 6) to run web
application without having available the code behind
forms in clear ascii? Can I provide a compiled product to the customer,
not an exe file of course, but some dll
compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my
source code 2.customer is afraid of their internal
security...

Thanks
Max






Jun 27 '08 #7
Max
Correction.
I was able to compile the application from a physical path to another
physical path (C:\aaaa\ to C:\bbb\)
No IIS or virtual path involved. Really happy with that.
Gift is perfectly maimed, and now you can't look inside!!!!
Thanks again
"Max" <mmha scritto nel messaggio
news:48***********************@reader4.news.tin.it ...
Juan,
you really gave me a huge help. I was unable to find such information on
the web, and I searched a lot before posting.
I've tried, and with a syntax similar to yours, I was able to compile a
application and have a server running it (with web dev express 2005!)
Only one question, it seems necessary to have IIS running on the machine
where it is compiled. A virtual IIS directory is needed. I could not
compile in any way from a physical path to a physical path.
Is that true?

Thanks
Max

"Juan T. Llibre" <no***********@nowhere.comha scritto nel messaggio
news:e9**************@TK2MSFTNGP04.phx.gbl...
>re:
!Understand that Express version doesn't offer this option. have looked
for a
!"deploy" or "publish" option but in vain, while Enterprise or Pro seem
to
!have it, afa I can read. MS gave us a gift, but without the red
staple.

ASP.NET comes with the tools to compile any .NET code that you
write regardless of the development environment that you prefer to work
in.

Sample batch file :

set frmwk=Drive:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727
set src=Drive:\vwdsite
set dest=Drive:\vwdsite\compiled
del /F /Q Drive:\vwdsite\compiled\*.*
%frmwk%\aspnet_compiler -v /vwdsite -p %src% %dest% -c

Just substitute your actual boot drive letter anywhere "Drive" appears in
the batch file.
After you compile, just upload all the files in Drive:\vwdsite\compiled

Also, you can modify VWD's menu so you can automate
batch compiling your VWD-developed applications.

See this article for the details on how to do that :
http://safari.oreilly.com/9780789736659/ch03lev1sec2

More background info on this process is found at :
http://www.informit.com/articles/article.aspx?p=1073232

As you can see, your gift isn't maimed.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Max" <mmwrote in message
news:48***********************@reader1.news.tin.i t...
>>Understand that Express version doesn't offer this option. have looked
for a "deploy" or "publish" option but in vain,
while Enterprise or Pro seem to have it, afa I can read.
MS gave us a gift, but without the red staple.
Max
"Teemu Keiski" <jo****@aspalliance.comha scritto nel messaggio
news:O1**************@TK2MSFTNGP05.phx.gbl...
Hi,

if you develop ASP.NET application with Visual Studio and using web
application project model, you essentially deploy
markup files e.g aspx (ascx,asmx etc) and dll files to the server, and
there's no need to deploy the code-behind
files. Idea is that code-behind is compiled to the dll, and therefore
isn't viewable so directly (to add: you can
also obfuscate dlls).

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Max" <mmwrote in message
news:48***********************@reader1.news.tin .it...
Is it possible for an ASP.net server (like IIS 6) to run web
application without having available the code behind
forms in clear ascii? Can I provide a compiled product to the
customer, not an exe file of course, but some dll
compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my
source code 2.customer is afraid of their internal
security...
>
Thanks
Max
>
>
>





Jun 27 '08 #8
re:
!Really happy with that
!Thanks again

You're quite welcome, Max. It's great when obstacles can be removed.

I hope you get a zillion hits a day on your site... ;-)


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Max" <mmwrote in message news:48***********************@reader4.news.tin.it ...
Correction.
I was able to compile the application from a physical path to another physical path (C:\aaaa\ to C:\bbb\)
No IIS or virtual path involved. Really happy with that.
Gift is perfectly maimed, and now you can't look inside!!!!
Thanks again
"Max" <mmha scritto nel messaggio news:48***********************@reader4.news.tin.it ...
>Juan,
you really gave me a huge help. I was unable to find such information on the web, and I searched a lot before
posting.
I've tried, and with a syntax similar to yours, I was able to compile a application and have a server running it
(with web dev express 2005!)
Only one question, it seems necessary to have IIS running on the machine where it is compiled. A virtual IIS
directory is needed. I could not compile in any way from a physical path to a physical path.
Is that true?

Thanks
Max

"Juan T. Llibre" <no***********@nowhere.comha scritto nel messaggio news:e9**************@TK2MSFTNGP04.phx.gbl...
>>re:
!Understand that Express version doesn't offer this option. have looked for a
!"deploy" or "publish" option but in vain, while Enterprise or Pro seem to
!have it, afa I can read. MS gave us a gift, but without the red staple.

ASP.NET comes with the tools to compile any .NET code that you
write regardless of the development environment that you prefer to work in.

Sample batch file :

set frmwk=Drive:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727
set src=Drive:\vwdsite
set dest=Drive:\vwdsite\compiled
del /F /Q Drive:\vwdsite\compiled\*.*
%frmwk%\aspnet_compiler -v /vwdsite -p %src% %dest% -c

Just substitute your actual boot drive letter anywhere "Drive" appears in the batch file.
After you compile, just upload all the files in Drive:\vwdsite\compiled

Also, you can modify VWD's menu so you can automate
batch compiling your VWD-developed applications.

See this article for the details on how to do that :
http://safari.oreilly.com/9780789736659/ch03lev1sec2

More background info on this process is found at :
http://www.informit.com/articles/article.aspx?p=1073232

As you can see, your gift isn't maimed.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Max" <mmwrote in message news:48***********************@reader1.news.tin.it ...
Understand that Express version doesn't offer this option. have looked for a "deploy" or "publish" option but in
vain,
while Enterprise or Pro seem to have it, afa I can read.
MS gave us a gift, but without the red staple.
Max
"Teemu Keiski" <jo****@aspalliance.comha scritto nel messaggio news:O1**************@TK2MSFTNGP05.phx.gbl...
Hi,
>
if you develop ASP.NET application with Visual Studio and using web application project model, you essentially
deploy
markup files e.g aspx (ascx,asmx etc) and dll files to the server, and there's no need to deploy the code-behind
files. Idea is that code-behind is compiled to the dll, and therefore isn't viewable so directly (to add: you can
also obfuscate dlls).
>
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
>
>
>
"Max" <mmwrote in message news:48***********************@reader1.news.tin.it ...
>Is it possible for an ASP.net server (like IIS 6) to run web application without having available the code behind
>forms in clear ascii? Can I provide a compiled product to the customer, not an exe file of course, but some dll
>compiled by my server ?
>I'm asking that because 1. sometimes I am not happy to provide my source code 2.customer is afraid of their
>internal
>security...
>>
>Thanks
>Max
>>
>>
>>
>
>





Jun 27 '08 #9

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

Similar topics

17
by: /dev/null | last post by:
I have some php-based software that I'd like to make available to some businesses that run on my web server (apache on Linux). These businesses have full access to all their web files. I'd like...
0
by: Unigroup of New York | last post by:
Content-Type: multipart/mixed; boundary="------------C465DF38DCB38DD2AF7117E0" Lines: 327 Date: Tue, 15 Feb 2005 23:36:38 -0500 NNTP-Posting-Host: 24.46.113.251 X-Complaints-To: abuse@cv.net...
115
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i...
0
by: jackonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V9.50 is released (100% Source Code)! -------------------------------------------------------------------------------- Jan 1, 2005,HongKong,UCanCode...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
0
by: kellyonlyone | last post by:
E-XD++ MFC Library Professional Edition V9.20 is released (100% Source Code)! -------------------------------------------------------------------------------- February 18, 2006 For more...
0
by: kellyonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V9.80 is released (100% Source Code)! ("The only Flow/Diagramming Kits that provides full source code of components for MFC and ActiveX in a single package!")...
158
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends...
0
by: kellyonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V11.0 is released (100% MFC/C++ Source Code)! ("The only Flow/Diagramming Kits that provides full source code of components for MFC and ActiveX in a single...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
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...
0
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...
0
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...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.