Is ASP.NET multithreaded (how does it execute requests)
This might be a bit of a silly question but;
This might be a bit of a silly question but;
I am implementing a web based chat platform in ASP.NET Web Application, and I use technique similar to long polling. I mean I keep each web request from client for a specific time period(timeout) or until new message arrives, and then response is sent to the client.
I built a website for a client and they would like a custom newsletter tool. Building the tool was easy, but I’m not sure how to send the email.
Hai guys,
I have some problems on a site with the concurrent access to a list. This list keeps a cart of items, and multiple deletes are crashing the site.
Which is the best method to sync them?
Is a lock enough?
The lock option seems to be ugly because the code is spread all over the place and is pretty messy.
I’m seeing some null reference issue when developing some ASP.Net application. The exception is as this below:
I’m using a library that relies on HttpContext.Current. The library is Facebook C# SDK, but my question should apply in other scenarios as well. I’d like to use this library from inside of a parallel thread. However, HttpContext.Current is not available in the parallel thread, so I’m thinking about caching it to a local variable and then setting it in the parallel thread like this:
I have a file which is an XML representation of some data that is taken from a Web service and cached locally within a Web Application. The idea being is that this data is very static, but just might change. So I have set it up to cache to a file, and stuck a monitor against it to check if it has been deleted. Once deleted, the file will be refreshed from its source and rebuilt.
I have simple ASP.NET application which just resizes images with ImageResizer and does nothing else. For testing purposes I disabled disk caching, so images are resized on every request.