Umbraco v6. The SurfaceController methods were working, now they're not. The only thing that I did was clean the project/solution, and rebuild. None of the post methods are hitting. It seems like Umbraco routing is somehow messed up???
After hitting submit button, I receive this error:
There is not current PublishedContentRequest, it must be initialized before the RenderRouteHandler executes
I've added breakpoints on all the methods in the SurfaceController (there are other forms as well), and none are hit.
As you did a clean of your solution your bin folder has been emptied. If you installed any packages through the package installer the dll's of these packages would be removed as well.
You can see what packages you have installed in the developer section. See if you have missing dll's of these packages.
I fixed it, but I'll explain what happened, even though I don't understand WHY it happened.
I created a SurfaceController w/ about 10 forms posting to it. I have a "Reset Password" functionality that emails a member w/ an encrypted string. This link that contains the encrypted string goes back to my website.
So my forms were rending correctly, but when it would post to the AccountSurfaceController, nothing was coming through.
Basically my question now is, why if I created a route that takes a totally different URL to the AccountSurfaceController, why does it crap out on all other form posts?
SurfaceController Routing Error
Umbraco v6. The SurfaceController methods were working, now they're not. The only thing that I did was clean the project/solution, and rebuild. None of the post methods are hitting. It seems like Umbraco routing is somehow messed up???
After hitting submit button, I receive this error:
There is not current PublishedContentRequest, it must be initialized before the RenderRouteHandler executes
I've added breakpoints on all the methods in the SurfaceController (there are other forms as well), and none are hit.
For example: Login
/Views/Login.cshtml
/Views/Account/Login.cshtml
Controller
Hi Rob,
As you did a clean of your solution your bin folder has been emptied. If you installed any packages through the package installer the dll's of these packages would be removed as well.
You can see what packages you have installed in the developer section. See if you have missing dll's of these packages.
Dave
I fixed it, but I'll explain what happened, even though I don't understand WHY it happened.
I created a SurfaceController w/ about 10 forms posting to it. I have a "Reset Password" functionality that emails a member w/ an encrypted string. This link that contains the encrypted string goes back to my website.
For example:
www.website.com/reset/HEWWEjsdflwerwerIEYRWRWEKnnzbnafsa
I then hooked into Umbraco's
ApplicationStarted
event, and created aRouteConfig
class,RouteConfig Class
You can see in the above method, that the controller is NOW
ForgotPassword
. I used to have it asAccountSurface
.So my forms were rending correctly, but when it would post to the
AccountSurfaceController
, nothing was coming through.Basically my question now is, why if I created a route that takes a totally different URL to the AccountSurfaceController, why does it crap out on all other form posts?
Anybody?
The first issue is resolved, b/c I had custom routes. Going off of why this is an issue,
why if I created a route that takes a totally different URL to the AccountSurfaceController, why does it crap out on all other form posts?
is working on a reply...