Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to call or debug the controllers which has inherited the Surface controllers?
For e.g. http://localhost:12345/BlogSurface controller unable to call or debug when this url gets hit in browser.
Hi Dhruv,
take a look at this in the docs:
https://our.umbraco.org/documentation/reference/routing/surface-controllers#routing-for-locally-declared-controllers
Here you will see the url for locally routed surface controllers, or here:
https://our.umbraco.org/documentation/reference/routing/surface-controllers#routing-for-plugin-based-controllers
For plugin based surface controllers.
For debugging, if you use Visual Studio, you have an option to apply brakepoints in your solution where you would like to start debugging.
Hope this helps.
/Michaël
any news on this? Did you managed to solve the issue?
Can you report this back to the forum?
Thanks!
No, pls explain in detail as i am unable to call that particular controller. Also give its demo code.
Hi,
Have a look at the docs for surface controllers : https://our.umbraco.org/documentation/reference/routing/surface-controllers#routing-for-locally-declared-controllers
Surface controllers are auto routed. So they do not use a normal MVC route.
To hit your controller action directly from the browser ;
/umbraco/surface/blogsurface/{actionName}
Be aware that by doing this you don't have a umbraco content item and the culture will always be the culture of your server.
Dave
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Debug or calling of controllers of Surface controllers
How to call or debug the controllers which has inherited the Surface controllers?
For e.g. http://localhost:12345/BlogSurface controller unable to call or debug when this url gets hit in browser.
Hi Dhruv,
take a look at this in the docs:
https://our.umbraco.org/documentation/reference/routing/surface-controllers#routing-for-locally-declared-controllers
Here you will see the url for locally routed surface controllers, or here:
https://our.umbraco.org/documentation/reference/routing/surface-controllers#routing-for-plugin-based-controllers
For plugin based surface controllers.
For debugging, if you use Visual Studio, you have an option to apply brakepoints in your solution where you would like to start debugging.
Hope this helps.
/Michaël
Hi Dhruv,
any news on this? Did you managed to solve the issue?
Can you report this back to the forum?
Thanks!
/Michaël
No, pls explain in detail as i am unable to call that particular controller. Also give its demo code.
Hi,
Have a look at the docs for surface controllers : https://our.umbraco.org/documentation/reference/routing/surface-controllers#routing-for-locally-declared-controllers
Surface controllers are auto routed. So they do not use a normal MVC route.
To hit your controller action directly from the browser ;
Be aware that by doing this you don't have a umbraco content item and the culture will always be the culture of your server.
Dave
is working on a reply...