I'm so confused. I have been developing a VB.NET Windows Form in Visual Studio 2015. Its been working great for years. All of a sudden, my call to test if its network deployed when debugging throws:
'System.Deployment.Application.InvalidDeploymentException' in System.Deployment.dll
Additional information: Application identity is not set.
This is the line that throws the error:
If Not System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed Then
I have two projects and one seems to work just fine. I've poured over differences between the two projects and can find nothing. I've poured over StackOverflow and google at large and I can't find anything.
Any ideas?
Thanks for the comments/help. I had a second machine to try and it worked just fine, so the issue was isolated to this specific project on a specific machine. I took TnTinMn's suggestion and poured over the Exception Settings (in VS Debug->Window->Exception Settings, filter by InvalidDeploymentException). On the working machine/projects, it was unchecked. On the non-working machine/project it was checked. I unchecked it, and all is back to normal now. No clue how that randomly got set all of a sudden, but hopefully this helps someone in the future.
Related
I was looking for a solution to the problem on many internet forums, but I couldn't find it. The topic always ends with the sentence - that we will fix this problem with the next VS update. (Since 2017...). Even after updating VS nothing changes. When I try to share my project with Live share, my guest cannot access the project files and can't open them, he gets an error:
The Output Channel Recipient has limited functionality due to the lack of the dependency service: Microsoft.VisualStudio.Shell.OutputChannelStore (0.1).
C ++ Service has limited functionality due to the lack of a dependency service: Microsoft.VisualStudio.VC.ManagedPackageService.
I use visual studio 2022 community. Since April, there have been a lot of entries about this problem, but somehow there is no solution, anyone knows what's going on?
With current version of VS(which was downloaded on 16.12.2022) live share works correctly.
I have written a rather complex application in Microsoft Access. It is split into front end and back end files. To protect my code, I have compiled it and saved it as a runtime .accde file, which I then changed to an .accdr file to ensure it operated as a runtime. I have created two versions of the application: one for those with 32-bit Office installed and one for those with 64-bit office. I have used Inno Setup to package the application, the data file, and other files such as the icon file, the license file, etc., into an installable package, which works just fine.
Among my team of 27 beta testers of this application, so far 6 have downloaded it, and I have tested it on four of my own computers. On seven of these computers, the installation works perfectly and the application runs with no problems.
On the computers of three of my testers, when they try to run it, they get this error message:
The expression On Open you entered as the event property setting produced the following error: Bad file name or number.
* The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].
I'm pretty sure I know where the code is that's causing the problem, but cannot for the life of me figure out why the application crashes on those 2 computers but not on others.
The On Open event I suspect of causing the problem checks the linked tables, gets their connect string, then looks at the path for that string for the back end database. If it does not find it there, the procedure pops up a file selector dialog and instructs the user to find the data file, then it relinks all the tables.
If anyone could point me in the right direction to fixing this problem, I would be extremely grateful.
This is typically caused by a reference labelled as MISSING.
You have two (three) options:
Run the application on the offending machines with a full version of Access that lets you debug the code
Create a small test application that lists and verifies the references you use, and run this on the offending machines
Remove those two customers
Thanks to all the contributors here. Because of these folks and additional online research, the latest answer I can find is this:
This error occurs on a small percentage of computers on which the app is installed, and no one has yet figured out why, what causes it, or how to fix it. The workaround is to install the 2013 version of the Access runtime, as later versions will still cause the problem.
At least one of the offending computers is running the Click-to-Run version of Office. Still gathering information, but that's the status as of now.
I was creating First MVC 6 Web Application , but on create only I'm getting error at References ( Error - see Error List ) as shown in Image. I have tried several times also refered many Blogs where giving ASP.NET 5 tutorial ( Stackoverflow, Codeproject, ASP.Net/vNext and many more ) I think there is some problem with my installed VS 2015 or might be some thing else, not getting were I'm making mistake
On your Visual Studio Package Manager Console run the command
dnu restore
While dnu restore usually helps, I have found that the way to make it run automatically is to turn on the checkboxes in Options->Nuget Package manager. If you turn the first two ones on, then it should be doing this automatically without the need to run the console all the time (at least it worked for me).
P.S. I don't know what kind of connection exists between these checkboxes and the dnu restore, but somehow it triggers restore.
I'm using Visual Studio 2008. I have no idea what happened, but all of a sudden I noticed that the Properties window for ALL of the DataGridViews in my project went blank. I've tried dropping in new ones..still blank. I restarted Visual Studio and my computer...still blank. I've done some google searches, and I've found people who have had the same problem, but there is no solution and it appears that Microsoft has been unable to duplicate it. Any ideas?
I had the same problem as Badr El Ouassif defined in my XP virtual machine, working with VS2008. In my case it was because I changed a folder's access security to read-only, since this folder needed a big ammount of hard disk capacity and I wanted VS not to write there.
c:\Documents and Settings[USER]\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies
The properties appeared as soon as I came back to establish the original configuration of the folder, full control for every user.
I am having serious problems with the Microsoft Windows Common Controls 6.0 SP6 library in Access. I have a number of scripts which were working fine before the weekend, but which fail lately on multiple different computers when they encounter the StrConv function. Here's a low-down on what's been going on:
Previously, all was working fine. On the afternoon of Friday the 20th (4 days ago), I began encountering some odd messages when I moused over a progress bar ActiveX control I had on one of my forms. This happened on the MouseMove, MouseDown, MouseUp and MouseClick events at least; the message reported was "The expression [MouseMove] you entered as the event property setting produced the following error: There was an error loading an ActiveX control on one of your forms or reports." I had registered none of the events mentioned on this control. Scripts in general were still working at this point.
Yesterday (after the weekend), I found that scripts I had written no longer worked. When encountering the StrConv function (which I was using to convert a string to uppercase), the VBA editor brought up an error message saying "Compile error: Can't find project or library." This function I'd imagine is quite a core part of the VBA language, but the only missing library I could find under Tools->References was "Microsoft Windows Common Controls 6.0 (SP6)". The missing file was listed as C:\Windows\system32\MSCOMCTL.OCX but this was present on the machine anyway. Browsing to it in the references dialogue made no difference.
Since then I have tried installing various different Microsoft Visual Basic redistributions, have followed the instructions at http://www.fmsinc.com/MicrosoftAccess/controls/mscomctl/, have phoned our company's tech support and have tried a system restore to a point where the scripts functioned previously, but nothing has worked. The database I am using resides in a networked folder on a server but the MS Access applications are local to the workstations.
Is there any way to resolve this issue?
Simply open one of the forms giving you trouble in Design View. Insert a new ActiveX object control in the form and save. Load the forms again. Hopefully this solves the problem. You can then safely delete the added control.