ViewData & Model does not exist in the current context - razor

I have a .Net Core 1.1 project using VS 2017 EF Core. When I created a new view, I received the does not exist in current context error on the ViewData, the Model, and even the #model. In trying to fix the problem, I ended up updating my packages which only gave me more errors to resolve. I'm not running .Net Core 2.0 because of the update. The other views in my project are not having this issue. I created only one other view and I ended up having the same problem with it, but just on #model and it went away...don't ask me how or why. For this model, I can't seem to find a solution. I rebuilt the project. I deleted the view and recreated it to no avail. Now, #model seems to be fine, but the view model is not found and I don't have intellisense within my view for anything. The ViewImports file has everything in it that's required. I have fully qualified the model in the view and that doesn't help. I have 36 errors and most of them are pointing to line 1, which is my "#model TournamentScheduleViewModel" statement. So, I figure something is missing. I hadn't done any updates to it prior to this problem. Below is a snapshot of the view I'm having trouble with and one of some of the errors I'm seeing in my error list. I've searched the web and haven't found anything that resolves my problem. Any assistance would be greatly appreciated. This is driving me nuts and I'm ready to proceed with my project. If you'd like to see more code or info, please let me know. Thanks.
Also, forgot to mention that when I press F5 or ctrl-F5, the website comes up in the browser even with all of the errors. I can click and still view the page, only a portion as it's not entirely working properly.

Not sure at this point what the problem was regarding why my view model, 'Model', and 'ViewData' wasn't recognized in my view, but I started over and created another .net core 1.1 project and copied all of the files and modifications over to the new project and everything works fine. The view that was causing me so many problems works like a charm.

Related

PyCharm - Material Design Lite - Auto Suggest not working

I'm having some issues setting up a new Django project with PyCharm regarding autocompletion of HTML code. I am using Material Design Lite as a front-end framework, and have the files in a static folder in the project.
I've tried to mark the folder as a Resource,deleted the .idea folder, and
file | Invalidate Caches/Restart
as suggested here , this made PyCharm go through the indexing phase but it did nothing in the end.
This is really odd to me, since my prior project - running the same version of PyCharm and with seemingly the same settings, the auto suggestions works as inteded.
however in my new project I'm setting up, I just cant get it to auto suggest.
MDL also works despite this when running the server.
Anyone has any idea of what I can do to fix this? I'm thinking I have forgot to do something, but after a day of searching I'm still stuck.
And surprisingly, the day after, it just works without me having to do anything.
Maybe it was the restart of the PC that did it.

cannot find member on object of runtimetype

I am currently working on a legacy web app which uses newtonsoft.json.dll version 1.3.0 and vb.net.
I added four new fields in the application. This source code is shared by another application and it posts into my application and it breaks it.
See image for error.
[]
The error is:
Could not find member x on object of type runtimetype.
The stacktrace breaks at:
newtonsoft.json.jsonserializer.setobjectmember(jsonreader reader,object target, type targettype, string membername)
I did some research. The folks reportedly solved such an issue by upgrading DLL version and didn't have a direct solution to fixing it via code change. I know its very old and the application is high impact any upgrade has huge ripple. However they are planning a rewrite of the application.
Can someone please share any ideas that i should pursue in order to solve this?.
I am expected to make it quick and under pressure.
https://smugmugc3.codeplex.com/workitem/10024
My problem is very similar to what is described in the link above.
I am going to upgrade my version of json converter after convincing my boss and I see that is the only way out of this problem.
After which I will update this thread if I find issues.

libgdx unable to find com/esotericsoftware/tablelayout.gwt.xml on your classpath

I just setup my libgdx game with the gdx-setup-ui.jar today and I have everything setup in eclipse. I thought I would run each application (i.e. desktop, android, and html) to make sure everything is working ok. Unfortunately, I ran into problems with my html application. I am getting this error with a tablelayout.gwt.xml:
I have no idea how to solve this problem. Is there a fix for this problem and if anybody knows it could they share? Thanks!
EDIT
So even though i fixed the problem by restarting my project, my problem has come back. This time, however, I am too far along in development to just restart my project, or re-setup my project.
I deleted my old project and created it again using the gdx-setup-ui.jar application and made sure that all the necessary libraries were included.

php 4 / mysql jstree example from luban.danse.us - Anyway to port this functionality to the new version of jstree? (v1)

Having tried to use the example for php/mysql at http://jstree.com/demos I have realized that I needed extra functionality and as well noticed that this works only with PHP 5 due to some errors that Firebug was prompting for the output. I then started to look for more documentation on jstree and found in here someone suggesting to review the example on the following page:
http://luban.danse.us/jazzclub/javascripts/jquery/jsTree/reference/_examples/7_full.html
I did find it very close to what I need for a personal project, however the example is fixed for one DB interaction from what I was able to see in the core dependencies (full/script.js). I'm trying to port this example to PHP 5, but at the moment just would like to know if there is a possibility to extend this to use new plugins such as 'checkbox' even-though this is an earlier version.
I've posted this question in the forums to see if there is any possibility to recreate a PHP/mySQL example using the 'contextmenu' and as well the options at the top of the panel, but since this apparently is not supported by what I was able to understand from the documentation, I thought perhaps someone have tried something similar to this?
Thanks in advance,
JP-

Anyone have issues with using a RadTextBox in a MultiView?

I am want to use a Telerik RadTextBox inside a MultiView in ASP.NET 2.0. Just dragging a RadTextBox into a view and running the page generates a run-time error of the good old favorite "Object reference nto set to an instance of an object". It seems to be breaking on the Telerik.WebControls.RadInputControl.SaveViewState() call.
Has anyone any ideas on how to get this to work?
Thanks!
This happened to be an issue with RadInput for ASP.NET in one of my previous projects at some point. I got latest from the Telerik site and the exception was gone.
Btw, I switched to the ASP.NET AJAX version of the control already and encourage you to try it out. It is more advanced and have RadInputManager as an addition to speed up the performance when having many textboxes on the page.
Dick