Thursday, March 22, 2012

newcomer help

I'm working on a project in ASP.NET with a lot of VB behind it. When itis finished, we would like to be able to sell the product to othercompanies but we do not want all of our code visible for them to modifyor use for their own. Therefore, is there some way I can compile any ofif into a DLL or EXE or something like that? I'm not exactly sure howto do it or what my options are, but it needs to:
- Still be completely functional with database querying
- Fully working with no loss of functionality

Also, if this is possible, will I have to still have the source codewith it? Any help in protecting this for me would be most appreciated.
Thanks,
Andrew

With ASP.NET you don't have to deploy the code on the web server. Only the dlls inside the bin folder is required.


Thank you for your reply... the only problem is, I have absolutely no clue what you are talking about.
I truly am a newcomer with this and I pretty much need to be babied through it.
putting your codebehind files on the server will work - they will be compiled when you request the asp.net page.
If you want to protect your code, then the best thing to do is to compile them (into a DLL)
If you use Visial Studio, when you run your application, VS.NET willmake your codebehind pages into a DLL and place it in the BIN folder atthe root of your application foler.
To move it to a production server, you copy the BIN folder and your ASPX pages and plonk them on the server.
Job done.
If you are hand coding the pages, then you'll need to use the command line and compile them before placing them on the server.
e.g
on the command line you'd do this to compile:
C:\Inetpub\wwwroot\WebApplication>csc.exe /nologo /target:library /out:bin/Webapplication.dll *.cs
have a look at the article
http://www.thecodeproject.com/aspnet/devaspoutvs.asp
hope it helps you out a little.

also visit this thread --> http://forums.asp.net/974687/ShowPost.aspx

0 comments:

Post a Comment