Code Monkey home page Code Monkey logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I like the idea. I had kicked around a similar idea, but instead of zip files I 
was
considering embedding resources like .JPEG, etc, into a deployable DLL.

Although your idea of zip files, sounds like it would be cleaner. Plus I am not 
sure
how well a .NET assembly would behave with hundreds of embedded web resources, 
which
can get quit large.

I am not exactly sure how to implement this, as it is the ASP.NET components 
built
into .NET that are accessing the physical .aspx (and other resources) on disk.
Perhaps with a little work that is a piece of functionality that can be 
overridden
with some custom logic.

Original comment by [email protected] on 15 Jul 2008 at 7:09

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
[deleted comment]

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
[deleted comment]

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
It appears that this may actually be easier than I feared. The 
System.Web.Hosting
namespace has a concept of a VirtualPathProvider that may lend itself nicely 
for this
task. 

To register a VirtualPathProvider see
http://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.re
gistervirtualpathprovider.aspx

Original comment by [email protected] on 15 Jul 2008 at 8:52

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
The only issue I see is:

You cannot store ASP.NET application folders or files that generate application-
level assemblies in a virtual file system. This includes:

- The Global.asax file.

- Web.config files.

- Site map data files used by the XmlSiteMapProvider.

- Directories that contain application assemblies or that generate application 
assemblies: Bin, App_Code, App_GlobalResources, any App_LocalResources.

- The application data folder, App_Data.


Original comment by david.g.hoyt on 15 Jul 2008 at 11:08

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Yeah,

so it sounds like that idea wasn't as good as I had hoped... but what do you 
think of
this:

You create your "WAR" archive of the site as you had proposed, point 
aspNETserve to
that as the site's physical root and start the service. Behind the scenes the 
server
extracts the archive to a temporary directory and actually uses that as the
application root.

Additionally a FileWatcherMonitor could monitor the WAR file to changes, and 
restart
the app pool if any changes occur, for much the same reasoning that modifying 
the
web.config would normally make such an event occur.

Additionally since this is sounding very doable (one way or another), I am going
ahead and assigning this to release 1.3.

Original comment by [email protected] on 16 Jul 2008 at 2:12

  • Added labels: Milestone-Release1.3

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
To me, it's more a problem of being able to package everything into one file. 
With 
the VirtualPathProvider, I still have to keep some files separate.

You might be able to do it by first creating another app domain, unzipping the 
config file to a temp dir, setting the configuration file, and then loading the 
site 
inside of it. This would also allow you to support hosting multiple sites as 
well 
and redeploying as neeeded.

For the assemblies, just setup an assembly resolver that will search and then 
load 
assemblies from the zip file.

Anything that needs to be compiled could be read and compiled into the temp dir 
and 
then use the assembly resolver to load it when needed.

Original comment by david.g.hoyt on 16 Jul 2008 at 8:03

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I completely understand where you are coming from on this one. I am going to 
tackle
this in the manor you were suggesting in your last comment, about unzipping to 
a temp
directory.

I am changing the status of this task to started to reflect the fact that I am
correctly working on this issue.

I will keep you updated as things progress.

Original comment by [email protected] on 18 Jul 2008 at 3:25

  • Changed state: Started

from aspnetserve.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
The initial support for Web Application Packages (WAP), as I have called them, 
has
now been completed. In its initial state there is a WebApplicationPackage class 
in
the aspNETserve namespace that can be used to consume WAPs in custom code.
Additionally the SimpleWebServer sample has been updated to support WAPs.

I have also created a wiki page describing WAPs in more detail, located @
http://code.google.com/p/aspnetserve/wiki/WebApplicationPackages

Original comment by [email protected] on 17 Aug 2008 at 5:00

  • Changed state: Fixed

from aspnetserve.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.