Re: WebAppication project doesn't like separate codefiles
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Mon, 4 Aug 2008 22:17:51 -0400
re:
!> App_Code is no less secure than the bin directory
I'll take a strong exception to that...
re:
!> I don't put any of my code there myself
Why ?
re:
!> So far I have found the code that starts off in App_Code
!> migrates to the bin once it has been established.
Sure, it does, but your source code also stays in App_Code
where any two-bit programmer in your organization can see it.
I prefer to not upload source code...and obfuscate my assemblies.
Ymmv...
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/
======================================
"Anthony Jones" <Ant@xxxxxxxxxxxxxxxx> wrote in message news:eRkqNZn9IHA.3544@xxxxxxxxxxxxxxxxxxxxxxx
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:O%238CC$K9IHA.4088@xxxxxxxxxxxxxxxxxxxxxxx
re:security viewpoint.
!> i was just curious about this App_Code thing but as you can imagine,
!> I'm not impressed at all by that functionality..
Quite frankly, I'm not too impressed with it, either, primarily from a
Uploading raw code to a server isn't a very secure approach toprogramming.
aspx-file,
Also, there's no problems like the one you're encountering.
re:
!> I can only use my product-class when using it in inline script in the
!> so why come up then with the idea of code-behind in the first place?command-line,
I've evolved a personal preference which skirts the issues :
I compile assemblies with my helper classes ( my DAL layer ) from the
and place the resulting assembly in the /bin directory.(DAL).
It's quite easy then to import my namespace with
<%@ Import Namespace="DataObjects" %>
...and instantiating the SQLDATA class is uncomplicated with :
Dim RS as New SQLDATA()
It works 100% of the time with no fuss.
I'd recommend ( depending on your time availability )
you dump what you're doing now...and create your own Data Access Layer
quickly :
Here's two pages with sample code which will help you get that done
http://msdn.microsoft.com/en-us/library/aa581778.aspx
http://weblogs.asp.net/scottgu/archive/2006/01/15/435498.aspx
Can't say I've ever seen these problems myself. App_Code has always worked
IMO experience and thats across quite a number of clients. Unless you are
being really fussy with strong names etc being App_Code is no less secure
than the bin directory. I don't put any of my code there myself but
customers use it. Its easy and 'fudgeable' (there is no need to build dlls
to make a minor tweak).
So far I have found the code that starts off in App_Code migrates to the bin
once it has been established.
--
Anthony Jones - MVP ASP/ASP.NET
.
- Follow-Ups:
- Re: WebAppication project doesn't like separate codefiles
- From: Anthony Jones
- Re: WebAppication project doesn't like separate codefiles
- References:
- WebAppication project doesn't like separate codefiles
- From: cmrchs
- Re: WebAppication project doesn't like separate codefiles
- From: Cowboy \(Gregory A. Beamer\)
- Re: WebAppication project doesn't like separate codefiles
- From: cmrchs
- Re: WebAppication project doesn't like separate codefiles
- From: Juan T. Llibre
- Re: WebAppication project doesn't like separate codefiles
- From: cmrchs
- Re: WebAppication project doesn't like separate codefiles
- From: Juan T. Llibre
- Re: WebAppication project doesn't like separate codefiles
- From: Mark Rae [MVP]
- Re: WebAppication project doesn't like separate codefiles
- From: cmrchs
- Re: WebAppication project doesn't like separate codefiles
- From: Juan T. Llibre
- Re: WebAppication project doesn't like separate codefiles
- From: Anthony Jones
- WebAppication project doesn't like separate codefiles
- Prev by Date: Re: asp 64bit question
- Next by Date: Detecting user leaving page
- Previous by thread: Re: WebAppication project doesn't like separate codefiles
- Next by thread: Re: WebAppication project doesn't like separate codefiles
- Index(es):
Relevant Pages
|