Comments (3)
assigning this issue to release 1.3.1
Original comment by [email protected]
on 17 Aug 2008 at 5:20
- Added labels: Milestone-Release1.3.1
from aspnetserve.
After long investigation, I see no easy way to _properly_ remove the GAC
dependency.
So, for the time being, I am putting this ticket on hold.
As a interim solution checkout:
http://jason.whitehorn.ws/2008/08/24/aspNETserve+Without+GAC+Install.aspx
Original comment by [email protected]
on 24 Sep 2008 at 2:47
- Changed state: OnHold
- Removed labels: Milestone-Release1.3.1
from aspnetserve.
To get around the GAC, see the hack used by the latest Cassini drop:
http://blogs.msdn.com/dmitryr/archive/2008/10/03/cassini-for-framework-3-5.aspx
In particular, check out CreateWorkerAppDomainWithHost in Server.cs. Here's the
bit
which may help you as well:
/*
********************************************************************************
**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* This source code is subject to terms and conditions of the Microsoft Public
* License (Ms-PL). A copy of the license can be found in the license.htm file
* included in this distribution.
*
* You must not remove this notice, or any other, from this software.
*
*
********************************************************************************
**/
static object CreateWorkerAppDomainWithHost(string virtualPath, string
physicalPath,
Type hostType) {
// this creates worker app domain in a way that host doesn't need to be in GAC
or bin
// using BuildManagerHost via private reflection
var uniqueAppString = string.Concat(virtualPath, physicalPath).ToLowerInvariant
();
var appId = (uniqueAppString.GetHashCode()).ToString("x",
CultureInfo.InvariantCulture);
// create BuildManagerHost in the worker app domain
var appManager = ApplicationManager.GetApplicationManager();
var buildManagerHostType = typeof(HttpRuntime).Assembly.GetType
("System.Web.Compilation.BuildManagerHost");
var buildManagerHost = appManager.CreateObject(appId, buildManagerHostType,
virtualPath, physicalPath, false);
// call BuildManagerHost.RegisterAssembly to make Host type loadable in the
worker app domain
buildManagerHostType.InvokeMember(
"RegisterAssembly",
BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.NonPublic,
null,
buildManagerHost,
new object[] { hostType.Assembly.FullName, hostType.Assembly.Location });
// create Host in the worker app domain
return appManager.CreateObject(appId, hostType, virtualPath, physicalPath,
false);
}
Original comment by azizatif
on 21 Nov 2008 at 12:44
from aspnetserve.
Related Issues (16)
- HTTP Persistent Connections Unsupported HOT 3
- Limited Support for "Web Application" Projects HOT 1
- Server Authentication Modes HOT 3
- MIME Types For Static Content HOT 2
- Why a new webserver? HOT 1
- AspNetWork.GetProtocol() Is Unimplemented HOT 2
- HTTPS Support HOT 1
- Name Based Virtual Hosting HOT 1
- Windows Service Server HOT 4
- Packaging Abilities HOT 9
- Empty responses with bigger files HOT 3
- Broken Under Windows XP HOT 2
- WebApplicationPackage does't extract zipfiles properly. HOT 1
- Saved pages don't load.
- Support for .NET 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetserve.