Could not load file or assembly 'Microsoft.SqlServer.Replication, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'

I am using .net application built in .net 2.0 using SQL server Express 2005 Replication publication functionality. Application setup is in 32 bit.
Now i am running this .net application setup on Windows-7 [64 bit]. It gets installed successfully with SQL server Express 2005.
But when starting the application getting below error while performing Synchronization of subscription and publication via .net app.  I have checked that Microsoft.SqlServer.Replication.dll file is installed in GAC having same version
[Version=9.0.242.0]. It is working fine on 32-bit OS.    
Below is error details.
TITLE: SETSynchConsole
Could not load file or assembly 'Microsoft.SqlServer.Replication, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Hi deshpasu,
According to your description, you install SQL Server Express 2005, and OS is 64bit. If your assembly is running as a 32 bit process and it is unable to load a 64 bit dll, we get a exception , so we need to verify if you install Microsoft SQL Server
2005 Replication Management Objects. These are not installed by default database engine install.
This is 64bit OS so you should install 64bit "Microsoft SQL Server 2005 Replication Management Objects" from online feature pack of SQL Server 2005.
If SQL Express x86 setup (with Database Engine, Replication selected at setup) installs Microsoft.SqlServer.Replication and so this load error does not occur on 32bit systems.
For more information, see:
http://stackoverflow.com/questions/41449/i-get-a-an-attempt-was-made-to-load-a-program-with-an-incorrect-format-error-o
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    Hi,
    Our development team is trying to run a report on our report server through web application but they are getting the below error. Report Viewer both version 10 and 11 are already installed on our reporting server. 
    [System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    The files are in place in assembly folder 'C:\Windows\assembly' and DLLs are also in place in folder 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer. 
    Can anyone please help us with this issue. 
    Thanks

    Hi Saurabh,
    This error means you're using the SQL Server Reporting Services ReportViewer control in your web application and the server can't find the proper DLL.
    Please check details information below to add the 'Microsoft.ReportViewer.WebForms.dll 10.0.0.0 to see if your problem will be resolved:
    Go to right click on project name to select the properties
    Check the References on the left and click "Add", then click Browse to the path "C:\Windows\assembly\GAC_msil" to select Microsoft.ReportViewer.WebForms.dll 10.0.0.0 , then click ok
    If above didn't help. please also the web.config file which path like:
    C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager
    C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer
    Please check to add below configuation:
    <system.web>
         <httpHandlers>
           <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    validate="false" />
         </httpHandlers>
     </system.web>
    Similar thread in below article for your reference:
    http://praveenbattula.blogspot.com/2010/03/fix-to-report-viewer-problems-in-iis-7.html
    User can not run a winForm with the ReportView Control
    Can not load Reportviewer
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Deploy Web Site Error:Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies

    I have created a ASP.NET web Site (not Web application), using Visual Studio 2012 Ultimate and "SQL Server Compact 4.0 Local Database" in my C# Code.
    I am able to successfully compile & publish the website to another IIS Web Server, with Operating System Windows Server 2008 R2 Standard. I can even test, successfully, this website on the machine I developed it in.
    I am publishing the website, from within Visual Studio, to a Network web server running IIS.  To Publish I am using Build-> "Publish Web Site".  In the Publish Profile, I am using Web Deploy Method. Even though I am using, successfully,
    "SQL Server Compact 4.0 Local Database" in my website, the "settings" (in Publish Profile) does not detect any Databases in the project. Which may not be a problem.
    When I try to bring up the web site on the IIS Web Server machine I get the following error..    
    Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies .
    As my project is a Web Site, not Web Site Application, I do not have a references node in the Solution Explorer. I think the System.Data.SqlServerCe.dll, which is type GAC in my project, is not getting published to the webserver, which is causing this Error.
    Can I copy this .dll over manually ? If yes, where to put on the ISS Web Server ? I do not see any bin folder.
    Any help to resolve this error will be appreciated.
    diana4

    Hello.. I went ahead and created web application project and have gone past that error. But I have a new error now
    System.Data.SqlServerCe.SqlCeException: Unable to load the native components of
    SQL Server Compact corresponding to the ADO.NET provider of version 8876.
    Install the correct version of SQL Server Compact. Refer to KB article 974247
    for more details.
    Compiling and Publishing (Deployment) are both successful 
    In my project, when adding reference to SQL Server Compact Edition , there are 2 possible locations to reference the DDL from:
    C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Private
    C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop.
    I have tried both. I get the same error as shown above.
    Interestingly, in My WebConfig, I do not see any reference to System.Data.SqlServerCe.
    Yet, the Website works when I click on Ctrl+F5 
    diana4

  • Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.

    I have updraded my pocket pc application from VS 2005 to VS 2008 and had to convert all the sqlce* files to 35 from 30. all upgraded System.Data.SqlServerCe.dll to version 3.5.0.0 and runtime version as v2.0.50727. My Target Framwork is .NET Framework 2.0.
    All the other sqlce* files are:
    sqlceca35.dll
    sqlcecompact35.dll
    sqlceer35EN.dll
    sqlceme35.dll
    sqlceoledb35.dll
    sqlceqp35.dll
    sqlcese35.dll
    The application is compiling without errors with the above dll's and creating its own webservice dll. the webservice dll is the copied to webserver which has the following dll's:
    sqlceca30.dll
    sqlcecompact30.dll
    sqlceer30EN.dll
    sqlceme30.dll
    sqlceoledb30.dll
    sqlceqp30.dll
    sqlcese30.dll
    and System.Data.SqlServerCe.dll as Assembly version 9.0.242.0 and file version as 3.0.5300.0.
    but when i try to run my application using the emulator, i get the following error:
     Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from
    HRESULT: 0x80131040)
    i cannot upgrade the dlls on the webserver as other apps are using the 30 dlls and if i try to use 30 dlls in my application, my application fails to build  on  System.Data.SqlServerCe.dll with Assembly version 9.0.242.0 and file
    version as 3.0.5300.0.
    i have spent a few days now trying to resolve this issue and none of the solutions provided on web have helped me so far. the application does not have app.config, but adding the following code to web.config did not help either:
    <
    runtime>
    <
    assemblyBinding
    xmlns="urn:schemas-microsoft-com:asm.v1">
    <
    dependentAssembly>
    <
    assemblyIdentity
    name="System.Data.SqlServerCe"
    publicKeyToken="89845DCD8080CC91"
    culture="neutral"/>
    <
    bindingRedirect
    oldVersion="0.0.0.0-9.0.242.0"
    newVersion="3.5.0.0"/>
    </
    dependentAssembly>
    </
    assemblyBinding>
    </
    runtime>
    any help will be highly appreciated.

    The binary 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'  is only to be used for windows desktop projects. For devices the PublicKeyToken is different and you should use the device
    binary "System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3" to compile your device project.
    Also in addition to what Erik mentioned, please check if you have
    Microsoft SQL Server Compact 3.5 for Windows Mobile installed on your machine.
    -Tarun Ramsinghani
    Please mark this post as answers if it solves your problem.

  • Receiving error message 'Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'

    I started getting this error message for the first time today. When I look in the event log I see it every time anyone tries to sync to a mobile device to the exchange server. I've also had this problem trying to connect using
    Outlook. I believe it is an IIS issue but I'm not absolutely sure so I'm posting this in the Exchange forum as well.
    The event viewer has the following information...
    3008
    A configuration error has occurred.
    5/1/2014 10:41:08 PM
    5/2/2014 5:41:08 AM
    7539d8a38c8b47869eda3f1749aba08d
    1
    1
    0
    /LM/W3SVC/1/ROOT/Microsoft-Server-ActiveSync-75-130434828686436855
    Full
    /Microsoft-Server-ActiveSync
    C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\sync\
    SERVER
    16284
    w3wp.exe
    NT AUTHORITY\SYSTEM
    ConfigurationErrorsException
    Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    https://remote.testserver.com:443/Microsoft-Server-ActiveSync/default.eas?User=user.name&DeviceId=ApplC39GQ5xxxxxx&DeviceType=iPhone&Cmd=Ping
    /Microsoft-Server-ActiveSync/default.eas
    174.224.130.31
    False
    NT AUTHORITY\SYSTEM
    24
    NT AUTHORITY\SYSTEM
    False
    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    I have tried most, if not all, of the different post's suggestions to no avail.
    The steps I have taken are as follows...
    1. Repaired .Net 4 (Both the client and extended)
    2. Uninstalled and reinstalled .Net Framework 4.0.
    3. Verified that the dll exists.
    4. Checked the applicationHost.config file. It contains the follow statement...
    <add name="ServiceModel-4.0" type="System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0"
    />
    5. Changed the following line in web.config to include the runtimeVersion...
    <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0" />
    6. Executed aspnet_regiis.exe -iru from the ...\Framework64\v4.0.30319 directory.
    7. Went to inetpub\history to use an applicationHost.config file from yesterday but it only has history from 9PM tonight. It probably had what I needed before I started changing it tonight.
    I still receive the same error message.
    Like I said everything was working yesterday. In fact I didn't hear or see any issue until after 1PM today.
    Any help would be very appreciated!

    Hi,
    Please confirm whether users can access their mailboxes from Outlook Web Access or not. We can do the following changes to have a try:
    1. In IIS > Application Pools, change the .NET Framework Version to v2.0 and restart IIS service.
    2. If it doesn’t work, explore the Default Web site.
    3. Renamed the web.config file to web.config.old
    4. Reset IIS using iisreset command to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Adobe Plugin: FileLoadException: Could not load file or assembly 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

    I created one adobe plugins to work from Adobe Reader/Acrobat using Adobe Acrobat SDK and that was built on .net 3.5 version. On conversion of .net framework version from v3.5 to v4.5, we are now getting error while the Adobe Reader/Acrobat is starting and plugins are not working. While making the log we found following exception:
    System.IO.FileLoadException: Could not load file or assembly 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
    File name: 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at System.ServiceModel.Channels.Binding.set_ReceiveTimeout(TimeSpan value)
       at MyClass.Connect()
    === Pre-bind state information ===
    LOG: User = domainname\username
    LOG: DisplayName = System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    (Fully-specified)
    LOG: Appbase = file:///C:/Program Files (x86)/Adobe/Reader 11.0/Reader/
    LOG: Initial PrivatePath = NULL
    Calling assembly : System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    ===
    LOG: This bind starts in default load context.
    LOG: No application configuration file found.
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Binding succeeds. Returns assembly from C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31 bf3856ad364e35\System.ServiceModel.Internals.dll.
    LOG: Assembly is loaded in default load context.
    The C# code is written as follows:
    EndpointAddress endpoint = new EndpointAddress("net.pipe://localhost/MyApp/");
    NetNamedPipeBinding binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);
    binding.ReceiveTimeout = TimeSpan.MaxValue;
    IAcroServer cserver = ChannelFactory<IAcroServer>.CreateChannel(binding, endpoint);
    Can anyone help me to find the reason and resolution of the problem I am facing. Thanks in advance.

    Yes plugin is written using C++ and that plugin is connecting with MyApp. Previously the plugin was working fine while the connection WCF service was in .net version 3.5 but on change of .net version to v4.5 is throwing the exception. This wcf service developed on C#.

  • DB attach error: system.IO.FileNotFoundException: Could not load file or assembly 'Company.Solution.Update, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e2569ffaccb59eb4' or one of its dependencies.

    I did a DB attach restore of the production db to a dev server, and got an error:
    system.IO.FileNotFoundException: Could not load file or assembly 'Company.Solution.Update, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e2569ffaccb59eb4' or one of its dependencies. The system cannot find the file specified.    at System.Reflection.Assembly._nLoad(AssemblyName
    fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
    Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)    
    at System.Reflection.Assembly.Load(String assemblyString)     at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail)     at System.Web.UI.TemplateParser.AddAssemblyDependency(String
    assemblyName, Boolean addDependentAssemblies)     at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry)     at System.Web.UI.BaseTemplateParser.ProcessDirective(String
    directiveName, IDictionary directive)     at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
    Recommendations, please.
    Thanks,
    Scott

    Hi Scott,
    from  "system.IO.FileNotFoundException: Could not load file or assembly 'Company.Solution.Update," error
    it seems some custom feature assemble missing in DEV. Do you have any custom feature installed in PROD and not in DEV ? Also make sure both environment are running on same SP / SQL versions.
    Let us know your results, thanks.
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral

    On Windows Server 2008 R2 I have installed dot net framework 4.5 and also installed CRruntime_64bit_13_0_2 msi . Bus when I run the application It gives an error could not load assembly .

    Yah, remember it is not the "bitness" of the OS that counts, it is the "bitness" of your app. E.g.; compiled as 32 bit, use 32 bit runtime on 32 bit or 64 bit OS. Compiled as 64 bit, deploy 64 bit runtime to 64 bit OS. Compiled as any cpu, deploy 64 bit runtime to 64 bit OS, 32 bit runtime to 32 bit OS.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

    I am trying to use SQL Server 2008 Developer on Windows Server 2008.  Whenever I try to connect to the server, I get this error: "Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
    or one of its dependencies. The system cannot find the file specified."
    I found some info at
    http://blogs.msdn.com/b/ashishme/archive/2009/08/15/could-not-load-file-or-assembly-microsoft-sqlserver-diagnostics-strace-version-10-0-0-0-culture-neutral-publickeytoken-89845dcd8080cc91-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified.aspx,
    but this didn't help me because it is not on my system, even after reinstalling both SQL Server and .NET Framework 4.  I also saw a this page: http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/1115cd55-721d-4974-99b1-d142d1e6a927,
    but this also didn't fix my problem.
    What can I do, or where can I get the missing assembley?
    Thanks in advance.

    You can get the missing assembly (Microsoft.SqlServer.Diagnostics.STrace.dll)
    by installing the "Shared Features" of SQL Server 2008.
    You could only install SQL Server 2008
    R2 (any edition) on Windows 7.
    Do not install more than 1 SQL Server 2008 R2 edition
    into the same computer; Some of the components are not compatible.
    E.g:  BIDS from R2 Express Advance edition cannot
    recognize Integration Service from R2 Enterprise Trial edition - it would throw above missing dll error.

  • Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 on Visual Studio Ultimate 2014 Update 4

    I am getting the infamous  "Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0." The set up of my system is Visual Studio 2013 Ultimate update 4 and my SQL server is 12.0.2000 Express. I am also using SQL
     management studio 2014. I read other comments and blogs, and reinstalled the SQL Express 12.0.2000, but no luck yet. 

    Hi payam49er,
    >>I am
    getting the infamous "Could not load file or assembly Microsoft.SqlServer.management.sdk.
    sfc version 11.0.0.0."
    Based on your error, could you please tell me what you do operation and then you get the error message?
    Could you please tell me if you add a data connection from Server Explorer Window in Visual studio 2013 Ultimate update
    4 and then you get the error message?
    If yes, to check if the issue is related to the VS IDE issue, I suggest you can execute the following commands to check if it can
    help you add  data connection in VS2013 Ultimate Update 4.
    (1)I suggest you can run your VS in safe mode by executing Devenv.exe /SafeMode to add a data connect again.
    (2)I suggest you can use the Devenv.exe /ResetSettings to restores the IDE's default settings, optionally resets to the specified
    VSSettings file.
    (3)You can execute the Devenv.exe /ResetAddin to remove commands and command UI associated with the specified Add-in.
    In addition, if you used the SQL Server Express to connect the data in VS, you need to specify the server name
    as MyComputerName\SQLEXPRESS. If you used the SQL Server to connect the data in VS. Please you try to specify the server name as MyComputerName\InstanceName here to check the result.
    If still no help, according the error, it indicates that the problem is that the system cannot locate the right assembly (SQL
    Server SDK). So I think you may get better response and solutions if you consult on SQL Server forums.
    Thank you for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0

    Hi,
    I currently installed VS 2012 Ultimate Edition, Visual Web Developer 2012 Express Edition and MS Sql server 2008 R2.
    When i go to add a data connection (sql server 2008 r2) in Visual studio 2012.
    The steps followed were:
    1. Open Server Explorer.
    2. right click on Data Connections
    3. Click on Add Connection
    4. In Choose data source: Microsoft Sql Server and Data Provider:
    .net framework data provider for sql server
    5. Add server name: ALVI\SQLEXPRESS and the database name:
    Customer
    6. Click test Connection: i have got the message: "Test Connection Succeeded"
    7. Click OK
    "unable to add data connection. could not load file or assembly 'microsoft.sqkserver.management.sdk.sfc' verision=11.0.0, culture=netural, publickkeytoken=89845dcd8080cc91' or one of its dependenciec. The System cannot find the file specified."
    I have already tried this method.
    1) Microsoft SQL Server Management Objects
    2) repair installed on Microsoft SQL Server System CLR Types
    3) Microsoft SQL Server 2008 Native Client.
    what's the problem? and what i need to do?
    Thanks
    ALVI

    Hello,
    Thank you for your post.
    In order to check if the issue is related to your VS,
    you could locate to the IDE folder then run these commands to check if it can help if you add a data connection in VS2012 Ultimate:
    Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE
    Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows.
    Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.
    Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in.
    Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages.
    And I did some search about this error and find a thread with the similar issue:
    http://social.msdn.microsoft.com/Forums/en-US/efb83302-386b-460f-9467-edce28d61016/unable-to-add-a-data-connection-in-visual-studio
    As VMzaure said, if you are using SQL Server Express, you need to specify the server name as
    MyComputerName\SQLEXPRESS. But based on your post, I feel you are using SQL Server. If you are using SQL Server and have named instance, please try to specify the server name as MyComputerName\InstanceNameHere to check the result.
    If still no help, according the error, it indicates that the problem is that the system cannot locate the right assembly (SQL Server SDK). So I think you may get better response and solutions
    if you consult on SQL Server forums.
    Thank you for your understanding.
    Best regards,
    Amanda Zhu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Unable to add data connection. Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version 11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

    I installed MS SQL Server 2014 Express and I'm using VS 2013 Professional.  I create a database in SQL Mgt Studio then I open up VS and using VB I create a form and add a data grid.  When I test connection it is fine but when I click ok it gives
    me the above message.  Sql Server is listening to port 1433 with IPALL disabled.  I installed management tools and another program.  So I uninstalled and then installed SQLExpressADV 2014 reset everything as mentioned and I get the same results. 
    I cannot develop any applications and am getting frustrated enough to maybe start looking around for a better DB solution that works.  I've noticed a lot of people getting this same error and I think Microsoft should implement a fix for this.  Does
    anyone have some ideas on how to fix this?  Since it will not list the files it cannot find I do not know what is broken.

    Hello,
    Please perform the steps described in the following article.
    http://sqlbeyond.blogspot.com/2012/08/vs-2012-error-could-not-load-file-or.html
    But download the SQL Server 2014 version of the software mentioned in the article.
    http://www.microsoft.com/en-us/download/details.aspx?id=42295
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Could not load file or assembly Microsoft.ServiceHosting.Tools

    I just got a new workstation set up and I installed VS 2013 with Windows Azure SDK 2.3 first. But then I realized that our project was built upon Windows Azure SDK 2.2. So I uninstalled the SDK 2.3 and then installed 2.2. After that, I got the project from
    TFS and tried to run it and there was a problem:
    Cannot debug the project because some run time file was missing.
    So I tried to repair it by uninstalling Windows Azure SDK 2.2 completely and repair my VisualStudio. But now I get this error message:
    Could not load file or assembly 'Microsoft.ServiceHosting.Tools, Version=1.0.0.0, Culture =neutral, PublicKeyToken=232wedsfd3f4' or one of its dependencies. The system cannot find the file specified.
    I looked through the project and there wasn't any reference of Miscrosoft.ServiceHosting. And the database and cloud are working. No idea what happened in the machine since Azure is a new field for me. Does anybody ever meet the same problem?

    Hi,
    From my experience, there may be some component missing on your computer, I suggest you uninstall again (everything with Azure keyword in control panel, not only the SDK-> Add remove programs."), then open Microsoft web platform installer (http://www.microsoft.com/web/downloads/platform.aspx),
    select azure sdk 2.3, then install this product. Hope this helps, if not, please feel free to let me know.
    Best Regards
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Release Management vNext Powershell Could not load file or assembly System.Management.Automation Version=3.0.0.0

    Hi,
    I'm running TFS2013.4 with a number of build servers and all working fine. 
    I'm also running Release Management with update 4 (12.0.31101.0) and am running into trouble when trying to run my first dummy release.
    I have setup my servers, stages, releases paths, components and release template (all vNext) with out issue.
    When I run my Release Template (Deploy Using PS/DSC) I'm getting the following error :-
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException:
    Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
    The system cannot find the file specified.
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.DisposeCurrentSession()
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.Dispose()
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__11.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunPowerShellAsync>d__1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<CopyBuildsLocally>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<RunScript>d__0.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.InvokePlatform(String activityId, MachineSpecification machineSpecification, StorageSpecification storageSpecification, String scriptPath, String configurationPath,
    Dictionary`2 configurationVariables)
       at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.RunScript(DscComponent dscComponentParameters, String serverName, String userName, String password, String componentName, String scriptPath, String configurationPath,
    String useCredSecuritySupportProvider, String useHttps, String skipCACheck)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.Dsc.DscComponentInstaller.InvokeMethodByReflection(String methodArguments)
    I can't work out if my target machine (2008 R2 SP1) has a problem with WMA 3.0 or if the Release Template can't find the powershell script that I'm trying to call.  I figured that the relative path to the script could be wrong and have tried numerous
    iterations to no effect.  The error clearly points to a problem with WMA right?
    The target machine has .Net Framework 4.0, WMA Framework 3.0 and I can run Enter-PSSession to remote to it etc...
    Before I trash and rebuild my target machine I hoping someone may have some insight to my problem?
    Thanks in Advance
    Jason
    shroomie

    Daniel,
    The PS Script is taken from an MSDN blog and is fairly standard.  I'm sure it will run fine when executed, but I've not run it as it requires environment variables ($applicationPath) that will be present in the Release Management session calling it. 
    Here's the script :-
    configuration InstallModules
        param
            # Target nodes to apply the configuration
            [string[]]$NodeName = 'localhost',
            # Source Path for Modules
            [String]$SourcePath = "$applicationPath\Deploy\Modules",
            # Destination path for Modules
            [String]$DestinationPath = "$env:ProgramFiles\WindowsPowershell\Modules"
        Node $NodeName
            # Copy the Modules
            File ModuleContent
                Ensure          = "Present"
                SourcePath      = $SourcePath
                DestinationPath = $DestinationPath
                Recurse         = $true
                Type            = "Directory"
    InstallModules
    Thanks
    Jason
    shroomie

  • Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0,

      Hi
    I get the below error message when I deploy the application on Windows server 2008 R2 (64Bit)
    Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    Line 148:        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
      Line 149:         <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
      Line 150: <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>  Line 151:  Line 152:  
    Here are the steps followed
    Installed the develper edition of crystal report 13 on development machine which is XP(32 bit)
    Application works fine on development machine and target platform for the application is "Any CPU"
    On Deployement Machine [Windows server 2008 R2 (64Bit)] insatlled the (v. 13.0.2.x) 64 bit MSI from http://scn.sap.com/docs/DOC-7824
    I reffered many post for the issue but no help. Please help me to fix this issue.
    -Manish

    You're on a 64 bit box, running a 32 bit web app. Make sure the app pool is set to 32 bit. Also see the following:
    http://adilmca.wordpress.com/2013/04/08/visual-studio-2012-crystal-report-not-working-on-windows-server-2012-0x800a1391-javascript-runtime-error-bobj-is-undefined/
    http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2012/10/16/report-appears-blank-in-browser-after-deploying-a-crystal-reportsnet-web-application
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • CFWD goes busy, but regular call works

    I am assisting with CME 7.0, the site users want to use CFWD, but the call either responds with fast busy or call can not be completed as dialed.  If I have the user dial the number directly it dials out and the call connects. If they press CFWD on t

  • Blocking locks by user report hangs

    Please, "Blocking locks by user" report under "Database Administration Section" of "Data Dictionary Reports" is hanging every time we try to run it against any database. Please, confirm this issue in Oracle Sql Developer 4.0 EA since it was working p

  • How do I stop my macbook telling me scratch discs are full

    I have reduced applications photos email etc from my laptop but I am being told 1. Start up discs are full and 2. Scratch discs are full what exactly does this mean. Would more memory help if so what type. The macbook is 2008 2.4 core 2 Duo, 2GB 667

  • Create multiple messages in adapter module

    Hi! I've the problem to solve the following scenario: Mail (1) -> XI -> IDocs (1..n) Since for IDocs message split is not supported and I don't want to use a BPM, is it possible to create different xi-messages in an adapter module which processes the

  • Where are the bullets for adobe. im creating a document and they are not in the toolbar

    where are the bullets for adobe. im creating a document and they are not in the toolbar