After updating my nuget packages my build of the test project was failing, without any error reported in the build output window.
First of all you can turn on verbose logging:
- Project and Solutions
- Build and Run
- Set these to options to Diagnostic:
- MSBuild project build output verbosity
- MSBuild project build log file verbosity
Probably you’ll see the error appearing in you build log file of in the build output file.
In my case the System.web.mvc reference was updated, but the fake assembly that I had generated was not updated and one assembly was missing.
When rendering a CSHTML webpage that includes a PartialView (or is a PartialView) when using MVC you get the error message:
The “RenderBody” method has not been called for layout page
This typically occurs when you:
– have a partial view
– use a _ViewStart.cshtml page
– you call the partival view from your controller using: return View();
And there you go wrong. It is a partial view, so you should return like this:
That’s all there is to it.
Recently I started working with Typescript. I’ve noticed that I made some Typescript Common errors and issues for newbies. So I’ve deceided to blog about them. I hope others can benefit from this:
SCRIPT1004: Expected ‘;’
You’ve probably NOT include the .js file in your HTML file. Include the file <script scr=”YOURFILE.js”></script> in the HTML page.
Error 3: (this error occurs at Typescript compile time, in the editor, at compile time)
Invalid ‘new’ expression
You must include the correct namespace for the class to create:
Wrong: new Project();
OK: new MySolution.Classes.Project()
Error 4: (this error occurs in the editor, at compile time)
The property XX does not exists on value of type YY
public Project: Myapp.Models.ProjectInfo;
Although you’ve probably used Intellisense when editing. Still this error does appear. You must include a reference to the .ts file. Put the following line at top of the Typescript file that generates this error:
/// <reference path=”PATH TO YOUR TS CLASS FILE”/>
Supplied parameters do not match any signature of call target: type ‘XYX’ is missing property ‘concat’ from type ‘XYX’
The parameter expected is an array of XYZ, but the passed parameter is XYZ. Replace the parameter with the correct one (should be an array in this case).
Hope these error messages and the solutions I have provided you, will give you a head start. In my case, most error gave me a terrible a headache.
(SOLVED) Intellisense is not working with Typescript and ReSharper. I’m using Visual Studio 2012. Typically the options:
Tools -> Options -> Languages -> TypeScript -> Auto List Members & Parameter information
get unchecked. This happens every time you display a different file. Basically you have to manually select these options over and over again. This cannot be why you use ReSharper and Visual Studio’s Intellisense.
I’ve tried a lot of things in vain to resolve this issue:
- deleted 10.0 folder in %APPDATA%/microsoft/visual studio
- checked the correct opening tag: /// <reference in stead of /// reference
- repaired visual studio
- disabled Typescript in ReSharper (ReSharper > options > languages >uncheck typescript)
The Solution to this intellisense issue:
None of them gave the deired results. But fortunately I’ve found the solution:
- In Visual Studio 2012:
- Limited ReSharper IntelliSense
- Check all but TypeScript (ts. files)
And Intellisense works fine again in my case. I hope it helps you to solve the issue your experience..
If you get: Error 1 Unrecognized attribute ‘xmlns:xdt’. Note that attribute names are case-sensitive. you can be searching for hours what is wrong with your web.config.
- MVC4 webap
- using config transformation
Well, I’ve searched hours and hours, but there seems nothing wrong with my web.config. So how to solve this anoying issue:
- search for the obj folder (it might be hidden)
- delete it