SnapshotGenerationAgent GenerateSnapshot throws an error: The native replication resource dll failed

Highlighted
Regular Visitor
 
Question
You cannot vote on your own post
0
 

 I have installed package Microsoft.SqlServer.SqlManagementObjects v140.17199.0

I generated Distributor, Publication, Subscription successfully.

but on SnapshotGenerationAgent.GenerateSnapshot() I got an error:

System.TypeInitializationException: The type initializer for
 'Microsoft.SqlServe
r.Replication.StringResources' threw an exception. ---> System.ApplicationException: The native replication resource dll failed to load.

at Microsoft.SqlServer.Replication.NativeResourceStringLoader..ctor()

at Microsoft.SqlServer.Replication.StringResources..cctor()

   --- End of inner exception stack trace ---

   at Microsoft.SqlServer.Replication.ReplMessage..ctor(Exception e)

   at Microsoft.SqlServer.Replication.HistoryMessage..ctor(Exception e)

   at Microsoft.SqlServer.Replication.SnapshotGenerationAgent.SnapshotGeneration

AgentMessageFactory.CreateAgentMessage(Exception e)

   at Microsoft.SqlServer.Replication.AgentCore.LogMessage(Exception e)

   at Microsoft.SqlServer.Replication.AgentCore.ThreadFailedHandler(Exception e)

The type initializer for 'Microsoft.SqlServer.Replication.StringResources' threw an exception.

what could have caused the error?
I am using SQL 2014 Server Standard Edition. 
Could somebody please help me!!!!

0 Replies