Posted on

CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default

Compiler Error CS1617

Invalid option ‘option’ for /langversion. Use ‘/langversion:?’ to list supported values.

For example

Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default

Solution

Right click on your project and select “Properties” from menu.

Select Build menu and, in the bottom, click on button “Advanced”.

In the next form you don’t have any voice for the field “Language Version”

Select “default”

Done

Posted on

How to check the execution of Microsoft Agent Backup

To check the outcome of Microsoft Azure Backup execution we can take advantage of the fact that, if the backup fails, some events are generated.

Prepare script to send email

Copy and paste the following code in a new file and modify it with your data (mail server, user, password, messages).

$SMTPServer = "YOUR SMTP SERVER"
$SMTPPort = "25"
$Username = "USERNAME TO ACCESS SERVER"
$Password = "PASSWORD"

$to = "Email recipient"
# $cc = "cc email recipient"
$subject = "Error Backup MyServer"
$body = "backup failed"
# $attachment = ""

$message = New-Object System.Net.Mail.MailMessage
$message.subject = $subject
$message.body = $body
$message.to.add($to)
# $message.cc.add($cc)
$message.from = $username
# $message.attachments.add($attachment)

$smtp = New-Object System.Net.Mail.SmtpClient($SMTPServer, $SMTPPort);
$smtp.EnableSSL = $true
$smtp.Credentials = New-Object System.Net.NetworkCredential($Username, $Password);
$smtp.send($message)
write-host "Mail Sent"

Save it as file with extension .ps1

Creating a new Task

  1. Open the Task Scheduler : Control Panel -> Administrative Tools -> Task Scheduler
  2. Right-click the “Task Scheduler Library” branch, and select the New Folder option.
  3. Type a name for the folder. For example, MyTasks.
  4. Expand the “Task Scheduler Library” branch, and select the MyTasks folder.
  5. Click the Action menu.
  6. Select the Create Task option.

Task to check Azure Backup

  1. In the Name field you can write something like “Check Micrososft Agent Backup”.
  2. Click the Triggers tab.
  3. Click the New button.
  4. Use the “Begin the task” drop-down menu to select “On a Event”
  5. Click custom option under the Settings section.

  1. Click the Edit Event Filter… button.
  2. Go the XML tab and at the bottom of the menu press the edit query manually button.
  3. Copy and paste the below XML and OK the changes.
<QueryList>
<Query Id="0" Path="CloudBackup">
<Select Path="CloudBackup">*[System[(Level=1 or Level=2) and (EventID=5 or EventID=10 or EventID=11 or EventID=12 or EventID=13 or EventID=14 or EventID=16 or EventID=18)]]</Select>
</Query>
</QueryList>
  1. Click the Actions tab.
  2. Click the New button.
  3. Browse on the previous powershel script
  4. Clicck OK to save the task

From now on, an email should be sent to you when the backup fails.

Posted on

Unable to cast from Windows 10 to Chromecast

Scenario

All computers cannot locate the Chromecast, whether connected via wifi or via cable.
In detail :
All smartphones connected to wifi can see the Chromecast and transmit.
All computers connected to wifi or cable can ping the Chromecast but cannot find it in transmission.
Some computers are in domain (win 10 pro) or out of domain (win 10 home).
Disabling the firewall on a single computer does not change the result.
Disabling the firewall from the router does not change the result.

In some computer networks, Chrome on Windows 10 cannot locate the Chromecast to cast.

Solution

On your computer, open Chrome and type

chrome: // flags /

You have to enable 2 special flags. The flags are hundreds so you will have to look for them. As pictured:

media-router-cast-allow-all-ips  (Connect to Cast devices on all IP addresses)

Have the Media Router connect to Cast devices on all IP addresses, not just RFC1918/RFC4193 private addresses. – Mac, Windows, Linux, Chrome OS

cast-media-route-provider

Enables the native Cast Media Route Provider implementation to be used instead of the implementation in the Media Router component extension. – Mac, Windows, Linux, Chrome OS

 

Press the lower right “Relaunch” button to save the new settings. At this point, after Chrome has restarted, you can cast to the Chromecast.

Posted on

Windows 10 scanning software

When you buy a scanner, you are provided with scanning software from the manufacturer. This program, generally to be installed, is very often feature-rich. This richness translates into a very complex interface, perhaps in some cases not clear to users who do not need to make particular choices but simply “push a button” and start scanning.

In all cases where the manufacturer’s scanning program is “oversized” you can choose to use the scanning software included in your Windows 10.

Windows 10 contains document scanning software. This scanning software initially detects the presence of an installed scanner and allows its use.

You can launch the software by typing “wiaacmgr.exe” in the search bar.

If you want to make it even more convenient to use you can go to the System32 directory, find the software file, go over it with the mouse and push the right button; select “Send to Desktop”. You will create a shortcut for the software on the desktop.

C:\Windows\System32\wiaacmgr.exe