ServiceEventSource.Current.ServiceMessage doesn't show in Visual Studio Diagnostic Event window - azure-service-fabric

Out of the box the line
ServiceEventSource.Current.ServiceMessage(serviceContext, $"Starting Kestrel on {url}");
does not show up in my Diagnostic Window. The following execution always returns false in the ServiceEventSource.cs
this.IsEnabled()
However removing that check still shows nothing in the logs. I cannot output info using the generated class.
Can anyone help?
Thanks

This issue was solved by adding the EventSource in visual studio as per the correct answer here:
Azure ServiceFabric samples not logging to ETW

Related

There was an error while Opening file handle

Okay so I am trying to update my VS Code but every time I click on restart to update I get the error message saying that :
"There was an error while Opening file handle: C:\Users\neela\AppData\Local\Programs\Microsoft VS Code\logs\custom-scanner-service.log": failed to create file handle: The process cannot access the file because it is being used by another process.
Please read the log file for more information :
C:\Users\neela\AppData\Local\Temp\vscode-inno-updater-1624166774.log
After I opened the log file mentioned above here's what it says :
Jun 20 11:00:03.966 ERRO Failed to create file handle: The process cannot access the file because it is being used by another process.
Can someone please guide me on this situation.
I had faced the same problem for two days. Then I ran the vs code as administrator and check for update manually from the top help menu. It got updated successfully then.
I tried taking ownership of the %appdata% vs code files, but ultimately I still ended up needing to run the update as admin.
start>right click vs code>file location>right click & open properties>compatibility tab>run as administrator.
restart vscode. This worked for me
run your VScode as administrator, then go to setting at the bottom left. Click Check for Updates. It will work.

How to locally debug a Queue triggered Azure Function wirtten in PowerShell with Visual Studio Code?

I would like to have some information about how to do such a thing.
I've installed the plugins for Visual Studio Code, I've imported the modules at the beginning of my PowerShell script, I've fill the requirements.psd1 with the appropriate module names.
Still, when I launch the command, nothing happen.
My goal is to create a team in Microsoft Teams using PowerShell.
I put a breakpoint and it is never reached.
What am I doing wrong ?
Thank you.
Summarize the comments above as below for other communities reference:
Just wait for some minutes until the powershell terminal displays some relevent information. Otherwise that means it is importing/installing modules. We can also refer to the post provided by Mathias in the comments.

How does Nuget.VisualStudio IVsPackageInstallerEvents get invoked

I was looking for a way to hook into the Nuget Visual Studio UI/Console to be triggered on events and found there is a Nuget.VisualStudio.dll that has the events I want.
How would I register these events in my visual studio solution to be invoked when using the Nuget Dialog/Command Line? I can't seem to find a full example of this anywhere.
Links:
http://blog.nuget.org/20120926/invoking-nuget-services-from-inside-visual-studio.html
https://docs.nuget.org/ndocs/visual-studio-extensibility/nuget-api-in-visual-studio
Thanks

Unable to edit MS 2010 doc on IT Hit Ajax File Browser Demo

I went to the example page:
http://www.ajaxfilebrowser.com/#http://www.ajaxfilebrowser.com/User9237b4f/
I have created a file using Microsoft Word 2010 (14.0.7145.5001) SP2 MSO (14.0.7145.5000). The name of the file is "This is the End my Friend.doc", but I don't know how to attach the to this inquiry.
I am using Chrome version 41.0.2272.101 m
I then clicked ‘browse’ on the example and chose to add that file.
I then double clicked the file and received “Current file cannot be opened for editing”
Is there any way I can figure out what is causing this issue? Do you have any suggestions for how to debug this issue?
Extremely grateful for any assistance you can provide.
Here are a couple of suggestions:
Make sure the Microsoft Office plugin is enabled in your web browser. You can find the details about how to enable it here: ITHit WebDAV - Office not available message showing when Office is installed.
Verify that you have all Microsoft Office and Windows updates installed.
I never was able to get the example to work, but when I changed the following line in ITHitWebDavClient.js from
if (!sho.EditDocument(_526)) {
to
if (!sho.EditDocument(_526 + '\0')) {
I was able to get our own code to work in Chrome.

Runtime Error in Visual Simulation Environment - Microsoft Robotics Studio

I am using Microsoft Robotics Studio for a school project and I am getting a strange error when I try to run the Visual Simulation Environment. It was working fine until yesterday and then suddenly it gave me a runtime error saying "Illegal command line arguments... do not use VPLHost directly, use dsshost instead to run a manifest" But I am only clicking on Run in VPL/DSS Manifest editor.
I am running MRDS as administrator and I even tried re-installing MRDS but it is still showing the same MS VPL Runtime error. I tried to search online, but cannot find any suitable solution.
I already tried running the existing samples, I.e. Urban Environment, Multiple Simulated Robots etc. but it still gives me the same error. The strange thing is that it was working perfectly one minute, and then started giving me this error message the next minute, when I had not changed anything in between. In fact, I had wanted to change something in my manifest, so I closed the running VPL application, closed VPL and opened DSS manifest editor, and ran my manifest and that is when I got this error.
What is going wrong? Is some MRDS script using vplhost32.exe instead of dsshost? If so, then where and how do I change it?
I tried running the urban envrionment manifest from the command prompt and Using DSSHost32 directly. This time, it didn't give me a runtime error but an intiialization error. I tried changing port numbers but it still doesn't work. I have deleted many files from my computer to free space (JIC) and it still doesn't work. The window just doesn't open even when I hover over it in Windows 7.
The error message looks like this: Only one usage of each socket address (protocol/network address/port) is normally permitted."
This was even after I checked netstat for free ports and tried but I get this error message. Its either this one or the "Don't use VPLHost directly" if I run it through VPL or DSS Manifest Editor.
Could it be that some external services are interfering with DSSHost/VPLHost? Are there any such services which I could try killing? ANY help/suggestion would help right now as my project is due Thursday and this is a really unfortunate time for it to be acting up like this.
Does the problem reproduce after logging off & logging back on? It's likely that you had a process hanging around that you weren't aware of. Logging off should shut down any processes you personally started.
I don't know the solution of your problem, but it would be better that you post your question on the link below:
http://p2p.wrox.com/book-professional-microsoft-robotics-studio-isbn-978-0-470-14107-6-410/
[official forum for the book : Professional Microsoft Robotics Studio], i hope you will shortly get reply there,
The other option is to post your question on the msdn forum,
http://social.msdn.microsoft.com/Forums/en-US/category/robotics
hope this would help....