| How to: Create Synchronous HTTP Handlers |
| hour ٢:٥۸ ب.ظ day ۱۳۸٧/۳/۸ |
|
This topic illustrates the code for an HTTP handler that performs synchronous processing of requests for resources in an ASP.NET application whose URL ends with .sample. The code example illustrates the following:
When users request a resource whose URL ends in .sample, the Web server forwards the request to ASP.NET. ASP.NET then calls the HTTP handler, which returns a response. The response is created dynamically by the handler; there is no need for a file with the file name extension .sample to exist. For more information about how ASP.NET interacts with the Web server, see ASP.NET Life Cycle. To create the custom HelloWorldHandler HTTP handler class
Registering a Custom HTTP HandlerAfter you have created the custom HTTP handler class, you must register it in the application's Web.config file. This allows ASP.NET to find the handler when ASP.NET receives requests made to resources whose URL ends with .sample. To register a custom HTTP handler in the Web.config file
Configuring IIS 6.0 for an HTTP Handler ExtensionIIS passes requests for only certain file types to ASP.NET to service. By default, files with file name extensions such as .aspx, .ascx, .asmx, are already mapped in IIS 6.0 to the ASP.NET ISAPI extension (Aspnet_isapi.dll). However, if you want ASP.NET to handle custom URL extensions, you must map the extensions in IIS. For more information, see ASP.NET Life Cycle. To map the .sample file name extension to ASP.NET in IIS 6.0
Testing the Custom HTTP HandlerAfter you have created and registered your custom HTTP handler, you can test it by requesting a resource that has a .sample file name extension. To test your custom HTTP handlerReference : MSDN |
|
| VS 2008 Web Development Hot-Fix Roll-Up Available |
| hour ۱:٤٢ ب.ظ day ۱۳۸٧/٢/۱٦ |
|
One of the things we are trying to do with VS 2008 is to more frequently release public patches that roll-up bug-fixes of commonly reported problems. Today we are shipping a hot-fix roll-up that addresses several issues that we've seen reported with VS 2008 and Visual Web Developer Express 2008 web scenarios. Hot Fix DetailsYou can download this hot-fix roll-up for free here (it is a 2.6MB download). Below is a list of the issues it fixes: HTML Source view performance
Design view performance
HTML editing
JavaScript editing
Web Site build performance
Installation NotesFor more information on how to download and install the above patch, please read this blog post here. In particular, if you are using Windows Vista with UAC enabled, make sure to extract the patch to a directory other than "c:\" (otherwise you'll see an access denied error). To verify that this hot-fix patch successfully installed, launch VS 2008 and select the Help->About menu item. Make sure that there is an entry that says ‘Hotfix for Microsoft Visual Studio Team System 2008 Team Suite – ENU (KB946581)’. If you ever want to remove the patch, go to Control Panel -> Add/Remove Programs and select “Hotfix for Microsoft Visual Studio 2008 – KB946581” under Microsoft Visual Studio 2008 (or Visual Web Developer Express 2008) and click “Remove". SummaryObviously it goes without saying that we would have liked to have shipped without any bugs. Hopefully this hot-fix enables you to quickly solve them if you are encountering them. Thank you to those who helped us identify the causes of these issues, as well as to the group of customers who have helped us verify the above fixes the last few weeks. Note: If you do encounter issues with VS 2008 features for web development in the future, I recommend always asking for help in the VS 2008 Forum on http://www.asp.net/. The VS Web Tools team actively monitors this forum and can provide help. Hope this helps, Reference : Download : https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=10826 |
|
| Unable to connect to Visual Studio's Localhost Web Server |
| hour ۱٢:۱٤ ب.ظ day ۱۳۸٧/٢/٥ |
|
Screwing up an installation is so easy! I realized it when I was working on an issue today and had to uninstall the .NET Framework (that's different story ;o). I used my Control Panel and uninstalled it, but I was not done yet! I wanted to wipe out all traces of .NET 2.0 from my box and I deleted the C:\WINNT\Microsoft.NET\Framework\v2.0.50727 folder. Then I simply re-installed it and found that everything was working fine except the projects which were being accessed through FileSystem. I was not able to debug those projects at all... Even a CTRL+F5 wouldn't work!!
Here is the error message which I got... --------------------------- Very soon, I found that there is a file called WebDev.WebServer.exe which was located in C:\WINNT\Microsoft.NET\Framework\v2.0.50727 folder and it was gone since I deleted the folder itself! Aahh... too late... But I was really happy when I found that when I copied the file WebDev.WebServer.exe from one of my colleague's box, it worked absolutely fine :o) And that just saved me a lot of time! I would have hated myself, if I had to re-install the VS 2005 just because of a simple mistake. The point to be noted here are... |
|
| Author |
| Archive |
| Last Posts |
| Categories |
| Links |
| SMS |
|
|
| Selective Feeds |
|
|
Note 

