C# - Unloading An Application Can Affect Another Running Application?
Oct 12, 2010Application domains allow applications to be unloaded separately. My question is how unloading an apllication can crash another application.
View 2 RepliesApplication domains allow applications to be unloaded separately. My question is how unloading an apllication can crash another application.
View 2 RepliesI am developing a site similar to forums. I allow users to Post articles and upload files regarding the articles. I am not storing the Attachments contents in DB instead i store only the path of the attachment file and store the actual file in physical folder in the Project directory. WHat i want to knw is if the size of the physical folder increase will it affect the performance of my application.
View 6 RepliesI am logged in as the administrator when I installed an application named pdflatex.exe on my server. This application works as a converter from LaTeX input file to Pdf file. I host an Asp.net MVC 3 application running under an Application Pool Identity with Load User Profile = True. The Asp.net MVC 3 code contains a code that executes pdflatex.exe using System.Diagnostic.Process instance as follows:
Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.StartInfo.Arguments = "-interaction=nonstopmode " + inputpath;
p.StartInfo.WorkingDirectory = @"c:mydomain.comworking";
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "pdflatex.exe";
p.Start();
p.WaitForExit();
From the scenario above, the web application runs under a restricted acount but it executes an external application under a default account that I don't know. Can an application running under a less privileged account start a process executing another application under an administrative account?
I have a need to run an application in classic mode for backwards compatibility with a specific application, and am trying to understand what kind of impact that will have on the performance of an MVC application that is running on the site. If we put a few static file maps (for .js, .css, .png, etc) above the ASP.NET wildcard map to reduce the amount of processing by the ASP.NET handler, will we be approaching the integrated mode in terms of performance?
The thing i'm primarily concerned with is any effect this might have on output caching. I understand that integrated mode might (?) allow for the output cache to handle non ASP.NET content, but that isn't really a concern. We're more interested in ensuring that the MVC application has full use of the output cache. Empirically i've found that the two configurations operate on par when things go well, but if the page references resources that are not available, the integrated mode tends to fail much more quickly than the classic mode (e.g. 500 ms vs 10 seconds), reducing 'hang time' on the page load.
Page A loads very fast; Page B loads very slowly and does some CPU-intensive things on the web server. I noticed that if someone is loading Page B, then Page A also loads slowly - for ALL users. What is the standard practice for making sure this doesn't happen? If multiple users are loading Page B at the same time then Page A is ridiculously slow. Is there an IIS setting, web.config setting, or hardware configuration I could use to make sure that the fast-loading pages aren't bogged down by other pages that need more time to load?
View 1 RepliesI created a simple .NET 4.0 WebSite through VisualStudio 2010 using the Installed Template for ASP.NET Web Site.This brought me to "Choose Location" where I chose Local IIS, then Create New Web Application.This created the template app with all of the local files within IIS.This complies fine, but Im constantly getting the HTTP 403 Error "the website declined to show this webpage"I checked IIS properties for this and its set to 4.0 and the Directory Security has Anonymous Access enabled. Allow IIS to control password is also checked.I just installed VS 2010 on my new computer, and Im trying to get this configured so I can run 4.0 apps through IIS.
View 2 RepliesI am getting below error while running the application
Exception in MS Oracle DAAB Method - GetDataSet : Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "DABResource.resources" was correctly embedded or linked into assembly "DBServices" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Exception in MS Oracle DAAB Method - GetDataSet : Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "DABResource.resources" was correctly embedded or linked into assembly "DBServices" at compile time, or that all the satellite assemblies required are loadable and fully signed.
I have an application in asp.net.I configured it in IIS.When i running this application in IIS i getting an error;
Server "/" error:
Resource Cannot be Found
Error:404
Some of pages only produce this issues.Other forms are working perfectly.Without running application in IIS Its working perfectly.
If any one can answer send the answer immediatly.
when i am trying to run the application i am getting error like this one The service.svc file has the following code.
<%@ ServiceHost Language="C#" Debug="true" Service="prodcuts.ProductServiceImpl" CodeBehind="~/App_Code/ProductsService.cs" %>
I have a ASP.NET web application running under IIS 6, and another process that is responsible to monitor and report status. I'd like to sample the web application by the monitoring process in order to check its status by accessing a dedicated handler on the web application, BUT i don't want to "wake up" the web application in case it is not running. Is there an option to determine whether a specific web application is currently running? if there is such an option, i would be able to first check if the application is running, and only then to access the handler to check its status.
View 6 RepliesWe have a running asp.net application which is accessed by various offices of the client worldwide (around 42 offices in 12 countries). Now after 8 months of hosting it we have to include updations in 6 pages and addition of 15 new asp.net pages. Now is there any way by which we could update the existing upside without taking it offline i.e. stopping it ?
View 4 RepliesI want to start using memcached in my ASP.NET application.
I think I need to set up a memcached server and then access it using a .NET specific client.
However I'm struggling to see how to set it up, where to find the exact downloads for .NET and so on
Is there a port of memcache to .Net? memcached - using with a C# asp.net application
Does anybody see any problem running an APS.Net 2.0 application on more than one browser windows at the same time concurrently? Users are accessing the application with IE and they do Control+N and access the same application in another windows and use both windows concurrently. Would there be any issue coming from session or anything such that I need to be concerned?
View 7 RepliesI have a web app that processes XML data. There are many steps, but to keep things simple, here are the relevant parts:
A PGP encrypted file is POSTED to my web site.I run a BATCH file to decrypt the PGP file. This batch file is run via System.Diagnostics.Process with WaitForExit set to TRUE (i.e. the decrypt process should complete before any else happens). The decrypted file is saved to a folder on my server as .XML.
Load the XML doc for processing via XmlTextReader.
I have extensive logs and ran across an exception I can't explain. While trying to load the decrypted data into XmlTextReader my app threw a System.IO.FileNotFoundException. My application is not multi threaded, so all steps should complete sequentially. I checked the timestamp of my logs when this System.IO.FileNotFoundException was encountered which as 3:00 AM. I then looked for the decrypted XML file the BATCH process should have created, and it does exist, but the file created time stamp is 3:05 AM. I can't understand why the file's created time is 3:05AM when my PGP decrypt BATCH process says it completed @ 3:00 AM.
i am trying to upload my applicaiton on IIS5.1 version.my application uses SQL server 2005 and Membership provider. everytime i create an virtual directory and run it ,it always says that login failed for user IUSR_TPN0150 .cannot open database emp.
how can i give access to annonymous users so that my login page is shown.
I want my .net2.0 webservice application to run on IIS7.0 under CLR4.0, Is this possible simply creating an apppool with Classic,.netframework 4.0 settings and pointing my app to this pool? I have tried this and it works fine, but want to confirm on right track?
View 2 Repliesi have created an application in asp.net with C# this application is running well when i run it from visual studio but when i deployed it on IIS for testing it is not working it gives me error that isThe control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.i have check complete project i did forget any thing and application is running wll but on iis it gave me above stated error any body can help me and one thing is that i install IIS after installing VS2008
View 1 RepliesI have a simple question but I still a bit confused after googling. The situation is like this. I have ASP.NET deployed in a Web Server, and had set to a Web Garden and IIS Worker Process is more than 1. So I would like to ask, is it all worker processes running under same Application Domain? Or can said Web Garden running under same Application Domain?
View 1 RepliesWe are trying to add a new page to a running web application. such that a new dll and aspx file are being added. I've setup break points in the code file and Built the application transfering the dll to the remote machine bin file and the aspx page to a folder within the web application. Note this folder is not in the same folder hierarchy as it built in. I'm not sure if thats the problem. Basically we are appending new functionality to a web application.I've copied the correct Remote Debug Monitor to the server and have it running.
View 1 RepliesAm running asp.net application with access database using gridview application..while running i got the run time error as Object reference not set to an instance of an object.
Line 41: RadioButtonList rblGender = (RadioButtonList)GridView1.Rows[e.RowIndex].FindControl("rbGenderEdit");
Line 42:DropDownList ddlStatus = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("ddlStatusEdit");
Line 43:SqlDataSource1.UpdateParameters["Sex"].DefaultValue = rblGender.SelectedValue;
Line 44:SqlDataSource1.UpdateParameters["MaritalStauts"].DefaultValue = ddlStatus.SelectedValue;
Line 45: }
I got this error specially in line 43.
There's a web app I've been assigned to, which is running very slow. It is a site that sells products so it is database driven, however even pages that do not query the database are loading very slow. The pages use master pages, and the code is in VB.NETI checked with fiddler and the time it takes to load basic (non database driven) pages are about 5.5 seconds on average.
What are some tools that can help me determine the cause of the slow speeds, and any recommendations as to how to speed it up, or potential issues that could cause it?UpdateSo I messed around with the code piece by piece as I wasn't getting anywhere with these tools. As soon as I remove master pages, and I include the same code that's on the master pages in the .aspx page itself, the speed improves drastically (approximately 5 times faster load times).What might cause the master pages to cause load times to slow down so much?
What are the alternatives to System.Diagnostics API for running external EXE or BAT files under IIS hosted web application?
I would like to run external EXE program from my ASP.NET-MVC web application. I don't need to wait till the program exits. I just want to start the program. The execution can take some time or it may crash, so I would like to run it separatelly from IIS in such a way that the web application only triggers its execution.
I have two systems (System A & System B) both are windows xp.
System A is 32 bit operating system with more Memory so I Installed Visual studio here.
System B is 16 bit with low memory and some peripheral(Finger Print Reader, Thermal Printer) attached.
Now I need to develop a application for System B. Peripherals are attached with system B Only so i need to debug the application which is running in system B. But I cannot install visual studio in system B. Now how can I do that?
I'm having trouble executing this line of code in my MVC application:
IntPtr hModule = LoadLibrary(BondProbeSettings.AssemblyFilePath);
The problem is that hModule is always 0.
If I run the same code with the same value for BondProbeSettings.AssemblyFilePath but from a console application instead of the MVC app hModule is non-zero.
Are there any security issues I need to consider?
The signature for LoadLibrary is:
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
static extern IntPtr LoadLibrary(string lpFileName);
How do I get an ICredential object within my web application?
I use Windows Authentication
I tried using the following code:
WindowsImpersonationContext securityContext =
Request.LogonUserIdentity.Impersonate();
After the last line of code both: CredentialCache.DefaultCredentials and CredentialCache.DefaultNetworkCredentials are still empty.
I know that the identity is right because the following property shows the right domainuser account I'm using:
Request.LogonUserIdentity.Name => "domainuser"
This is the authentication type of that object:
Request.LogonUserIdentity.AuthenticationType => "NTLM"