473,566 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1290
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.t in.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.t in.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****@aspalli ance.comha scritto nel messaggio
news:O1******** ******@TK2MSFTN GP05.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.t in.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:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727
set src=Drive:\vwds ite
set dest=Drive:\vwd site\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.t in.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****@aspalli ance.comha scritto nel messaggio news:O1******** ******@TK2MSFTN GP05.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.t in.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******** ******@TK2MSFTN GP04.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:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727
set src=Drive:\vwds ite
set dest=Drive:\vwd site\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.t in.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****@aspalli ance.comha scritto nel messaggio
news:O1******* *******@TK2MSFT NGP05.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
applicatio n 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.t in.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******** ******@TK2MSFTN GP04.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:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727
set src=Drive:\vwds ite
set dest=Drive:\vwd site\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****@aspalli ance.comha scritto nel messaggio
news:O1****** ********@TK2MSF TNGP05.phx.gbl. ..
Hi,

if you develop ASP.NET application with Visual Studio and using web
applicatio n 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.new s.tin.it...
Is it possible for an ASP.net server (like IIS 6) to run web
applicati on 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.t in.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.t in.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******** ******@TK2MSFTN GP04.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:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727
set src=Drive:\vwds ite
set dest=Drive:\vwd site\compiled
del /F /Q Drive:\vwdsite\ compiled\*.*
%frmwk%\aspne t_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.t in.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****@aspalli ance.comha scritto nel messaggio news:O1******** ******@TK2MSFTN GP05.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
AspInside r, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
>
>
>
"Max" <mmwrote in message news:48******** *************** @reader1.news.t in.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
2262
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 to set up my php code in such a way that their web sites could take advantage of the code without them being able to see or download the code. Is...
0
2111
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 X-Trace: fe12.lga 1108528794 24.46.113.251 (Tue, 15 Feb 2005 21:39:54 MST) NNTP-Posting-Date: Tue, 15 Feb 2005 21:39:54 MST Xref:...
115
14002
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 prefer a solution that (also) supports Windows. On the net I found a number of products that i looked at, but none of them gave me the impression...
0
1687
by: jackonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V9.50 is released (100% Source Code)! -------------------------------------------------------------------------------- Jan 1, 2005,HongKong,UCanCode Software announces it's market leading flow/diagram C++ source code kit - E-XD++ Enterprise Edition V9.50 with VS 2005 support among latest updates....
2
1710
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 Solution.sln includes a standard WindowsForms application for testing pourposes. What I need is an efficient and reliable way to edit and test the DLL...
0
1330
by: kellyonlyone | last post by:
E-XD++ MFC Library Professional Edition V9.20 is released (100% Source Code)! -------------------------------------------------------------------------------- February 18, 2006 For more information (press only) please contact: Paul Chi
0
1393
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!") -------------------------------------------------------------------------------- May 2, 2006 For more information (press only) please contact:...
158
6313
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 using a non open source tracker (called JIRA - never heard before of course) for Python itself. Does this smell "Bitkeeper fiasco" to anyone...
0
1200
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 package!") -------------------------------------------------------------------------------- http://www.ucancode.net/XDFeature/feature.htm
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.