Domanda

I'm trying to make use of piranha CMS. The manager works fine, but here's what I get when trying to view a page

enter image description here

What can be wrong ? where can I look for issues ? (I updated all the packages, pulled in latest piranha from nuget "Install-Package PiranhaCMSMvc"

Use VS2013, and a empty project template My web config http://1drv.ms/1gkxD44

Here's my Route's. It did Add an extra file with piranha routes instead of overwriting it. But the code was identical. So I moved it from there to the default Route file

enter image description here

È stato utile?

Soluzione

Can you post your routing config... I would think your issue is routing. Comparing my web.config and yours, I notice a few differences... You are targeting 4.5.1 and mine is set to framework 4.5. I also had to set a binding redirect for razor, although maybe this wasn't an issue for you.

  <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages.Razor"
        publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.3.0.0" newVersion="1.3.0.0" />
  </dependentAssembly>

I think it's worthy of comparison because I have a fresh installation with nothing added by me using the nuget package.

All of that being said, I would look to the routing as it appears it is not redirecting to the home controller. When you run the installation it should have asked you if it could rewrite your routing file. Did you allow it to do so?

Edit: See my updated comments and example project.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top