Unable to start program in debug mode. Debug Dll installation issue? - visual-studio-2005

I've just get a new machine and try to checkout, build and launch my program.
When hitting "launch in debug" button, I have this error message poping up from MS VS:
Unable to start program 'xx'. This
application has failed to start
because the application configuration
is incorrect. Reviex the manifest file
for possible errors. Reinstalling the
application may fix this problem. For
more details , please see the
application event log.
Have a look into the application event log:
Type de l'événement : Erreur Source de
l'événement : SideBySide Catégorie de
l'événement : Aucun ID de l'événement
: 59 Date : 24/08/2009 Heure
: 16:10:03 Utilisateur : N/A
Ordinateur : XXXXXXXX Description :
Resolve Partial Assembly a échoué pour
Microsoft.VC80.DebugCRT. Message
d'erreur de référence : L'assemblage
référencé n'est pas installé sur votre
système. .
Pour plus d'informations, consultez le
centre Aide et support à l'adresse
http://go.microsoft.com/fwlink/events.asp.
Ok , the text is in french, but it roughly tells that that resolving the "partial assembly" didn't work for "Microsoft.VC80.DebugCRT". It conludes so that this assemlby is not installed on my machine.
Having a look into the C:\windows\system32 folders, I see no mscvrt80d.dll file. (Huu .. Is it this one I should expect?). MS visual studio 8.0 is freshly installed by admin system though.
Did you ever have that issue before ? And how did you fix that ?

It is not the neatest solution, but in addition to shared SxS installs of the C-runtime - which incidentally are installed to a folder: c:\windows\winsxs - its completely legitimate to perform what is called a "private side-by-side" install - which for debug builds will be most convenient.
Simply go to your folder: C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86, and copy the appropriate folder into the deployment folder of your debug build:
So, if your app is installed in C:\Test\MyApp, you would now have a folder called C:\Test\MyApp\Microsoft.VC80.DebugCRT
(You can also copy the foles from the assembly straight into your app folder, but I find that messy).

Actually CRT was not the issue here. What caused the problem was that another lib I used was compiled by a co-worker on his machine and sent to me through shared directory. Therefore the recipient folder for the DLL was not the same as it was on the original machine from my coleague. I guess the issue is because the manifest files expect it to be the same(?), or does it expect to find the source code at a specified path (?).
Anyway, re-compiling the lib in question from scratch on my machine resolved the issue..

Related

Need help understanding error "manifest is not in the package root" while registering Windows 10 package

I am trying to register the Windows 10 Edge package with Windows Server 2016. I have successfully installed the store thanks to a forum I found and it opens but remains untested. I am trying to do the same with Edge. I've copied the app package from the installer iso to C:\Windows\systemapps and ran the power shell script:
Add-AppxPackage -register "C:\windows\systemapps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\Appxmanifest.xml" -DisableDevelopmentMode
And get the following error:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CF9)
Rejecting a request to register from Appxmanifest.xml because the manifest is not in the package root.
NOTE: For additional information, look for [ActivityId] a80e1223-2787-0000-dc3e-12a98727d301 in the Event Log or use
the command line Get-AppxLog -ActivityID a80e1223-2787-0000-dc3e-12a98727d301
At line:1 char:1
+ Add-AppxPackage -register "C:\windows\systemapps\Microsoft.MicrosoftE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\windows\syst...ppxmanifest.xml:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
I've verified the manifest is in the package root so other than that I can't figure out what it means. Can someone help me understand what it's looking for?
Reference for store install: http://virtualcustoms.net/showthread.php/72904-Install-Microsoft-Store-and-Apps-on-Windows-10-LTSB-2016
I was just trying to do the same thing and I have found if I copy the app to C:\Program Files\WindowsApps then it installs without complaining about not being in the root and then the Edge icon also appears on the start menu.
The command to run is:
Add-AppxPackage -DisableDevelopmentMode -Register "C:\Program Files\WindowsApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AppxManifest.xml"
Whilst this allows the app to install and I am able to launch it from the start menu it closes after about 2 seconds and looking in the log (Application and Service Logs\Microsoft\Windows\Apps\Microsoft-Windows-TWinUI/Operational it shows this error so it looks like there is still something else that needs to be done to get this working:
ActivateApplicationForContractByAppIdAsUserWithHost of the app Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge for the Windows.Launch contract failed with The app didn't start..
Robin
I found it difficult to add to the win apps folder but figured out as long as the location of the apps you want to add are located in a folder named C:\Program Files\WindowsApps* it will work. I use a folder named “WindowsApps-Import” in the programs folder, works well!
One answer suggests adding the -DisableDevelopmentMode flag to the command you've ran, which works, but leaves an important point out.
Once the app installs, it won't run and crashes soon after. This is because the ALL APPLICATION PACKAGES group doesn't have access to the folder of the app. Giving ALL APPLICATION PACKAGES full control of the app folder will allow it to run.
Move the folder inside: "C:\Users$USERNAME\AppData\Local\Packages" then it works. Obv developer mode on windows needs to be ON.
for eg:
Add-AppxPackage -Register "C:\Users\Amit\AppData\Local\Packages\WsaPackage_1.7.32815.0_x64_Release-Nightly\AppxManifest.xml"

Visual studio installer doesn't start correctly

I just had to change my HDD. So I installed a version of Windows 10 Education on my computer, and now I'm trying to install Visual studio 2017 community/enterprise ( tried both ). After running the installer which was downloaded from the official website it doesn't start the installation, I just see for a tiny amount of time a small window pop but then it instantly shuts. What could be the reason for this behavior and how to fix this problem?
Edit: I can install other software, I managed to install a few other programs without a problem, I notice this behavior only with Visual studio and additionally .NET Framework installer.
Edit2:
I found this in my temp folder :
[4/20/2017, 11:30:37] === Logging started: 2017/04/20 11:30:37 ===
[4/20/2017, 11:30:37] [4/20/2017, 11:30:38] --- logging level: standard ---
[4/20/2017, 11:30:38] Directory 'C:\Users\2D94~1\AppData\Local\Temp\931f7233a5c56697278d79b1\' has been selected for file extraction
[4/20/2017, 11:30:38] Extracting files to: C:\Users\2D94~1\AppData\Local\Temp\931f7233a5c56697278d79b1\
[4/20/2017, 11:30:38] Error 0x8007002a: Failed to extract all files out of box container #0.
[4/20/2017, 11:30:38] Error 0x8007002a: Failed to extract
[4/20/2017, 11:30:38] Error 0x8007013d: Failed to get error string from error: 0x8007002a
[4/20/2017, 11:30:38] The entire Box execution exiting with result code: 0x8007002a
[4/20/2017, 11:30:38] Launched extracted application exiting with result code: 0x0
[4/20/2017, 11:30:38] === Logging stopped: 2017/04/20 11:30:38 ===
Edit 3: THANKS MICROSOFT you really screwed me up huh.
Edit 4: After full Windows reinstall with the latest version still getting this error.
Edit 5: Changed windows version from education to professional and it works!
Had the same issue. I was running installer from my /Download folder.
Try move the installer to D: drive, it helped me.
Regards

Visual Studio 2015: access denied on FeedCache

when I try to open a project in VS 2015 I get the error "Access denied" on a File located in ‪C:\Users\XY\AppData\Roaming\Microsoft\VisualStudio\14.0\FeedCache .
The german message is "C:\Users\XY\Documents\Visual Studio 2015\Projects\App1\App1\App1.csproj : error : Der Zugriff auf den Pfad "C:\Users\XY\AppData\Roaming\Microsoft\VisualStudio\14.0\FeedCache\Feed-969FF52C4894C164-File.xml" wurde verweigert."
Some hours ago I restarted my computer for system updates and immediately after that I installed the english language pack for VS.
So I navigated to that FeedCache folder. For that Folder I have all permissions an the security settings grant me al privileges even for inherited files and folders (screenshot). But when i, for example, try to rename a file inside that FeedCache folder, I get a access denied Message. So for me it seems to be a matter of wrong previlegs.
I've tried to disable Inheritance for the FeedCache Folder and the to re-enable it. But I get an error during enableing (screenshot).
Kim

ADMU7704E: Failed while trying to start the Windows Service associated with server

I am trying to use the "Contrast for eclipse" plugin.
I followed the instruction in this link to install Contrast on Websphere : I have added this line to the Generic JVM arguments :
-javaagent:D:\my_project\.metadata\.plugins\com.contrastsecurity.eclipse\contrast-engine-3.1.4.jar -Xshareclasses:none
But after this operation and when starting the Websphere server manually from the command line, I'm getting this error :
ADMU7704E: Failed while trying to start the Windows Service associated with server: dmgr;
probable error executing WASService.exe: Starting Service: FRWLMCRFF9CellManager01
Service failed to start. startServer return code = -1
The content of the log file : native_stderr.log is not that clear for me :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/my_project/.metadata/.plugins/com.contrastsecurity.eclipse/contrast-engine-3.1.4.jar!/com/aspectsecurity/contrast/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/my_project/.metadata/.plugins/com.contrastsecurity.eclipse/contrast-engine-3.1.4.jar!/com/aspectsecurity/contrast/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [com.aspectsecurity.contrast.org.slf4j.impl.Log4jLoggerFactory]
Unhandled exception
Type=Segmentation error vmState=0x00020002
...
...
----------- Stack Backtrace -----------
MM_MarkingScheme::scanClass:0x013EA5D5 [0x013EA140 +0x00000495]
0x00550E08
---------------------------------------
JVMDUMP006I Traitement de l'événement de dump en cours "gpf", détails "" - Veuillez patienter.
JVMDUMP007I JVM demande un dump System en utilisant 'C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\core.20150513.150320.6048.0004.dmp'
JVMDUMP010I Dump System écrit dans C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\core.20150513.150320.6048.0004.dmp
JVMDUMP007I JVM demande un dump Snap en utilisant 'C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\Snap.20150513.150320.6048.0005.trc'
JVMDUMP010I Dump Snap écrit dans C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\Snap.20150513.150320.6048.0005.trc
JVMDUMP007I JVM demande un dump Java en utilisant 'C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\javacore.20150513.150320.6048.0006.txt'
JVMDUMP010I Dump Java écrit dans C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\javacore.20150513.150319.6048.0003.txt
JVMDUMP013I Evénement de dump traité "gpf", détails "".
Any suggestions ?
This error means the JVM crashed. If your javaagent has native code, you should try to verify that your native code has not overwritten memory owned by the JVM. Otherwise, if your javaagent is pure Java, then this is a JVM error, and you will need to open a PMR with IBM to get assistance.
I'm the vendor. Our agent is pure Java.
My first suggestion would be to try the newest version of the plugin, which we released today. It delivers our 3.1.6 version of the Java agent.
WebSphere uses the IBM JRE, which we've found to have less mature support for the Instrumentation API than HotSpot, and generally more crashy. This is especially true for the older versions. That being said, we've got a lot of customers working just fine on the platform.
I would report the issue to IBM, copy our support email, and try to get a PMR.
Maybe we can try to work around their bug -- what version of WebSphere and JRE are you using?

cannot deploy app to windows phone 8.1 device

When I'm trying to deploy (any) Windows Phone 8.1 error I get the following error in VS2013:
Error 3 Error : DEP6100 : The following unexpected error occurred during boostrapping stage 'Downloading package 'FF63DEA8-0A0C-4E52-B20F-84F390C30F32'':
DirectoryNotFoundException - The system cannot find the path specified.
And in VS2015:
Show Details Severity Code Description Project File Line
Error Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Downloading package 'EB22551A-7F66-465F-B53F-E5ABA0C0574E (NativeMsVsMon)'':
DirectoryNotFoundException - The system cannot find the path specified.
I can deploy the app in Visual Studio 2013 , but in my case this is not an option because VS2013 does not support universal applicationss, so I can't open my project.
Phone is recognized by my computer, it is unlocked, I've tried resetting import export settings.
I have VS2013 update 4.
I was facing the same issue. Don't know if this is related to your issue but I've discovered that all the mess was generated by a failed attempt to update the device OS.
In short, i was unable to update my device to the last OS version. This blocked appx installations and also VS deploys.
For reference
http://www.ibtimes.co.uk/lumia-denim-update-installation-error-8018830f-developer-preview-devices-how-resolve-1482757
The only soultion I've found is to reset the device via the recovery tool mentioned in the above link
good luck

Resources