I have developed a C# windows form application with Visual Studios 2010. it has a couple of external dependencies. It works fine when I run it from VS but fails on start up after I make an installer and try to run it. In the log files created by VS it gives me the following output.So basically there is something wrong with mscorlib.dll; even though I have this dll installed and referenced properly by the project.
<ProblemSignatures>
<EventType>CLR20r3</EventType>
<Parameter0>learningplatform.exe</Parameter0>
<Parameter1>1.0.0.0</Parameter1>
<Parameter2>515d6cf4</Parameter2>
<Parameter3>mscorlib</Parameter3>
<Parameter4>4.0.0.0</Parameter4>
<Parameter5>50484bd7</Parameter5>
<Parameter6>3fda</Parameter6>
<Parameter7>105</Parameter7>
<Parameter8>System.IO.DirectoryNotFound</Parameter8>
</ProblemSignatures>
Note : I am using .Net 4.0 on a 64-Bit Machine but Visual Studios version is 32 Bit(x86 platform).
Related
I have a C# application in Visual Studio which consists of a C++ project targeted for Windows SDK Version 8.1. This project also requires the Windows Universal CRT SDK to build. The Visual Studio Installer allows one to install these components individually. So everything runs as expected on this PC. However, when I deploy it to a PC without the SDKs installed, exceptions are thrown when the C++ dll is called. I thought the whole point of deploying a standalone applications is to have everything contained once built, without requiring additional SDKs. Is there a build option I am missing?
It doesn't seem super straight forward to download and install the SDKs individually either. The easiest way is to download Visual Studio and install them similarly to the development PC, which also requires a bare-bones version of Visual Studio. This isn't a huge problem but rather in convenient.
Any insight or help would be greatly appreciated! Thanks!
I have Windows 10 (1803) installed on my PC and Visual Studio 17. I have recently downloaded Windows SDK but there are two versions get downloaded i.e., 10.0.17763.132 and 10.0.17134.12. Now i have created my first sample app and when i debug it on my Local Machine it gives error as Unable to debug windows store app.....A component dll could not be found. if failure continues,ty disabling any installed add ins or repairing your installation. But i have created app with Target 1803 so why this error get shown?.
.A component dll could not be found
For this error, you could try to reinstall UWP sdk, then repaired your visual studio. Certainly, you could also reinstall Visual Studio.
I am using CLR to run a pre-compiled dll from C++ in a C# environment and experiencing differences between win server 2012 and win 7\win server 2008.
While in windows 7 or windows server 2008 the program works fine, but when trying to run in server 2012 I get:
"dll or one of its dependencies is not a valid win32 application"
Any known issues\solutions to this problem?
(OS is always 64, .net 4.5, VS 2013)
(Attached picture show the dll in Dependency walker under both OS)
Dependency walker on Windows server 2012
Dependency walker on Windows 7
You are missing the C++ run-time libraries on your server. Specificly, from the file name MSVCP100D.DLL I can tell that you need the debug version of the "Microsoft Visual C++ 2010 Redistributable", which is not allowed to be redestributed (as opposed to the release version which you can find here)
You can find the debug version of the run-time library inside the Visual Studio 2010 folder in the VC\redist\Debug_NonRedist folder. (Disclaimer: I don't have 2010 installed, but 2013 and 2015) As a workaround you can copy the missing dlls to the same folder you have your dll in.
To prevent having this problem in the future, either get a non-debug version of the DLL and install the public runtime redistributable or compile a static build (which includes those libraries in the DLL thus making it larger), debug or not.
Yo,
So I've been developing a Universal Windows Store app in Visual Studio 2013 on one machine, and wanted to continue developing it on an another machine running Windows 10 Technical Preview.
The problem is that in Visual Studio 2015 Preview there is a new C++ Redistributable package version (2015), and the latest SQLite requires version 2013, so that particular reference is missing. I can build the project, it deploys successfully, but there is an exception saying it can't load sqlite3.dll. I'm assuming this is because of the missing Visual C++ Redistributable Package 2013. I tried downloading it, but the entry is still missing from the Add reference dialog under Extensions, where it is seen on VS 2013.
Any experience of making it work? Any insider info on when SQLite will work for Windows 10?
Cheers
Yesterday I blogged about how to get SQLite working with Windows 10 Universal apps
It's really simple and comes down to using a pre-release version of SQLite Visual Studio extension, and then just using whatever library or ORM you used before.
Note that Windows 10 Universal apps will also be capable of using Entity Framework 7, which can be used with almost any DB provider including SQLite.
EDIT: The Visual Studio extension is not in pre-release as of build 10240.
SQLite for Universal App Platform is now available as pre-release
Sqlite download page
so after searching on the web a little i came across this
Seems that some (not very wise) software install incompatible sqlite3.dll to the windows system folder.
Check your C:\Windows\SysWOW64\ folder for sqlite3.dll and rename it to sqlite3-backup.dll.
If some other software can't start after it, just put sqlite3-backup.dll to the folder where main .exe resides and rename it to sqlite3.dll.
Also check registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs.
If sqlite3.dll value is present - remove it. This registry key is designed only for system dlls, not for third-party dlls.
Hopefully rhis helps. I was thinking its a windows UAC system which requires you to run app as admin etc.. il keep searching but dp update if this fixes the issue
Add reference Runtime C++ 2013 package for Windows. That worked for me
Referencing a Windows 8.1 SqlLite requires referencing new “Microsoft Visual C++ 2013 Runtime Package for Windows Universal” extension. You can add using Add Reference dialog in a Universal Windows app.
That should fix the runtime exception.
I have a C# project written using Visual Studio Express 2013 for Windows Desktop. When I run the project in debug mode via Visual Studio (on Windows 8 Pro) it executes just fine, and so does copying the files out of the bin directory.
I need to deploy to a Windows 7 Embedded System with the correct version of .NET Framework. I tried:
copying the files over with the .dll and everythig from the bin folder and when starting I get no error, but doesn't start at all. I get no information at all.
tried the one click installer (choosing the option to install from dvd) and it seemed to install fine, but when I start it, I get same issue. Not starting, and no messages.
I also tried the Advanced Installer (free version) and when importing the visual studio project files it fails with the message "Failed to start Visual Studio. Error: Invalid Class String"
[UPDATE] Advanced Installer cannot import VS Express solutions because the API from VS that provides assistance on import is not available for VS Express edition. Only solutions created with paid editions of VS can be imported in Advanced Installer.
So how can I log or see what is happening to debug this?