Tags: , , , , | Categories: Hata, Web Uygulaması Posted by okutbay on 28.02.2014 08:46 | Yorumlar (0)

Nowadays, i'm working on my CMS project called Weblebici CMS. I aimed to create very simple and lightweight CMS web application. But this is not the subject of this article.

Last night i created a simple default template but later i began to see some weird exception on my log. It was weird because there was not any detailed information about the problem.

It was a "System.Web.HttpException" and message says. "File does not exist". But there is no info which file exists. First i thought i used a file type which static file handler cannot access. I checked the extensions and nothing seemed wrong to me. Later i decided to check html output of the page. I checked line by line, file by file... I found nothing on the first pass. In the second pass i noticed the error.

 There was a relative url like "~/a/b.ext" and i forget to use this value as a paramter for @Url.Content() method. It was easy to fix but hard to find :D

 

Bu yazıyı ilk değerlendiren siz olun

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , , | Categories: Tip Posted by okutbay on 12.11.2009 19:01 | Yorumlar (0)

if you are getting this exception "The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory' threw an exception." try to reference Microsoft.Practices.ObjectBuilder2.dll

Happy coding...

Bu yazıyı ilk değerlendiren siz olun

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5