dnn:label Not a Known Element - dotnetnuke

I'm going through some DNN tutorials and in one tutorial, for Edit.ascx the author says to add:
<%# Register TagPrefix="dnn" TagName="label" Src="~/controls/LabelControl.ascx" %>
so that <dnn:label ID="lblName" runat="server" /> can be used. However, VS2013 gives a warning for dnn:label saying that "Element 'label' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing." I've tried to view other DNN source and I also get the same warning so I presume it has to be a setup issue. I made sure that the properties in my project are configured to:
Start URL: http://dnndev.me/
Servers: Local IIS Project Url: http://dnndev.me/desktopmodules/myproject
Override application root URL: http://dnndev.me
The LabelControl.ascx file is indeed located at ~/controls/LabelControl.ascx and the web.config file isn't missing from the root directory at dnndev.me.
Does anyone know why I am getting such a warning?

It is just a warning. My templates get that warning in pretty much all instances.
You can ignore it.

Related

Why is json files not accessible after build?

I have a project in react that works on the computer excellently.
But after I do build and upload it to the server all the json files in the public folder get a 404 error (even when I try to access them directly and click on the url I get the same error.)
But the icon and png files from the same folder do appear.
Another problem (which is probably also related) is that when I go through the link pages on the site it goes great. But if I type them directly in the url I get a 404 error message
I tried to add to json
"homepage": ".", "
But even that did not help.
Anyone have an idea?
edit:
the json works .. I had to change the settings of the mime types according to the instructions: https: //docs.plesk.com/en-US/obsidian/administrator-guide/website-management/websites-and-domains/extended- website-management / using-virtual-directories-windows / adding-and-removing-mime-types.65216 /
But I was still left with the problem that when I go directly to the url address it makes me an error page (when the project is on the local host, it works fine!)
Regards,

Angular - Failed to load module script:

I have angular 8 front end application in production and its Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
This issue is happening only in production build that too not always , able reproduce only sometimes.
main-es2015.fcc7123d15fd9c113b00.js:1
vendor-es2015.d8d7d81cc2b06ece8c91.js:1
How do i fix it.?
Are you using serviceWorker?
If so you have to add inside angular.json "serviceWorker": true for the configuration that you are using.
I would like to share my experience with the same issue I was facing in the organization where I'm working.
I had an Angular 9 application and when I deployed to Stage environment, I got three errors in my console which showed as "module not loaded due to Mime type". This was working fine in all other environment and after much struggle, it was found that the files under the website were not having access. E.g. When you deploy an Angular application, you will get index.html file and many other js files. The website had permission issues. The site was hosted in the Rackspace and the FireWall was not configured to have access to the files right under the website.
Once the below access was provided, the app started working.
/assets*
/*.css
/*.js
/*.ico
/*.html
The only difference I see with your problem is that you have mentioned it is working sometimes.
There is another post Blocked because of a disallowed MIME type (“text/html”) : Angular 8 deployed on tomcat 9.0.30 fails to serve the assets try the solution based on base reference as those js files are not served/loaded
I hope this might help someone.

angular js path returns 404 error when https is used

Please keep in mind, I have not worked with angular JS, nor did I write the code that is causing the error.
I am getting an 404 error on this path:
https://www.helivalues.com/Su6UsWuf/bb/option/mfg/all
but not this path:
http://www.helivalues.com/Su6UsWuf/bb/option/mfg/all
It was noticed that when a user views a certain page in https, the drop down does not load options. Angular Js makes a call to the path mention above which is not an actually file but is used by a php file that based on this path, has a switch that fills in the drop down.
Any ideas on how to get the https version to work? This is on a joomla site and I do have access to the htaccess file if needed. I really just need it to work for a few months while I work on building a new site.
Thanks!
Angularjs is not the issue. Your webserver (Apache/2.2.15 (SuSE) Server at www.helivalues.com Port 443) states the file can not be found. So it looks like something is misconfigured with your apache site.

Ionic Visual Studio 2015 template get 'Angular is undefined' error when trying to start in debug for Windows

I am just starting to look at the Visual Studio tools for Cordova, and the Ionic template.
Build and debugging (F5) for Android and IOS (using the ripple emulator) seems to work fine, however, I cannot get this to work for Windows. I am using VS 2015, on a Windows 8.1 machine.
For Windows (any CPU and 64 bit) I get a problem with the MSVSMON.exe, but this I will ask in a separate post.
So, I try and run as x86, and I get the following errors (local device)
SCRIPT5009: Unhandled exception at line 8, column 1 in
ms-appx://io.cordova.myappe2785d518e9f4f6ea03055878dd7a400/www/js/app.js
0x800a1391 - JavaScript runtime error: 'angular' is undefined
app.js (8,1)
HTML1300: Navigation occurred.
index.html
APPHOST9601: Can't load <http://code.ionicframework.com/1.0.0-rc.5/css/ionic.css>. An application can't load remote web content in the
local context.
index.html
APPHOST9601: Can't load <http://code.ionicframework.com/1.0.0-rc.5/js/ionic.bundle.min.js>. An application can't load remote web content in the local context.
index.html
SCRIPT5009: Unhandled exception at line 1, column 1 in ms-appx://io.cordova.myappe2785d518e9f4f6ea03055878dd7a400/www/js/controllers.js
0x800a1391 - JavaScript runtime error: 'angular' is undefined
controllers.js (1,1)
Anybody have any ideas why this doesn't work?
Thanks in advance
First go to http://code.ionicframework.com
Download the latest zip (currently ionic-1.1.1) ... extract it somewhere then copy the contents of the ionic-1.1.1\release folder to the www of the project.
Then in the index.html of the project replace ionic.css and ionic.bundle.min.js with the ones from the files you copied.
The last step is to download winstore-jscompat and add a refrence to the top of index.html
That's it (u may not need all the files from the \release of the zip)
Starting index.html
index.html after

Joomla 3x Homepage 404 & configuration file error

I've started getting a 404 error on my homepage, yet I can still access the admin area.
Another issue I'm having (which I'm guessing is related) is that I cannot save any changes to the 'Global configuration' page and I get this message when I click save:
'An error has occurred.
0 Could not write to the configuration file'
The configuration.php file permission is set to 0644
This is the website URL: http://www.asgdesign.eu
Any help would be appreciated!
Thanks
1. htaccess
Check the .htaccess file, if you have one in the root folder of your website. If there are no obvious issues, try backing up .htaccess and copying the default htaccess.txt file to .htaccess to see if this helps.
2. SEF
Temporarily disable any third party SEF extensions that are installed.
3. Cache
Try clearing and purging the cache to ensure you are viewing the latest version of the website.

Resources