Error 109 'Could not load file or assembly 'DevExpress.Web.v14.1,
Version=14.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or
one of its dependencies. Invalid pointer (Exception from HRESULT:
0x80004003 (E_POINTER))'
I use to work on VS2008 previously, but recently I have moved from VS2008 to VS2012. Everything is working good, but whenever I add Devexpress Control(Grid View) in my project, I am getting this error message.
I have searched for this error on Google, and everytime I have found the below mentioned link but it didn't solved my problem.
Link I use to get from Google : https://www.devexpress.com/Support/Center/Question/Details/KA18620
Please help.
I think that your project is targeted to a .NET version prior to 4. Version 14.1 of DevExpress components requires .NET 4+. Change your .NET version in the project properties.
Related
I'm developing using ASP.NET in Microsoft Visual Studio Express 2012 for Web. Everything works great but suddenly when changing some code in one of my controllers Visual Studio crashed and now I got this weird runtime error:
Warning 1 \Views_Create.cshtml: ASP.NET runtime error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
My project still works fine though only a bit slower than before but every aspect of code, views, models, controller works just fine. Only in my studio the lines using EF are being underlined and marked as warning which is kinda annoying!
I already tried to uninstall and install EF or upgrade to EF 6.1 but no results...
Anybody an idea how to resolve this problem?
The answer posted in a similar question solved the problem for me:
Delete all files from the following folders and try again:
C:\Users\[username]\AppData\Local\Temp\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\
I am using Visual Studio 2012 Update 3 and whenever I create a new ASP.NET empty website and build it for the first time compilation is successful but I get a server error when accessing the site of "Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest."
If I then go back and build the website again I get a single error of "Object reference not set to an instance of an object" but no line number.
This error occurs whichever framework I am targeting and whether I am using C# or VB.
Can anyone point me in the right direction please?
Thanks,
Richard.
Possibly AjaxControl Toolkit is the issue.
Depending on your Framework version( 4.5, 4.0, 3.5 ),, install the correct version of AjaxControl Toolkit from here: http://ajaxcontroltoolkit.codeplex.com/releases/view/94873.
Another solution I found is to place System.Web.Extensions.dll and System.Web.Extensions.Design.dll directly in the Bin folder of your web application.
I'm new to both Xamarin and SignalR. While I'm able to easily follow the tutorials for SignalR on Visual Studio, and get a sample chat application working, I'm not able to make it work on Xamarin. I tried to reference the signalr assemblies in Xamarin, but it fails with the following error -
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Security, Version=4.0.0.0, Culture=neutral
But I'm not able to find System.Security to add to references.
Am I doing this right?
I also tried looking for SignalR in Components. But couldn't find it.
Also, I tried to find some tutorials on SignalR in Xamarin that would guide me through this process. But I wasn't able to find any. Can someone point me to some blogs/tutorials that can help me setup SignalR in Xamarin?
Thanks!
These steps worked for me:
Installed the beta updates on Xamarin
Got the dev branch on signalr and built it to include mono support
Removed reference to signalr.core assembly (this was the one referencing system.security)
If you are on Xamarin.Forms Net standard
(https://blog.xamarin.com/building-xamarin-forms-apps-net-standard/), just install nuget 'Microsoft.AspNet.SignalR.Client' and use all sample code provided by microsoft for NET client (https://learn.microsoft.com/en-us/aspnet/signalr/overview/guide-to-the-api/hubs-api-guide-net-client) into your shared code.
I would like to start using the web.config transform feature in Visual Studio when publishing to our test and production site. However, the release build fails while the debug build works fine.
I've believe I'm made the build settings the same. Although the only differences were 'Enable DEBUG constant', 'Enable optimizations', and 'Generate debug info'.
Anyway, the build error is "Could not load file or assembly 'file:...dll' or one of it's dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).
The mentioned dll was from the Ajax Control Toolkit. I used Nuget to 'install' the Ajax Control Tookit package instead of just including a reference to the dll. Then I got the same error for Microsoft's AntiXSS. So I again used Nuget to 'install' AntiXSS. Unfortunately, now I'm getting this error on another third party API that doesn't have a Nuget installer. Also, I'm getting this error on a dll I've created that I include in a number of projects here.
Does someone know what is causing this error? What should I do to fix this error? Do I need to create a Nuget package?
Thanks
I am using the Zendesk C# API Wrapper (https://github.com/eneifert/ZenDeskApi) in my ASP.NET MVC 3 Visual Studio 2012 project. I referenced the ZenDeskApi DLL and everything works fine in debug mode locally.
When I try to Publish the website I first get the following error:
Could not load file or assembly '...\Source\Bin\ZenDeskApi.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Then I tried adding the RestSharp.DLL that comes with the package:
Could not load file or assembly '...\Source\Bin\RestSharp.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Then I tried adding the Newtonsoft.Json.NET35.DLL that comes with the package:
Could not load file or assembly ...\Source\Bin\Newtonsoft.Json.Net35.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Is it possible that the problem is the Newtonsoft.Json.NET35.DLL .NET 3.5 version? Incompatible with .NET 4 that MVC needs?
I downloaded the RestSharp source code (https://github.com/restsharp/RestSharp) to try to update the Newtonsoft.Json reference to .NET version 4.0 (available here http://json.codeplex.com/) but with my surprise RestSharp does not reference it.
What should I do to publish my website?
Thanks.
EDIT: in the meantime I discovered the v2 of this api here: https://github.com/eneifert/ZendeskApi_v2 but I always have problems with .NET version of the various DLLS. How can I find all the necessary stuff to work with .NET 4.0?
I solved installing Zendesk API v2 from NuGet (inside Visual Studio 2012) and using the following connection string:
https://company.zendesk.com/api/v2
instead of
http://company.zendesk.com