One of my .cshtml pages is blank or white when running application on line and off line

One of my ASP.NET core project .cshtml files that is under the Views folder but in another folder besides the Home folder when running the application is white or blank. I then rerun the page and the I get a 404 error. This issue started after I figured out how to get the localhost to be added to a serviceWorker js file and a appsetting JSON file so that the application can be ran offline. I have been searching for a fix online but I have not come across a fix. Please help.
I can show my code if requested.
newjeep19Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Leonidas DosasCommented:
Check the spelling and the paths to be correct. Also check for .aspx at the end or vice versa.
See this link Difference Between | Descriptive Analysis and Comparisons
0
newjeep19Author Commented:
The navigaton to the page is an action link (see code below) form the index.cshlml page.

Code:
 <li> @Html.ActionLink("FRATEditor", "FRATEditor", "FRAT")</li>

Open in new window


the appsetting.json code is below for the routesToPreCahce: (the FRATEditor is under the Views folder then under the FRAT folder
 "routesToPreCache": "/Home/Contact, /Home/About, /Home/Index, /Home/_Layout, /FRAT/FRATEditor, /images/PRISM ARMOR.jpg, /images/Icon@2x_sm.png, /images/ssa-ops---green.jpg, /Scripts/sw.js",

Open in new window


Then the serviceWorker js code is below:
self.addEventListener("install", function (event) {
    console.log('WORKER: install event in progress.');
    event.waitUntil(
        caches
            .then(function (cache) {
                /* After the cache is opened, we can fill it with the offline fundamentals.
                   The method below will add all resources we've indicated to the cache,
                   after making HTTP requests for each of them.
                */
                return cache.addAll([
                    '/Home',
                    '/FRAT',
                    '/_Layout.cshtml',
                    '/Index.cshtml',
                    '/FRATEditor',
                    '/Scripts/app.js',
                    '/images/PRISM ARMOR.jpg',
                    '/images/Icon@2x_sm.png',
                    '/images/ssa-ops---green.jpg',
                    '/offline.html'
                ]);
            })
            .then(function () {
                console.log('WORKER: install completed');
            })
    );
});

Open in new window

0
newjeep19Author Commented:
Fixed the issue. I did not have my Controller .cs for the FRAT. Added the controller and now the page is able to be viewed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newjeep19Author Commented:
Simple over look on my behalf
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.