Quantcast
Channel: My Errors & My Solutions
Viewing all 123 articles
Browse latest View live

A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookWriter.Create failed

$
0
0

I was using the function Export to Excel from the Config. Package Card in Microsoft Dynamics NAV 2017 when I’ve received the following error message:

A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookWriter.Create failed with this message:
Could not load file or assembly ‘DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.

A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookWriter.Create failed with this message:
Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Cause:
Probably Open XML SDK 2.5 for Microsoft Office has not been installed on your computer.

Solution:
Close Excel.
Install Open XML SDK 2.5 for Microsoft Office from Microsoft Dynamics NAV DVD, the installation file is under

Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\

Restart NAV Service after the installation.

Did my solution solve your problem? Leave a reply.


Import-NAVEncryptionKey : Cannot establish a connection to the SQL Server/Database

$
0
0

If you are sure that the values inserted in the parameters are correct but you are receiving the following error message:

Import-NAVEncryptionKey : Cannot establish a connection to the SQL Server/Database.

This could be due to one of the following reasons:
* SQL Server is not started.
* The database does not exist.
* Proper permissions have not been given to the NAV Server Account.
Try again later or contact your system administrator.
At line:1 char:1
+ Import-NAVEncryptionKey
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (0:Int32) [Import-NAVEncryptionKey], NavCSideException
+ FullyQualifiedErrorId : Microsoft.Dynamics.Nav.Management.Cmdlets.ImportNavEncryptionKey

Cause:
Maybe the user you are using to run the script does not have access to the db, this is a common issue when you use ‘Database Authentication Mode = SQL Server Authentication’. To be safe use the same account you set up in the instance for the ‘Database Credentials’.

Solution:
Run Windows PowerShell ISE as Administrator and run the following script changing placeholders with the angle brackets (<>) with your values

Set-ExecutionPolicy unrestricted -Force
Import-Module 'C:\Program Files\Microsoft Dynamics NAV\<NavVersion>\Service\NavAdminTool.ps1'

$Credential = (New-Object PSCredential -ArgumentList '<LoginName>',(ConvertTo-SecureString -AsPlainText -Force '<Password>'))

Import-NAVEncryptionKey -ApplicationDatabaseServer <DatabaseServer> -ApplicationDatabaseCredentials $Credential -ApplicationDatabaseName <DatabaseName> -KeyPath '<KeyFilePath>' -ServerInstance <InstanceName> -Force

Did my solution solve your problem? Leave a reply.

Google Chrome video black only audio

$
0
0

Just fixed in my pc.

Open Google Chrome and write

chrome://flags

scroll or search the feature Hardware-accelerated video decode
select Disabled then
click the button RELAUNCH NOW

Did my solution solve your problem? Leave a reply.

This could be due to CredSSP encryption oracle remediation

$
0
0

[Window Title]
Remote Desktop Connection

[Content]
An authentication error has occurred.
The function requested is not supported

Remote computer: <hostname or ip address>
This could be due to CredSSP encryption oracle remediation.
For more information, see https://go.microsoft.com/fwlink/?linkid=866660

[OK]

Solution:
Open Local Group Policy Editor (executing gpedit.msc)
Navigate to Computer Configuration -> Administrative Templates -> System -> Credential Delegation
Double-click on Encryption Oracle Remediation the select Enabled and change Protection Level to Vulnerable click Apply then OK.

Source: https://blogs.technet.microsoft.com/mckittrick/unable-to-rdp-to-virtual-machine-credssp-encryption-oracle-remediation/

Facebook does not play videos using Microsoft Internet Explorer or Edge

$
0
0

Altenative titles for this post could be:

Microsoft Internet Explorer or Edge does not play videos

Microsoft Internet Explorer or Edge does not play YouTube videos

Facts but not necessarly correlated:
Using Google Chrome I was able to play video on Facebook but not using Internet Explorer.

Assumption:
Have you installed Windows 10 N or KN? If yes continue reading this post.

Cause:
“N editions of Windows include the same functionality as other editions of Windows, except for media-related technologies, Windows Media Player, and certain preinstalled media apps (Groove, Movies & TV, Voice Recorder, and Skype). Media Feature Package provides a way for a customer to restore these excluded technologies. Some features will require reinstalling hardware drivers after installing the Media Feature Pack.”

Solution:

  1. Press Windows+X then select System to find (under “Windows specifications”) which Window Edition and Version you have installed.
  2. Open the following link:
    https://support.microsoft.com/en-us/help/3145500/media-feature-pack-list-for-windows-n-editions
  3. Download and install the Media Feature Pack corresponding to your version (a system restart is required at the end of the installation).

Did my solution solve your problem? Leave a reply.

WiFi network connected but Login page doesn’t appear

$
0
0

Solution:
Open with the browser the following url

http://www.msftconnecttest.com/redirect

This time I’ve decided write first the solution and offer to the reader the option to read the full post or not.

Introduction:
Just recently I bought a Chinese Tablet with Android to my son Thomas and surprisingly I’ve faced this issue.
Well, how complicated could be connect a device to an Hotspot (Free Wifi) network for a person that has a degree in IT?
I tell you my list of attempts in order as I thought:

  1. Restart the device (favorite Microsoft solution)
  2. Open the default router page using the following IPs/URLs
    192.168.0.1 
    192.168.1.1 
    127.0.0.1 
    127.1.1.1 
    1.1.1.1
    http://localhost
  3. Assigned Google DNS
    8.8.8.8 
    8.8.4.4
  4. Open an HTTP website in Incognito
    http://example.com

After all those attempts failed I started thinking that probably the device was broken/not working properly but it was connected when we were at home…

Idea:
I should force the browser to do a refresh, I remembered that often appeared a page, I remembered that there was a combination of the two words Microsoft and Connect. Just I googled it and found the url

http://www.msftconnecttest.com/redirect

Did my solution solve your problem? Leave a reply.

Error in required structured data element

$
0
0

I’ve received an email from Goodle Search Console about an issue found in my web site.

Clicking the button “FIX AMP issues using Search Console” Google Search Console opens showing the URLs with problem.

Solution:
Use the following testing tool
https://search.google.com/structured-data/testing-tool
to analyze the urls, see the error and correct them. 
After you fixed the issue you can click the button to Validate The Fix so that Google can add the url in their queue to re-validate the page.

Did my solution solve your problem? Leave a reply.

The program can’t start because MSVCP120.dll is missing from your computer

$
0
0

finsql.exe – System Error
The program can’t start because MSVCP120.dll is missing from your computer. Try reinstalling the program to fix this problem. 
OK 

Solution:
You need to install Visual C++ Redistributable Package.  
You can download it from the following link:
https://support.microsoft.com/en-us/help/3179560/update-for-visual-c-2013-and-visual-c-redistributable-package

If you’re using a 64-bit Windows version you need to install both version x86 and x64 (vcredist_x86.exe_ and vcredist_x64.exe) If, however, you’re on 32-bit Windows version, install only vcredist_x86.exe.

Did my solution solve your problem? Leave a reply.


Access to the path ‘finsql.exe’ is denied

$
0
0

Cause:
This is likely because you had finsql.exe running while trying to change somethis on it.

Solution:
Shut down finsql and try again.

Did my solution solve your problem? Leave a reply.

HOW TO Refresh NAV database in NAV Container without the need to Recreate the container

$
0
0

This post actually started with an Issue I created in NavContainerHelper GitHub.

💡 I’m working in a script for Continuous Integration and although the creation of a container requires few minutes I was looking how to optimize the time of execution of the whole build process.

Freddy Kristiansen is a Microsoft Evangelist that is working hard to make it easier to work with NAV using Docker Containers, thanks again Freddy.

Freddy initially marked my issue with label “WONTFIX” 🙁 but after I explained to him my motivation he changed the label to “ENHANCEMENT” 😀

He did not include any new functionality to NavContainerHelper but he kindly provided me with the script to copy and paste, and as I always do, I like to share good things.

Solution:
Right after the creation of a NAV Container, run the following script:

# To add just after the creation of the NAV Container
$containerName = "scadev"
$config = Get-NavContainerServerConfiguration -ContainerName $containerName
Invoke-ScriptInNavContainer -containerName $containerName -scriptblock { 
  Param($DatabaseServer, $DatabaseInstance, $DatabaseName, $NewDatabaseName)
    Copy-navDatabase -DatabaseServer $DatabaseServer -DatabaseInstance 
  $DatabaseInstance -SourceDatabaseName $DatabaseName -DestinationDatabaseName 
  $NewDatabaseName
} -argumentList $config.DatabaseServer, $config.DatabaseInstance, $config.DatabaseName, "backup"

So next time you run the build process, just verify that the Container exists and in case replace the database with the backup taken previously (it takes 10-20 seconds)

$containerName = "scadev"
if (Test-NavContainer $containerName) {
  $config = Get-NavContainerServerConfiguration -ContainerName $containerName
  Invoke-ScriptInNavContainer -containerName $containerName -scriptblock { 
    Param($DatabaseServer, $DatabaseInstance, $DatabaseName, $NewDatabaseName)
    Copy-navDatabase -DatabaseServer $DatabaseServer -DatabaseInstance 
    $DatabaseInstance -SourceDatabaseName $DatabaseName -DestinationDatabaseName 
    $NewDatabaseName
  } -argumentList $config.DatabaseServer, $config.DatabaseInstance, "backup", $config.DatabaseName
} else {
# Creation of NAV Container
}

Source: https://github.com/Microsoft/navcontainerhelper/issues/315

Did my HOW TO help you? Leave a reply.

HOW TO Synchronize a tenant database schema in a NAV Container

$
0
0

In order to work with NAV containers I highly recommend to use NAVContainerHelper PowerShell module.
In the version 0.5.0.0 a new really powerfull function Invoke-ScriptInNavContainer
has been released, it allows you to invoke a PowerShell scriptblock in a NAV container.

Using NAVContainerHelper you do not have to care about loading NAV modules because they are already part of it and loaded, so to return to the title of this post, the script to synchronize database schema is:

$containerName = "scadev"
Invoke-ScriptInNavContainer -containerName $containerName -ScriptBlock {        
    Get-NAVTenant NAV | Sync-NavTenant -Mode Sync -Force 
}

Invoke-ScriptInNavContainer has two mandatory parameters, the name of the container and the script block. In the script block I’m using two standard PowerShell functions included in the NAV module Microsoft.Dynamics.Nav.Management:

  1. Get-NAVTenant to retrieve the tenant
  2. Sync-NavTenant to synchronizes the database schema

Did my HOW TO help you? Leave a reply.

GitHub no longer supports Internet Explorer

$
0
0

This morning I’ve had access to a GitHub project using Internet Explorer and appeared a notification bar on the top of the page to inform that “GitHub no longer supports Internet Explorer” and suggesting to use Microsoft Edge, Google Chrome or Firefox.

You can find the list of supported browser in the following link:
https://help.github.com/en/articles/supported-browsers

Reading the supported browsers page we can find that support is offered also to Safari and that it could be limited only to the latest version of Firefox.

HOW TO remove deleted branch from TFS that still appears in Visual Studio

$
0
0

This is the story, if you don’t have time to read it, scroll down to read directly the solution.

Today I’ve noted that in the list of the TFS branches in my Visual Studio there was a branch that had been deleted by one of my colleagues but it was still appearing in my list.
I’ve tried first to refresh the list, than tried to cancel it but it was creating new changes to check in and this was not exactly what I was expecting…
I tought it was because I had downloaded the content (there was a local folder connected) but nothing again. Used the funciton “Get Latest Version” but it remained still there. “Check In Pending Changes” showed the message that there was nothing pending to check-in.

Solution:
Right-click on the branch in Visua Studio then select “View History”. On the top of the list you should see the changeset related to the deletion, Right-click on it then select “Get This Version”.

Did my HOW TO help you? Leave a reply.

The disk is write protected

$
0
0

I was so happy when I noted that my printer Canon T5050 had an SD Card Reader integrated and with customer friendly access from the left bottom corner of the control panel in the front of the device.
I’ve inserted my SD card and a new icon appeared with the removable memory with assigned a new drive letter.
Perfect, I was able to read the pictures from the memory and furthermore, I’ve noted that the preview of the picture appeared in the display of the printer so that it can print without pc (“standalone” functionality).
Right now you read the best part of the story but when I tried to add a new file to my SD Card I’ve received the following error message:

I googled this error message and found a lot of different posts, some of them were suggesting to change Windows Registry Key, other to verify drivers or that the card was working, I also thought the issue was related to Windows 10 but nothing. When I tried a different SD card I understood that the issue for sure was not related to the memory card itself but rather to the card reader.
Really strange, I can read but not write.

At this point, I started navigating the user settings in the printer from the control panel in the front of it and I found that there is a setting to enable to write as well.

Solution:
First, remove the SD (this setting can be changed only with no SD inserted!)

From the control panel (in the front of the device) navigate to Settings -> Device Settings -> Device User Settings -> Read/Write Attribute
Then it will appear an information message:
When card read/write attribute is not set to (Not writable from PC), the power cannot be turned off automatically with the auto power off setting.
The Click OK and you will see the 2 options possible:

  • Writable from USB PC
  • Not writable from PC (this is the default value)

Select the first option “Writable from USB PC” and then insert the SD card.

Now you we will be able to write in it.

Remember the information showed before, the printer will not power off automatically and unfortunately when you will turn off the user setting will be lost so next time you will have to remember the steps above.

Did my solution solve your problem? Leave a reply.

Script to rebuild or reorganize indexes in SQL databases

$
0
0

This link contains useful information and scripts to be used to rebuild or reorganize indexes in SQL databases.

Personally I found really useful the script at point D

https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-index-physical-stats-transact-sql?view=sql-server-2017

You can eventually comment adjust the following lines to prepare the scripts without run them

        --EXEC (@command);  
        --PRINT N'Executed: ' + @command;
        PRINT @command; 

Did my post help you? Leave a reply.


DevOps Deployment Group script stuck on “Connecting to the server.”

$
0
0

Scenario:
I’m adding a machine to a Deployment Group in DevOps, I copied the script from DevOps page and pasted in Windows PowerShell ISE that I’m running as Administrator in the target machine.

Run the script, it starts showing the steps until it stops (no errors shown) at the step

Connecting to the server.

Solution:
Run the script using Windows PowerShell (Run as Administrator) rather than using Windows PowerShell ISE

Did my solution solve your problem? Leave a reply.

HOW TO uninstall older versions of a PowerShell module installed

$
0
0

When using Windows PowerShell ISE it’s possible to import a PowerShell module, open the Command tool panel (from the menu Add-ons -> Command) and clicking Refresh, then have a list of the commands available.

It’s annoying that sometimes the same command appears multiple times, as the result of an installed PowerShell module that you updated.

Today’s example is from NavContainerHelper PowerShell module, searching in my pc for one of its commands I had multiple entries for the same command, as shown in the following picture:

Solution:
Run Windows PowerShell ISE as Administrator.
Copy and paste the following PowerShell script that retrieves the latest version of the desired module and then recursively uninstalls the previous versions installed.
Interesting to note, you can use the -WhatIf parameter at the end to simulate and preview the changes without doing them (remember to remove -WhatIf parameter when you want to apply the changes and to set the $ModuleName to the desired PowerShell module).

$ModuleName = 'navcontainerhelper';
$Latest = Get-InstalledModule $ModuleName; 
Get-InstalledModule $ModuleName -AllVersions | ? {$_.Version -ne $Latest.Version} | Uninstall-Module -WhatIf

To see the command list updated you need to restart Windows PowerShell ISE.

Did my HOW TO help you? Leave a reply.

What’s the password of the WiFi I’m connected to?

$
0
0

This post can be applied only to the Microsoft Windows operating systems.

Goal:
You are connected to a WiFi using your pc with Windows, and you need to know what is the password used to connect into the network

I know two methods to achieve this goal.

Method 1:

  • Right-click in the taskbar in the WiFi icon (marked in red in the image)
  • Click on Open Network & Internet settings
  • Click on the menu Wi-Fi
  • Click on Change adapter options
  • Right-click on your Wi-Fi adapter
  • Click on Status
  • Click the button Wireless Properties
  • Navigate to the Security tab
  • then tick Show characters checkbox to show the WiFi password in the Network security key field.

Method 2:
Open the Command Prompt or Windows PowerShell and run the following command replacing “WiFiName” with the name of the WiFi network you are connected to

netsh wlan show profile name="WiFiName" key=clear | findstr Key

The Key Content will display the WiFi password in the command prompt as a result.

Note: “WiFiName” is not case sensitive but if you don’t write correctly your WiFiName no error and no result will be displayed.

Do you think that my Tip & Trick is useful? Leave a reply.

docker : error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/version: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

$
0
0

Solution:
Open PowerShell as Administrator and run the following command

net start docker

Did my solution solve your problem? Leave a reply.

docker : Error response from daemon: removal of container ### is already in progress

$
0
0

You run one of the following PowerShell commands to remove a container

Remove-NavContainer ###

or

docker rm ###

but you receive the following error message:

docker : Error response from daemon: removal of container ### is already in progress

with the result that you are unable to stop, kill or remove the Docker container. Even a restart does not fix this issue.

Solution 1:

  1. Run the PowerShell command net stop docker to stop docker-engine (Note all containers will stop)
  2. Delete the folder in C:\Programdata\docker\containers whose name starts with the ID from the error message (###)
  3. Run the PowerShell command net start docker to start docker-engine

Solution 2:

Restart the machine will restart docker-engine if it the service is set up to start Automatically.

Did my solution solve your problem? Leave a reply.

Viewing all 123 articles
Browse latest View live