Tagged: asp.net

3

Why Does Server.GetLastError() Return NULL

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...

59

VirtualPathProvider In Precompiled Web Sites

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...

4

HTTP/1.1 500 Internal Server Error

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ı:

0

Resource dosyasından resim gösterme

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.