Category Archives: Microsoft

Hybrid configuration Office 365 and exchange 2010

This is a step by step to how to cofigure office 365 in a hybrid enviromment, with an exchange 2010 on premise single server, once you have your subscription activated,

the first step:

add your domain to office 665 console, you have two options to validate that you are the owner of the domain, adding some dns records is the option prefered:


Read More ...

Best way to consume Dynamics NAV web services from external php application

After investigating a bit the connection alternatives to the services of Microsoft Dynamics NAV webservices from an external platform, specifically a web application programmed with PHP and Laravel framework, I have reached the following conclusions:

  • from PHP it is much easier to use OData + json
  • Modern versions of Dynamics NAV (2016/2017) allow connection by OData
  • Through OData you can obtain, register new records and also delete records. with the verbs (GET / POST / PUT / DELETE)

Read More ...

Laravel custom Authentication, With Microsoft Dynamics NAV Odata Webservice (table Customers)

I was created one project with laravel 5.4 and custom authentication to one table of Dynamics NAV (2017) trough web services, these are the steps that I was make to do this:

  • I was folow some steps As this article explains perfectly: CustomUserProvider.php 
      • Modify config/auth.php:
            'providers' => [
                'users' => [
                    //'driver' => 'eloquent',
                    'driver' => 'customuserprovider',
                    'model' => App\User::class,
                // 'users' => [
                //     'driver' => 'database',
                //     'table' => 'users',
                // ],
      • but then Modify providers/AuthServiceProvider to use my own customuserprovider:
         <?php namespace App\Providers; use Illuminate\Support\Facades\Gate; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ protected $policies = [ 'App\Model' => 'App\Policies\ModelPolicy',
             * Register any authentication / authorization services.
             * @return void
            public function boot()
                // added to modify auth provider that's the trick
                 \Illuminate\Support\Facades\Auth::provider('customuserprovider', function($app, array $config) {
                return new CustomUserProvider($app['hash'], $config['model']);

Read More ...

LINQ to XML Group by C# alternatives

The problem:
I have a xml variable Xdocument in C# like this:

I want to do a “group by” all the same records:


Read More ...

Hyper-V error 800700B7

Hyper-V failed to enable replication for virtual machine ‘xxx’ : Cannot create a file when that file already exists. (0x800700B7). Virtual machine ID 27bxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx

Replication scenario :

Consider my primary server is A and replica server is B. Replication is running A to B. There are one VM replicating from A to B. I have tried to resume replication both the VMs but replication is not resumed. So first i have removed replication from A and From B for those two VMs. Then removed VM from B and respective folder of VM (folder name on ‘VM ID’).

I am getting this error while i am enabling the replication again as it was disturbed so i need to re-enable it. But getting upper error. I have removed the replication and deleted the VM folder from replica. still it is showing as above and not enabling the replication.

The Solution:

Find in all folders on the destination server for the virtual machine ID:  “27bxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx”

I found one folder in :”Undolog Configuration” that can not delete , then I restart  the “Hyper-V Virtual Machine Management Service” and can delete it.



Read More ...


Subscribe to my Newsletter