[IronPython] IronPython for asp.net and codefiles

Jimmy Schementi Jimmy.Schementi at microsoft.com
Tue Apr 6 08:20:02 CEST 2010

No, currently the caching isn't customizable, but the caching is just the compiled code; the output of the HTML page is not cached at all by the DLR integration, so authentication should work just fine.

From: Dody Gunawinata [mailto:empirebuilder at gmail.com]
Sent: Wednesday, March 24, 2010 1:09 PM
To: Jimmy Schementi
Cc: Discussion of IronPython; pablodalma93 at hotmail.com
Subject: Re: [IronPython] IronPython for asp.net and codefiles

Is there any way to control the when IP for ASP.Net does the caching?

I have been using VirtualPathProvider to serve IP ascx/aspx code on demand but I have to disable the caching  completely via public override CacheDependency GetCacheDependency because I need to server different codes depending on authentication.
On Sun, Mar 21, 2010 at 10:33 PM, Jimmy Schementi <Jimmy.Schementi at microsoft.com<mailto:Jimmy.Schementi at microsoft.com>> wrote:
Pablo, what is the reason you are looking into obfuscation? Is it because you're concerned that people could make requests for your *.aspx.py files and see the Python source? By default any request for a *.aspx.py file should fail because that file extensions is not in the MIME type map on IIS. That should be enough for any obfuscation you need.

Note that C#/VB "obfuscation" through compiling to DLLs isn't really obfuscation either; if you had access to the DLL you could get all the source code. However, IIS by default refuses access to the "bin" directory. So, the methods of hiding source code are essentially the same between static and dynamic languages; refuse access to the actual source files.

Quick note on compiled modules: Microsoft.Web.Scripting.dll caches compiled Python modules, so on the first visit to an ASPX page that uses IronPython it compiles the code-behind .aspx.py file in memory, and subsequent visits reuses the compiled file. The Python file is only re-compiled if it's changed between requests.


From: users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com> [mailto:users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com>] On Behalf Of Dody Gunawinata
Sent: Sunday, March 21, 2010 1:49 AM
To: Discussion of IronPython
Subject: Re: [IronPython] IronPython for asp.net<http://asp.net> and codefiles

If you want to hide your logic from the source, move as much of the functionality to a dll, whether it is a static or ironpython dll. I don't think IronPython for ASP.Net supports compilable asp.net<http://asp.net>.
On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo <pablodalma93 at hotmail.com<mailto:pablodalma93 at hotmail.com>> wrote:
Hi there,

now I got to work the dlls and I did a small app. which turns my asp.net<http://asp.net> .py codefile into 2 pieces, a .py codefile which makes only functions calls to a dll with the actual logic code. But I was wondering why IronPython for asp.net<http://asp.net> was designed without having in mind to allow the .aspx files to be tied with dlls for the sourcecode, for allowing obfuscation just like it's possible to make in VB.NET<http://VB.NET> or C#. Or may be it just wasnt easy at all to do that for IronPython? Is the technical explanation too complicated or may I know about it? Is there information about this somewhere?

Greetins, Pablo

Tu Hotmail guarda el borrador que estás escribiendo para que no pierdas tu mensaje. Conocé cómo<http://www.descubrewindowslive.com/hotmail/actualizacion-guardado.asp>

Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100406/3248b8a8/attachment.html>

More information about the Ironpython-users mailing list