January 16, 2008 at 17:43 · Tags: asp.net, workaround
If .NET Framework insist on not telling you what the exception was then you have to start checking Context.AllErrors.
I wanted to check what can be the reason to make GetLastError() method angry with myself and tried search engines to see what other people say about it. Most of the people keep writing that GetLastError method of Server object returns null if you want to call it inside a page’s load or in the error page that causes a redirection and makes you loose the Exception object.
Well, I really don’t try to implement a page specific error handling architecture. What I am doing is simply trying to access the last error within the Error event of the Context instance in my custom IHttpModule.
Read the rest of this entry »
January 9, 2008 at 15:25 · Tags: asp.net, virtualpathprovider, workaround
After finishing a project and deploying it on a public server, it is normal that you expect some problems or to-dos like some configuration changes in “web.config” file or somewhere else if you preferred implementing your own configuration architecture.
The question is that if you would expect something to break depending on your choice of deployment, e.g. Precompiled deployment or not. My answer was no until 3 days ago but it is a screaming “YES” for now.
What I am talking about is System.Web.Hosting.VirtualPathProvider class located in System.Web assembly. This class insists on not registering itself to the HostingEnvironment (System.Web.Hosting.HostingEnvironment) if you prefer deploying your website using precompilation.
Read the rest of this entry »
December 24, 2007 at 21:13 · Tags: asp.net, mvc
Microsoft ASP.NET 3.5 Extensions Preview hakkında oldukça işe yarar 2 makaleye eriştim. Sizlerle de paylaşmak isterim.
April 10, 2005 at 00:00 · Tags: asp.net, iis, visual studio
EÄŸer Visual Studio üzerinde bir web projesi açmak ya da oluÅŸturmak isterken, The web server reported the following error when attempting to create or open the web project located at the following URL: ‘http://localhost/projeIsmi’, ‘P/1.1 500 Internal Server Error’. ÅŸeklinde bir hata alıyorsanız, aÅŸağıdaki adımları takip etmeniz durumunda sorundan kurtulabilmeniz olası:
Read the rest of this entry »
February 14, 2005 at 00:00 · Tags: asp.net, resource files
Framework 2.0′da yarattığınız herhangi bir resource dosyanıza herhangi bir dosya eklemek için resgen aracını kullanmanıza gerek yok. Resx dosyanızı Visual Studio ile açmanız ve “Yeni resim ekle” seçeneÄŸini seçmeniz durumunda sizden direkt olarak eklemek istediÄŸiniz resmin yolunu istiyor.
Normal olarak resx dosyanıza attığınız bir dosyayı framework 2.0′da Resources.[ResxDosyasınınİsmi].[Dosyanınİsmi] ÅŸeklinde alabilmeniz mümkün.
Read the rest of this entry »
« Previous entries