Appdomain Recycle Settings On Mod_mono & Apache?
Apr 30, 2010
How does one control the application recycle settings for an ASP.NET application runnin on mod_mono & Apache ?
On IIS6 & 7 there was an option to specify either a time period, a number of requests, etc. when the AppDomain would be recycled and the application would basically do an Application_End() / Application_Start().
I am seeing the same behaviour on mod_mono & Apache ,but I can't find where to change the settings.
View 2 Replies
Similar Messages:
Dec 14, 2010
I have a CentOS 5.x server running Mono 2.8.1 and mod_mono 2.8 with apache2.
Every time I deploy a site from visual studio 2010 to my server by ftp, and navigate to the site, I get a 404 not found error page.
Sites in other subdomains (virtual hosts) are not affected.
Performing a restart of httpd using /etc/init.d/httpd restart fixes the problem, and I can view my ASP site again. Obviously restarting the entire httpd process is less than adequate.
My guess is that this is similar to application domains in IIS. Is there a way to 'recycle' and app domain in mod_mono? Can I set this to happen on deployment?
View 2 Replies
Jan 19, 2010
We have many different clients, and each client can have multiple user accounts.Right now, we have user settings set up on the ASP project, and a WinForms application can see these settings, depending on which user logs into the winforms application. They are specific to the user. I want to make them specific to the client, so users can be in "groups" by their client, and all users in the group would see/update the same settings.
View 1 Replies
Feb 5, 2011
I am using xampp and I need to use ASPX to install an Stack Overflow clone on my localhost.I read there was an module for it but I can't download/install it and if avalable does it work on an Linux OS host?
View 1 Replies
Sep 26, 2010
What is this Error For? I repaired my Vs but this did not solve it.
My OS : Windows 7 64 bit home edition. Visual studio 2010 Ultimate. Does My question need more information?
View 3 Replies
Dec 22, 2010
I am writing a plugin architecture. My plugin dlls are located in a sub directory from where the plugin manager is running. I am loading the plugins into a separate AppDomain as the following:
string subDir;//initialized to the path of the module's directory.
AppDomainSetup setup = new AppDomainSetup();
setup.PrivateBinPath = subDir;
setup.ApplicationBase = subDir;
AppDomain newDomain= AppDomain.CreateDomain(subDir, null, setup);
byte[] file = File.ReadAllBytes(dllPath);//dll path is a dll inside subDir
newDomain.Load(file);
However. newDomain.Load returns an assembly which the currently domain attempts to load. Because the plugin dlls are in a sub directory, the current domain cannot and should not see these dlls and the current domain throws a FileLoadException"ex = {"Could not load file or assembly ... or one of its dependencies."
The question is, can we load an assembly into a separate AppDomain without it returning the loaded assembly?
I know I can add a handler for the AssemblyResolve event in the current domain and return a null, but I would prefer to not to go this route.
View 1 Replies
Feb 4, 2011
It's my understanding that if you want to use the WCF-Ninject extension, it assumes that you are hosting your WCF services in their own AppDomain.
I'm already using the Ninject.Web extension and asp.net compatibility mode to get at the Membership Provider and Session.
Is there a way utilize my Ninject with my WCF services that are hosted in the same AppDomain as my Web Application?
View 1 Replies
Oct 30, 2010
In my ASP.NET app, I'm attempting to add another directory to be have the DLLs in it shadow copied.
The only method I found that will allow m to do this is AppDomain.CurrentDomain.SetShadowCopyPath.
However, this method is marked as Obsolete. MSDN has this to say about it
SetShadowCopyPath(String path) Message: AppDomain.SetShadowCopyPath has been deprecated. investigate the use of AppDomainSetup.ShadowCopyDirectories instead.
However, the AppDomainSetup.ShadowCopyDirectories property doesn't seem to change whenever I set a value to it.
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories = "mydirectory;bin"; string test = AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories; // returns bin, which was the original directory
Is there a reason that it won't change and is there a work around?
View 1 Replies
Dec 8, 2010
I have installed Webmatrix on Windows 7 and it's working well. I want to use WebMatrix ASP.NET on Apache.How do I run WebMatrix on Apache?
View 2 Replies
Feb 3, 2010
I would like to reset/clear an item in the Cache, but without resetting the application or writing a specialized page just for this. ie, a non-programmatic solution.
View 3 Replies
Jan 20, 2010
I have an asp.net web application that allows users to upload files to an 'uploads' directory that is located in the same virtual directory as the web app. Each uploaded file goes into a temporary sub directory that is named after the user's session id. Once I'm finished with the files, I delete the temp sub directory. The only problem is that when a sub directory is deleted, the AppDomain gets recycled and kills all user sessions (using inproc session state). The culprit appears to be a FileChangesMonitor that watches for changes in all sub directories in the application.
The following code works great in IIS 6.0 running on Windows Server 2003 to disable the FileChangesMonitor for sub directories, but for some reason it's not working in IIS 7.0 on Windows Server 2008:
System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
object o = p.GetValue(null, null);
System.Reflection.FieldInfo f = o.GetType().GetField("_dirMonSubdirs", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.IgnoreCase);
object monitor = f.GetValue(o);
System.Reflection.MethodInfo m = monitor.GetType().GetMethod("StopMonitoring", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
m.Invoke(monitor, new object[] { });
I found another solution that disables the FileChangesMonitor altogether here. But this is not the ideal solution as I still want to monitor all other files except for the temp sub directories in the 'uploads' directory. Why does this work in IIS 6.0 and not in IIS 7.0? In IIS 7.0 can you specify sub directories in a virtual folder you want to disable recycling on? Is there another way to do this without using reflection?
View 2 Replies
Jul 30, 2010
Maxima.exe is a Computer Algebra System built as a native code rather than a managed code. MyService works as a socket server, it will instantiate a new process of Maxima for each browser submitting mathematics expression to Web Server. I cannot use AppDomain here because Maxima is a native code. However I want security policies provided by AppDomain such as restriction to write data on file system.My question is, how can I get the AppDomain-like security policies when I instantiate Maxima in a process rather than in an AppDomain?
View 1 Replies
Mar 2, 2011
I am creating a sandbox AppDomain so I can load up an assembly and release it.
var sandbox = AppDomain.CreateDomain("Sandbox", null,
AppDomain.CurrentDomain.SetupInformation);
However when I Load an assembly into to sandbox, the debugger crashes. I am in ASP.NET.
var assemblyName = AssemblyName.GetAssemblyName(assemblyPath);
var assembly = pluginDomain.Load(assemblyName); // crash here
View 1 Replies
Feb 24, 2011
i want to run asp.net website on apache server instead of IIS.i googled a lot, but din get satisfactory answers.i only came to know that we can use something called 'mono' - third party api for doing this.i want to knw some basic things like do we need to install .net framework on that server?what if its a unix server?
View 3 Replies
Mar 9, 2011
I understood, that I need to use mod_aspdotnet, but I can't find this module for ASP.Net(4.0) - only for 2.0.
View 3 Replies
Jun 27, 2010
I have heard of the pains of setting up IIS. On a windows box, can I simply drop a ASP.NET application into Apache server and have it work? Or are there any other server alternatives? I am relatively new to web server concepts. I have heard suggestions for the server in mono but it doesn't seem practical using mono on a windows box, I could use a Linux box with mono, which wouldn't surprise me if it worked better then a windows solution, but for arguments sake this question is directed towards a windows box.
View 2 Replies
Nov 15, 2010
does scheduled recycling an application pool affects HttpContext.Application / Cache? I can't find reference for that.I guess yes, as it causes worker process to restart, I want to make sure. I'm talking about iis 6.0 (w3wp.exe).
View 3 Replies
Mar 4, 2010
I'm trying to develop a web application that dispatch (Dispatcher) to multiple versions of another webapp on a per-request basis. To to that end, I'm using ApplicationManager.CreateObject to create new AppDomains running the web app in question, but the new app domains seem to be failing to load the Dispatcher's DLL (and I'm copying the DLL over to the web app's bin directory, so I'm pretty sure it's there).
[code]....
The Appbase seems to be pointing at the root of the development server, rather than the path passed in to ApplicationManager.CreateObject and it only seems to be searching directories under the development server which seems strange. how to make the new AppDomain search for the DLL in the web app's root rather than under the development server?
View 1 Replies
Jun 18, 2010
I have developed website using .NET 2.0 and I am trying to host the same on IIS 5.1. It works on my machine where I am domain user with all the administrator rights on my machine. I can access the website from other machine on the network using IP address of my machine in URL
But it fails when I am trying to host on my clients machine. Here is the list of errors I get.
I already tried using
1. iisreset
2. aspnet_iis -i
Here is the list of the errors that I get
[Code]....
View 2 Replies
Apr 24, 2010
am new with asp.net and experiencing a problem in confguring asp.net with apache...scenario:today i created just a test website using asp.net in visual studio 2008. i am not able to open the index.aspx with apache. First I installed the mod_aspdotnet for apache and then configured the httpd.conf to point to index.aspx but when i tried http://localhost ..... it generated some kinda error.i just wana ask how am i suppose to configure apache to open index.aspx????
View 4 Replies
Mar 17, 2010
how can build the aplication in apache?, I upload all the file but appear this error:
Index of /
cgi-bin/
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.distribucionesoriol.net Port 80
View 2 Replies
Jul 14, 2010
I wrote an ASP.NET application and am running it on apache with mod mono. I get this error when trying to run it. It runs fine in Visual Studio and Mono Develop
Compilation Error
Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.
Compiler Error Message: App_GlobalResources.383ec40d.resources.dll
I have resx files in App_GlobalResources. Not sure why I am getting this.
View 1 Replies
May 27, 2010
Is it possible to read the GUID from the Assembly without actually loading it in the current App Domain. Normally Assembly.Load loads the DLL into the app domain. I just want to read the value. The description of the GUID is
'The following GUID is for the ID of the typelib
' if this project is exposed to COM
<Assembly: Guid("DEDDE61CD-928E-4ACD-8C25-3B8577284819")>
The main thing is I don't want to lock the file so that there are no errors 'Another process is accessing the file' error.
View 6 Replies
Oct 1, 2010
I am trying to develop a plugin architecture in .Net. The application will be a .Net application. There will be directories which holds the plug-ins. Each directory will represent a plugin. Each plugin directory will also contain all the dependency dlls as well. The plugins need to be stored in separate AppDomain as the plugins may use the same assemblies, but different versions. As it iterates through the foreach loop in Init(), I get a System.IO.FileNotFoundException : Could not load file or assembly '[Assembly Name], Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.in _apDomain.Load() for assemblies that are not in the main project.
readonly private AppDomain _appDomain;
internal ItemModuleAppDomain()
{
AppDomainSetup info = AppDomain.CurrentDomain.SetupInformation;
_appDomain = AppDomain.CreateDomain("ChildDomain");
}
public void Init(string dllDir)
{
string[] dlls = Directory.GetFiles(dllDir, "*.dll", SearchOption.TopDirectoryOnly);
foreach(string dll in dlls)
{
_appDomain.Load(AssemblyName.GetAssemblyName(dll));
}
View 1 Replies
Jan 5, 2011
I am developing an ASP.NET Web Service and a PHP Web site consuming the Web Service. They are meant to be run on different machines. However, only for development purposes, I need to run both on my machine. I cannot use virtual machines.
I would like to know if it is possible to configure IIS Apache to host both my Web Service and my Web site? Or, do I need to host the PHP site using Apache?
I am using
IIS 7.5 Apache HTTP Server 2.2 (NOTE: I have nothing against Apache. In fact, so far I like it more than IIS, however, I would rather not have two Web server applications installed in the same machine.)m PHP 5.3.4
.NET Framework 2.0 3.0 or 3.5 (whichever comes with Visual Studio 2008)mod_aspdotnet for Apache 2.2
View 4 Replies