Hi there,
I've realised that since June the aspnet-zero project had so many changes that would be easier to recreate the "playground" project from scratch. After downloading a new project again I've had the following issues:
Project compiled but doesn't run with the error: "Could not load file or assembly 'System.Web.Mvc, Version=5.1.0.0..."
To fix this I had to comment the following entry in the web.config
and add
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
After solving this problem I get the following error message in a window: Unhandled exception at line 716, column 5 in <a class="postlink" href="http://localhost:6240/AbpScripts/GetScripts">http://localhost:6240/AbpScripts/GetScripts</a> 0x800a138f - JavaScript runtime error: Unable to get property 'antiForgery' of undefined or null reference
I can "break" or press "continue" the code execution but if I press "continue" I'm unable to login and I get the following error: "An Error has occurred! Error detail not sent by the server."
Any suggestion?
4 Answer(s)
-
0
I was able to sort one error but I'm still blocked by the first one.
The error "An Error has occurred! Error detail not sent by the server." was related to the fact that I was trying to use the previous database. After creating a new database and running the code migrations I was able to login, but the "reset password" that we get after the first login for the admin failed. Please see the attached file.
This is related with the error: Unhandled exception at line 716, column 5 in <a class="postlink" href="http://localhost:6240/AbpScripts/GetScripts">http://localhost:6240/AbpScripts/GetScripts</a> 0x800a138f - JavaScript runtime error: Unable to get property 'antiForgery' of undefined or null reference
Side note: It's being very hard to develop an web app and maintain the aspnet-zero code updated with the fixes and the new features. Fortunately this is just a test app but I don't see how can I maintain this in a real live environment. I would love to be able to do it in a more straightforward way since I really like your project. I may be missing something.
-
0
Hi,
For the "System.Web.Mvc" redirect, I fixed it after you reported. Thanks (see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/340">https://github.com/aspnetzero/aspnet-zero/issues/340</a>).
For the "Unable to get property 'antiForgery' of undefined or null reference" problem, your browser probably cached the old script. Disable browser's javascript cache during development. Otherwise, you may skipped to upgrade Abp.Web.Resources nuget package. Because this is a new feature of ABP: automatic CSRF protection, which is very valuable for your application.
For ASP.NET Zero upgrading, I had written an explanation: #1073
-
0
Thank you for the fix
You were right about the browser cache :)
And thanks for the link to the topics. That's exactly what I was talking about. I will read them and do some testing in order to also create a "instructions manual" for the developers.
-
0
I downloaded the project today and still got the same error"System.Web.Mvc, Version=5.1.0.0" and had to scratch my head for a while. I've downloaded the project several times and never had this problem before. so I thought the problem is with my visual studio(today I updated to 2015 sp3 and other tools too!).
It would be great if we don't see an error before change a code.
Thanks ;)