“Exception has been thrown by the target of an invocation” error (mscorlib)

I’d suggest checking for an inner exception. If there isn’t one, check your logs for the exception that occurred immediately prior to this one. This isn’t a web-specific exception, I’ve also encountered it in desktop-app development. In short, what’s happening is that the thread receiving this exception is running some asynchronous code (via Invoke(), e.g.) … Read more

What does ‘IISReset’ do?

IISReset stops and restarts the entire web server (including non-ASP.NET apps)Recycling an app pool will only affect applications running in that app pool.Editing the web.config in a web application only affects that web application (recycles just that app).Editing the machine.config on the machine will recycle all app pools running. IIS will monitor the /bin directory … Read more

What does ‘IISReset’ do?

IISReset stops and restarts the entire web server (including non-ASP.NET apps)Recycling an app pool will only affect applications running in that app pool.Editing the web.config in a web application only affects that web application (recycles just that app).Editing the machine.config on the machine will recycle all app pools running. IIS will monitor the /bin directory … Read more

Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net

These path components are shortcuts with specific meanings: . means the current path level (so if you’re on index.aspx and you reference ./style.css then the latter would have to be in the same folder as the former) .. means one path level up (so if you’re on /somefolder/index.aspx and you reference ../style.css then the latter would have to be in the parent folder of someFolder) / means the root … Read more

Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express

I get this all the time ONLY in Chrome and I have to clear browsing data to fix it. Wrench > Tools > Clear Browsing Data Check the following: Clear browsing history Clear download history Empty the cache Delete cookies and other site data Then click “Clear Browsing Data” button and refresh your page. UPDATE:I … Read more

The wait operation timed out. ASP

If you found the exact error “The wait operation timed out” then it is likely you have a database call that took longer than expected. This could be due to any number of things: Transient network problem High SQL server load Problem with SAN, RAID, or storage device Deadlock or other form of multiprocess contention … Read more

The wait operation timed out. ASP

If you found the exact error “The wait operation timed out” then it is likely you have a database call that took longer than expected. This could be due to any number of things: Transient network problem High SQL server load Problem with SAN, RAID, or storage device Deadlock or other form of multiprocess contention … Read more