Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: FormatException in Blog

$
0
0
Hi!

I managed to debug the blog project and found out what was causing the error. It was obviously myself who was responsible for the error.
However I don´t really see the link between my change and the error very clear. I will try to explain.

In BlogFacade.cs, line 151, the code is trying to parse pathInfoParts[3] into a day integer.
int day = Int32.Parse(pathInfoParts[3]);
This is were the error accurs due to the pathInfoParts[3] containing the text "MicGusRacingLogo.png".

In the MasterLayout.cshtml I have added a image into the navbar isstead of the site name
<a class="brand" href="/"><img src="../MicGusRacingLogo.png"  alt="MicGus Racing"/></a>
and this is clearly causing the problem.

Why is this a problem?
How should I have done it?

Thank you!
/Niclas

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>