I keep getting the error "The type or namespace name 'xVal' could not be found (are you missing a using directive or an assembly reference?" when I include the namespace:
using xVal.ServerSide;
Am I missing something? Please help. Thanks in advance.
The solution is very simple though. Just have to include a dll on the bin folder of the app.
Related
I get the following error "Module 'ui-router' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument."
What is weird is that I have installed ui-router using npm install and it is in my packages.json file.
I presume the error is because I have misspelled the module name?
Any help is really appreciated,
Thanks.
As the error states you either misspelled the module name or forgot to load it. In this case you misspelled it, it should be ui.router not ui-router.
var app = angular.module('myApp', ['ui.router']);
The only other cause of this error, after spelling it correctly, would be that you forgot to load it. Fix this by including a reference to the library.
How can I add my SoundModel class to the namespace?
When I built the project, the error went away.
I am often getting this error
<%# Application Codebehind="Global.asax.cs" Inherits="xxx.MvcApplication" Language="C#"%>
Did i miss anything in my code??
Error 6 The type or namespace name 'Data' does not exist in the namespace 'Microsoft.Practices.EnterpriseLibrary' (are you missing an assembly reference?)C:\Users\Administrator\documents\visual studio 2012\Projects\xxx\xxx\Controllers\BaseController.cs 7 45 xxx
Any Help will be appreciated.
Find the type or namespace "Data" in BaseController.cs, and make sure you are referencing the correct assembly.
also, right-click the project in visual studio and make sure all the references in the project are ok, you'll see a warning sign beside any reference that can't be found. if there are any missing references, open up project properties > reference paths > add the folder to the relevant assembly.
I have run into an issue with my razor templates.
In the the template I am using it has two using references at the top of the file.
#using Framework;
#using Bundler;
Both of these reference internal namespaces in my project that are both included as refs in the project that is compiling the template. However the bundler reference fails with the classic.
Unable to compile template. The type or namespace name 'Bundler' could not be found (are you missing a using directive or an assembly reference?)
This to me is a bit weird because if I parse the template instead it works fine.
So it is really only a performance issue but as it doesn't effect the site from running correctly.
Is there any reason why compiling (Razor.Compile(content, Name);) fails when parsing (Razor.Parse(content, model, this.Name)) Doesn't?
Thanks for the help :)
So I found a solution.
If I call a method in the namespace before the razor.Compile it seems to fix the issue.
I created a method called helloDll anywhere inside of the namespace that is failing.
public static void helloDll(){}
I call this before my compile
Bundler.cvStyleBundle.helloDll();
Razor.Compile(content, Name);
No more error :)
I think it has something to do with just in time dll loading and the fact that the dll is not loaded at the time of compile and because the compile happens in some weird lovely funky way it doesnt load the dll rather it just grabs all existing ones from the project :)
Im not able to add System.data.datatableextensions as reference and also not the method CopyTODataTable is not getting recognised.
Thanks and regards,
Veena
If you cant add a reference to the assembly, you will never get the intellisense or be able to compile the code.
IOW, you HAVE to add that reference.
Why can you not add that reference?