I have an MVC application that renders fine locally but when deployed to Appharbor it renders only the view portion of the page and ignores the layout.
Any ideas on possible causes?
I've tried enabling/disabling precompilation.
So it turns out that the _ViewStart.cshtml file was no longer a part of the project. Since the physical file was still there, local debugging was picking it up and was running fine.
However, without it being a part of the build, when AppHarbor built the project it wasn't included causing all the views (without an explicit Layout) to render with Layout = null
Thanks everyone! facepalm
Related
I'm trying to build my first API under the Django framework. Everything works fine on the console after all the coding, except the web browser. it said TemplateDoesNotExist. added back Template DIR under setting.py, but still no luck. How can I fix this issue? Any advice?
I designed a website and after I published it and uploaded it to its design server it changes a bit .. (Most of it has not changed)
Some things that may be causing the problem-
I work with TARGET FRAMEWORK = .NET CORE 3.1
Part of the site is linked to a site.css file and it works fine and is also located with _layout
And the part that is causing me problems is linked to another Layout and another CSS file
I hope you can help me it's really frustrating
Best regards
Many thanks to Adam Vincent.
I had to insert the link to CSS into the
(Still it's causing me problems with the Directiorion: rtl but I believe I can fix it)
This has happened a few times already and it's pretty frustrating.
I make some changes to one of my Javascript files. Then I save the changes and proceed to test the build in IE.
All my changes are not reflected in the dynamic version of the file.
So far, I have fixed the problem by changing the file name and reincluding it in my bundle.
(The MS forums only tell me that I might be editing a wrong version of the file, which is not the case. See above.)
I am new to Windows so I figure there might be something I'm doing wrong...
Take a look at this solution: Force reload of JS and CSS files with ASP.NET MVC 3.
Recently i moved from netbeans 6.9 to Netbeans 7.2, while working on 6.9, i have handy functionality of after deployed my project if i do modifications in html or jsp pages i can see when i refresh the page in browser. But while using 7.2 it's not available, so each time i need to build, and deploy for changes get updated.
So i gotta few suggestions like
1)
Check->Compile on save in project properties
Uncheck->Deploy on save in project properties, but still it's not working.
Any idea what i have missed.
Thanks in advance.!
I must say this scenario works fine for me - I don't see any problem. What kind of project are you using - Ant-based or Maven-based? The best thing would be if you can file a P2 issue in the netbeans.org bug database, so we can investigate. Thank you.
This happened to me as well. I tried renaming the project to a new name not the project folder and re run. It worked for me. Try for yourself.
Nitin.
I want to work on intelliJ on my webapps and I don't know how to hot swap code while working.
For example while I was working in Eclipse when I edited jsp files Eclipse automatically, instantly swapped the file so when I refreshed the page my changes were there
When I change class code in Eclipse it worked a bit longer because he republished the app but did it automatically and instantly.
I saw that intelliJ in the runtime configuration has an option 'how class swap'. I did check it but nothing is happening. I had tried compile, make, save and everything else and nothing is happening. I had to reload the app and I had to do dis manually. Secondly intelliJ reloads EVERY application in my webapp directory. I have them a lot so it taking ages. how can I turn on hot swap?
Hotswap only works in debug mode. So you need to connect to your webserver through a debug configuration. Then, after compile either the project or at least the class with the modifications, IntelliJ tries to hotswap that class.
This only works for minor changes. For example, creating new methods on the fly is not possible using this way.
Hotswap works with exploded artifacts on Update action. If it doesn't work with your project, contact support for help and provide the project to reproduce it.