-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MVC module in 404 page causes system to crash on startup #4363
Comments
Glad to find that bug report. Was searching for several days what could cause one of our web site to crash sometime. I was sure it has something to do with 404 page, as the web site was replacing an older one and thus having a lot of 404 due to existing links. But did not find the link to MVC module. Will change the page in the meantime to avoid these crashes. Thanks. |
We have detected this issue has not had any activity during the last 90 days. That could mean this issue is no longer relevant and/or nobody has found the necessary time to address the issue. We are trying to keep the list of open issues limited to those issues that are relevant to the majority and to close the ones that have become 'stale' (inactive). If no further activity is detected within the next 14 days, the issue will be closed automatically. |
this is also an issue for us. Is there going to be a fix for this? |
We have detected this issue has not had any activity during the last 90 days. That could mean this issue is no longer relevant and/or nobody has found the necessary time to address the issue. We are trying to keep the list of open issues limited to those issues that are relevant to the majority and to close the ones that have become 'stale' (inactive). If no further activity is detected within the next 14 days, the issue will be closed automatically. |
This issue has been closed automatically due to inactivity (as mentioned 14 days ago). Feel free to re-open the issue if you believe it is still relevant. |
Did someone check a newer version? Is this bug still unresolved? It's quite complicated to explain customers that the mvc modules we wrote can't be used in the 404 error page. |
Description of bug
If you add an MVC module in the 404 page it will not work and will cause all mvc modules to not load if the first hit to the site is to a non existing page.
Affected versions
Steps to reproduce
List the precise steps to reproduce the bug:
Error information
On step 4 shown above, it is recorded in the log one exception:
Module Load Exception
Message:An error occurred when trying to create a controller of type 'Dnn.ContactList.Mvc.Controllers.ContactController'. Make sure that the controller has a parameterless public constructor.
StackTrace:
InnerMessage:
An error occurred when trying to create a controller of type 'Dnn.ContactList.Mvc.Controllers.ContactController'. Make sure that the controller has a parameterless public constructor.
InnerStackTrace:
If you restart the server and the first requests hits the not found page (example above) the MVC system breaks and all mvc modules in any page stop working.
In this case, the system registers the following error when loading the MVC modules. It seams that the startup breaks and some context is not successfully created, that breaks the MVC system.
This is resolved by manually restarting the server and hitting a page that exists.
Message:IServiceScope not provided
StackTrace:
InnerMessage:IServiceScope not provided
InnerStackTrace:
Help is appreciated. Thanks!!
The text was updated successfully, but these errors were encountered: