Getting System.NotSupportedException when running WCF Service in Visual Studio 2010 - wcf

I have created a WCF service using Visual Studio 2010. When i try to run the service, i get the following error
File name: 'file:///H:\Personal\Visual Studio
2010\Projects\WPFBrowser\DatabaseService\bin\Debug\DatabaseService.dll'
---> System.NotSupportedException: An attempt was made to load an
assembly from a network location which would have caused the assembly
to be sandboxed in previous versions of the .NET Framework. This
release of the .NET Framework does not enable CAS policy by default,
so this load may be dangerous. If this load is not intended to sandbox
the assembly, please enable the loadFromRemoteSources switch. See
http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,
String codeBase, Evidence assemblySecurity, RuntimeAssembly
locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound,
Boolean forIntrospection, Boolean suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,
Boolean forIntrospection, Boolean suppressSecurityChecks) at
System.Reflection.Assembly.Load(AssemblyName assemblyRef) at
Microsoft.Tools.SvcHost.ServiceHostHelper.LoadServiceAssembly(String
svcAssemblyPath)
I even tried setting
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
</runtime>
</configuration>
in the app.config file, but the problem remains.
Any help will be appreciated....

I think you should take a look at the: "file:///H:\Personal\Visu...". Why the file://? The WCF service should be hosted in the "developer iis" included in Visual Studio. This should result in something like: "http://localhost/abc..."

Moved my solution from the network drive to the local C:\ and it started working fine

Related

Asp.Net 5 MVC 6 Startup.cs Assembly Decoupling in Beta8

I am working on an eCommerce site using Asp.Net 5 and MVC6 following Onion Architecture (OA) so that we have loose coupling between the layers. I also want to decouple Startup code in its own assembly rather than having it in the MVC project.
In beta7 It was very easy to move the Startup.cs to a class library (Bootstrapper) as explained here. One interesting fact using the mentioned approach is that I didn't have to reference the Bootstrapper assembly from the MVC project. At runtime, hosting under IISExpress, through assembly scanning it was able to find the Bootstrapper assembly mentioned in the Microsoft.AspNet.Hosting.ini file. This was possible by specifying the location in the global.json
{
"projects": [ "Source/Projects","Source/Bootstrapper" ],
"sdk": {
"architecture": "x64",
"runtime": "clr",
"version": "1.0.0-beta7"
}
}
The Bootstrapper project will have reference to all other projects like Infrastructure, Services etc in order to hook up Dependency Injection.
The reason for not referencing the Bootstrapper project in MVC project, following Onion Architecture rules, is to avoid having access to Infrastructure code directly from MVC project. So this was all working fine until I upgraded to Beta8 this morning.
As the hosting model is changed from IIS to Kestrel, I had to refactor the global.json and project.json files as below
global.json
{
"projects": [ "Source/Projects","Source/Bootstrapper" ],
"sdk": {
"architecture": "x64",
"runtime": "clr",
"version": "1.0.0-beta8"
}
}
project.json
{
"dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8",
"....",
"....",
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
}
}
After making the above changes, I started getting the following error regardless whether I run it using dnx command or directly via Visual Studio
Internal Server Error System.InvalidOperationException A
type named 'StartupDevelopment' or 'Startup' could not be found in
assembly 'EcommerceMvcApp'. at
Microsoft.AspNet.Hosting.Startup.StartupLoader.FindStartupType(String
startupAssemblyName, IList diagnosticMessages) at
Microsoft.AspNet.Hosting.Internal.HostingEngine.EnsureStartup() at
Microsoft.AspNet.Hosting.Internal.HostingEngine.EnsureApplicationServices()
at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication()
Turned out that I have to specify the config file or inline arguments to the web command as explained here. After following the suggestion, I tried running the application and this time I started getting the error below
System.IO.FileNotFoundException Could not load file or assembly
'Bootstrapper' or one of its dependencies. The system cannot find the
file specified. at
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean
suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean
suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean
suppressSecurityChecks) at
System.Reflection.Assembly.Load(AssemblyName assemblyRef) at
Microsoft.AspNet.Hosting.Startup.StartupLoader.FindStartupType(String
startupAssemblyName, IList diagnosticMessages) at
Microsoft.AspNet.Hosting.Internal.HostingEngine.EnsureStartup() at
Microsoft.AspNet.Hosting.Internal.HostingEngine.EnsureApplicationServices()
at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication()
The solution requires that I add a reference to the Bootstrapper project in the MVC project and it works. However, it defeats the purpose of having a separate Bootstrapper assembly in the first place.
The question is, why it is unable to find the Bootstrapper assembly like it used to do in Beta7, using the sources specified under "projects" in global.json or is the new hosting model ignoring the global.json? Is there a way to specify the location of the Startup assembly?
Update 1
Just want to highlight that in Beta7 it also works using "dnx command" for both Microsoft.AspNet.Server.WebListener and Microsoft.AspNet.Server.Kestrel.
"commands": {
"kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5004 --config wwwroot/Microsoft.AspNet.Hosting.ini",
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5004 --config wwwroot/Microsoft.AspNet.Hosting.ini"
}
However, the dnx command (using Microsoft.AspNet.Hosting.json file) fails for both servers in Beta8. If someone is wondering that it's something to do with IIS Helios component in Beta7, it's not the case. I am baffled as why the assembly lookup stopped working in Beta8
Update 2
Here is the stack trace that I get when I try to run in Beta8 using IISExpress. Looks like it's trying to find the assembly in the dnx bin folder.
System.IO.FileNotFoundException: Could not load file or assembly
'Bootstrapper' or one of its dependencies. The system cannot find the
file specified. File name: 'Bootstrapper' at
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean
suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean
suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean
suppressSecurityChecks) at
System.Reflection.Assembly.Load(AssemblyName assemblyRef) at
Microsoft.AspNet.Hosting.Startup.StartupLoader.FindStartupType(String
startupAssemblyName, IList`1 diagnosticMessages) at
Microsoft.AspNet.Hosting.Internal.HostingEngine.EnsureStartup() at
Microsoft.AspNet.Hosting.Internal.HostingEngine.EnsureApplicationServices()
at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication()
=== Pre-bind state information === LOG: DisplayName = Bootstrapper (Partial) WRN: Partial binding information was supplied for an
assembly: WRN: Assembly Name: Bootstrapper | Domain ID: 1 WRN: A
partial bind occurs when only part of the assembly display name is
provided. WRN: This might result in the binder loading an incorrect
assembly. WRN: It is recommended to provide a fully specified textual
identity for the assembly, WRN: that consists of the simple name,
version, culture, and public key token. WRN: See whitepaper
http://go.microsoft.com/fwlink/?LinkId=109270 for more information and
common solutions to this issue. LOG: Appbase =
file:///C:/Users/sshassan/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta8/bin/
LOG: Initial PrivatePath = NULL Calling assembly : (Unknown).
=== LOG: This bind starts in default load context. LOG: No application configuration file found. LOG: Using host configuration file: LOG:
Using machine configuration file from
C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind). LOG: Attempting
download of new URL
file:///C:/Users/sshassan/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta8/bin/Bootstrapper.DLL.
LOG: Attempting download of new URL
file:///C:/Users/sshassan/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta8/bin/Bootstrapper/Bootstrapper.DLL.
LOG: Attempting download of new URL
file:///C:/Users/sshassan/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta8/bin/Bootstrapper.EXE.
LOG: Attempting download of new URL
file:///C:/Users/sshassan/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta8/bin/Bootstrapper/Bootstrapper.EXE.
Perhaps, if I run dnu publish and host it under IIS it will work, but that means that I would have to publish it every time I make the change
I was stuck in a similar problem. It looks like we do not want to make references from UI layer to Infraestructure layer (we are very stricts), not even for making the dependency resolution.
Maybe it is possible by using late binding (I just heard talked about it), but I think that you should read this article. It basically says that a Composition Root isn't reusable, and there should be one per application (i.e., one for UI.Web, another for UI.Console, and so on).
That responds also my question about what having the DI resolution in UI.Web, but need another UI, let's say Console (answer: it's preferable to make anoter DI resolution in Console, and it'll have it's own resolution dependences related to how a Console Application actually works).
I hope having give you a good point to clarify this issue.
The hosting config file format changed from INI to Json. Try this:
{
"Hosting:Application": "Bootstrapper",
}
Also see this issue.

SQL Server 2008 cannot load Microsoft.SqlServer.Types

After a restart of the database server, SQL Server 2008 cannot load Microsoft.SqlServer.Types any more.
A simple query:
declare #point geometry = geometry::Point(10,10, 3006)
select #point
Gets this error message:
Msg 10314, Level 16, State 14, Line 1
An error occurred in the Microsoft .NET Framework while trying to load assembly id 1. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileNotFoundException: Could not load file or assembly 'microsoft.sqlserver.types, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException:
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
The spatial functions worked fine just before the restart, and no other known changes has been done to the server.
The assembly seems to be in the GAC and on the right place under C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies
What could be the problem?
Thanks in advance
/Tommy

MVC 4 Web Api Build in x64 mode giving error while executing "Could not load file or assembly 'xxx' or one of its dependencies

My MVC4 Web Api application is working fine when it is build in Any Cpu mode.In this mode it is creating 32 bit dll. However when I build the application in x64 mode then while executing it is giving following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'CoreService' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'CoreService' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CoreService' could not be loaded.
=== Pre-bind state information ===
LOG: User = xxx
LOG: DisplayName = CoreService
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: CoreService | Domain ID: 3
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///D:/StartFromScratch/src/CoreService/
LOG: Initial PrivatePath = D:\StartFromScratch\src\CoreService\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\StartFromScratch\src\CoreService\web.config
LOG: Using host configuration file: C:\Users\310138409\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/a4e7fe2c/87c2ced5/CoreService.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/a4e7fe2c/87c2ced5/CoreService/CoreService.DLL.
LOG: Attempting download of new URL file:///D:/StartFromScratch/src/CoreService/bin/CoreService.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'CoreService' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38
[ConfigurationErrorsException: Could not load file or assembly 'CoreService' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +752
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +218
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +258
System.Web.Compilation.BuildManager.ExecutePreAppStart() +135
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516
[HttpException (0x80004005): Could not load file or assembly 'CoreService' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9874840
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18055
I am not getting any concrete solution for the same. Moreover we cannot continue in 32 bit mode as It is making call to 64 bit unmanaged code. Thanks in advance.
Actually problem is because of IISExpress. It is 32bit of IISExpress is running whenever we are executing from VS2012 IDE so it is giving incorrect format error. So once I installed the IISexpress 8.0 and done the registry entry to make sure that IISExpress 64 bit get executed from VS2012; my problem got resolved.
You should properly configure your solution configurations for x64 build. Right click on your solution in VS, select Configuration Manager select x64 under Active solution platforms drop down list and check whether all of your projects has built with x64 platform.

TRX Logger not available on azure roles

I am trying to run tests on azure roles with the vstest.console.exe test runner. It is working great on emulator but in the real azure cloud instance the TRX-Logger I want to use is not available.
I am copying the hole test Runner Folder to my cloud instance with all the DLL files and dependencies which are in subfolders of the "...\TestWindow\" folder. There is also a dll-file for the TfsLogger, as well as the dll-file for the TrxLogger. But when I run vstest.console.exe it states that /logger:trx option is invalid because trx is not a valid URI or friendly name. When I list all available loggers for vstest.console.exe I only get the 2 test loggers "Console" and "TfsLogger" (or "TfsPublisher").
This is the Content of my Extensions Folder:
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.GenericTestAdapter.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.MSAppContainerAdapter.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.OrderedTestAdapter.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.TfsLogger.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.TmiAdapter.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.VSTestIntegration.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestPlatform.UnitTestFramework.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestTools.CppUnitTestFramework.ComInterfaces.dll
E:\approot\TestRunner\Extensions\Microsoft.VisualStudio.TestTools.CppUnitTestFramework.CppUnitTestExtension.dll;
Does anybody know why trx logger is not available on the azure instances (worker role) but TfsLogger is, while both dll files are available in the same subfolder of vstest.console.exe? And is it possible to "install" or make the TrxLogger available for my test runner?!
Best regards
Sebastian
I know this is an old question, but I just faced a similar problem where I only had Console & TfsLogger, but no way to have the TrxLogger.
The difference being that I'm not using Azure, I'm on my CI test server on which I only installed MSBuild 2013, as part of the new "Microsoft Build Tools Package".
It installed everything, but I wasn't able to have the TrxLogger for MSBuild VS 2013, whereas it was working fine for VS 2012.
After some search, I enabled logging for vstest.console (by setting the TpTraceLevel to 4 from its config file), and it logged some info inside my Local Temp folder.
Only to see that it failed trying to load the TrxLogger assembly (sorry for the French messages :)):
W, 3384, 1, 2014/03/07, 10:46:08.269, 2034438793, vstest.console.exe, TestPluginDiscoverer: Failed to get types from assembly 'Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Skipping test extension scan for this assembly. Error: System.Reflection.ReflectionTypeLoadException: Impossible de charger un ou plusieurs des types requis. Extrayez la propriété LoaderExceptions pour plus d'informations.
à System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
à System.Reflection.RuntimeModule.GetTypes()
à System.Reflection.Assembly.GetTypes()
à Microsoft.VisualStudio.TestPlatform.Core.TestPluginsFramework.TestPluginDiscoverer.GetTestExtensionsFromAssembly(Assembly assembly, Dictionary`2 testDiscoverers, Dictionary`2 testExecutors, Dictionary`2 testSettingsProviders, Dictionary`2 testLoggers)
W, 3384, 1, 2014/03/07, 10:46:08.269, 2034439310, vstest.console.exe, LoaderExceptions: System.IO.FileNotFoundException: Impossible de charger le fichier ou l'assembly 'Microsoft.VisualStudio.QualityTools.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ou une de ses dépendances. Le fichier spécifié est introuvable.
Nom de fichier : 'Microsoft.VisualStudio.QualityTools.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.Assembly.Load(AssemblyName assemblyRef)
à Microsoft.VisualStudio.TestPlatform.Core.TestPluginsFramework.TestPluginCache.CurrentDomain_AssemblyResolve(Object sender, ResolveEventArgs args)
à System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
For simplification, what I ended up doing was to install the whole Visual Studio 2013 on my server, but as the Microsoft.VisualStudio.QualityTools.Common assembly was available in my ReferenceAssemblies folder, maybe I just needed some way to reference it (add to path or something)

Create assembly in SQL Server

I keep getting the following error:
Msg 10314, Level 16, State 11, Line 1
An error occurred in the Microsoft .NET Framework while trying to load assembly id 66079. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'ncestablegenerator, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
System.IO.FileLoadException:
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
This is the creation of my assembly:
CREATE ASSEMBLY [NCESTableGenerator]
AUTHORIZATION [dbo]
from 'C:\SqlDlls\NCESTableGenerator.dll'
WITH PERMISSION_SET = UNSAFE
GO
Any ideas? There is plenty of space on the server.
You need to set database trustworthy ON before you run that statement .