Reputation: 93
I was given a project for maintenance, it is built on DNN 9.1.1
and has some custom modules (I am completely new to DNN
). I needed to create a new module, so I used the christoc project templates for VS2017
. So even before I could develop anything, I rebuilt the solution and it gave me a DNN
Error. I removed the project from the solution, but while it compiles correctly, it still gives the same error.
Has anyone ever got this error? Do you think the module are being written to the database and if so, how can I delete it?
I'm posting the errors in the log but it doesn't make sense to me, because no files are missing
DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: The file '/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx' does not exist. ---> System.Web.HttpParseException: The file '/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx' does not exist. ---> System.Web.HttpException: The file '/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx' does not exist.
Thanks in advance for your help.
Upvotes: 2
Views: 1046
Reputation: 93
I found that this is a common error. Funny how it was so hard to find on google. I leave the link here https://www.christoc.com/Tutorials/All-Tutorials/aid/12, and urge everyone with template errors to refer to this site.
In plain, the solution is this:
Upvotes: 4
Reputation: 3330
Does the .ascx
control exist in the correct path?
'/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx'
Maybe you have created an extra subfolder. try like this:
'/DesktopModules/GFIPortugal/GoogleSearch.ascx'
When you add a new module via Visual Studio unselect the option to create a folder for your project/solution (bottom right of the Add New Project wizard).
Also, check the .dnn
file to adjust the mappings of your resources.
Upvotes: 1