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

Similar Messages

  • 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

  • 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.

  • 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#.

  • Convert-WindowsImage.ps1 Could not load file or assembly 'System.Linq,..' error

    I tried the following:
    .\Convert-WindowsImage.ps1
    -SourcePath C:\Backups\All\Files\Windows8-ReleasePreview-64bit-English.iso -VHDFormat VHD -SizeBytes 52GB -VHDPath C:\AllSharedC\VPC\Win8.vhd
    and got the following error in the log.  .Net 4.0 full and WMF 3.0 RC are all installed.
    Log
    Windows PowerShell transcript start
    Start time: 20120601112809
    Username  : Sys\User
    Machine   : Sys (Microsoft Windows NT 6.1.7601 Service Pack 1)
    ERROR  : Could not load file or assembly 'System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    INFO   : Log folder is C:\Users\Byron\AppData\Local\Temp\Convert-WindowsImage\942fccac-662a-4b2a-bfa9-6831892cad5c
    INFO   : Done.
    Windows PowerShell transcript end
    End time: 20120601112809
    How can I solve this?

    Running on Win7 Ultimate with sp1. I'm sure I got all the prerequites installed.
    System Requirements
    Convert-WindowsImage can only be run on Windows 8 Consumer Preview, Windows 8 Release Preview, Windows Server 8 Beta, and Windows Server 2012 Release Candidate
    operating systems.
    Sorry man.  As per above

  • 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

  • Upgrading to MBAM 2.5: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0.....the system cannot find the file specified.

    Upgrading from MBAM 1.0 to 2.5 on the Administration and Monitoring server (database server already upgraded). To upgrade the administration server, I uninstalled MBAM 1.0 -> Deleted the MBAM website from IIS manually -> Reboot -> Installed MBAM
    2.5. After upgrade if I go to selfservice portal via
    https://myserver.mycompany.com/selfservice, I get this error:
    Server Error in '/SelfService' Application.
    Could not load file or assembly 'System.Web.WebPages.Razor,
    Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
    dependencies. The system cannot find the file specified.
    Description:
    An unhandled exception occurred during the execution of the current web
    request. Please review the stack trace for more information about the error and
    where it originated in the code.
    Exception Details:
    System.IO.FileNotFoundException: Could not load file or assembly
    'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot
    find the file specified.
    Source Error:
    An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of the
    exception can be identified using the exception stack trace below.
    Stack Trace:
    [FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
    System.Web.Mvc.PreApplicationStartCode.Start() +0
    [InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
    System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +12980619
    System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +12980328
    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +280
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
    [HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12979668
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12819261
    Anyone know how to solve this? Thanks in advance

    Sorry for late response. I fixed the issue by installing the correct version of ASP .NET 4 from
    here.
    If .NET Framework 4.5 is already installed, also run aspnet_regiis -i from C:\windows\microsoft.net\Framework\v4.0.30319

  • Could not load file or assembly 'System.EnterpriseServices

    Hello Guys,
    I"m new to Oracle and .Net, I'm trying to display data in a gridview but when I run my Asp.net application I get this error: "*System.IO.FileNotFoundException: Could not load file or assembly 'System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified*"
    I am not sure wat this means and I have been searching the internet with no success. I'm using Oracle 9i Client 9.2.0.1.0 and I downloaded ODP.NET Version=9.2.0.700 just recently. Cud this have caused the problem????
    Here is a snippet of my code and the program bombs at conn.open(), it seems like it cannot read my connectionString.
    public DataTable FetchData(string statement)
    DataTable dt = new DataTable();
    string constr = "Data Source=PSM1;User ID=CHRHRDM;Password=CHRHRDM";
    //conn.ConnectionString = "Data Source=PSM1;User ID=CHRHRDM;Password=CHRHRDM";
    OracleConnection conn = new OracleConnection(constr);
    conn.Open();
    OracleCommand cmd = new OracleCommand(statement, conn);
    cmd.ExecuteNonQuery();
    OracleDataAdapter adapter = new OracleDataAdapter(cmd);
    adapter.Fill(dt);
    //cmd.Connection.Close();
    conn.Close();
    return dt;
    And this is wat I see in my Event Viewer:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 2010/02/11 10:38:59 AM
    Event time (UTC): 2010/02/11 08:38:59 AM
    Event ID: 16667c76f5eb459abfa0066c08b62c6d
    Event sequence: 4
    Event occurrence: 1
    Event detail code: 0
    Application information:
    Application domain: 5ba4c282-1-129103511373281250
    Trust level: Full
    Application Virtual Path: /SSU_Website
    Application Path: C:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\
    Machine name: ACER-926C8D0979
    Process information:
    Process ID: 5328
    Process name: WebDev.WebServer.EXE
    Account name: ACER-926C8D0979\bothank
    Exception information:
    Exception type: FileNotFoundException
    Exception message: Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    Request information:
    Request URL: http://localhost:1241/SSU_Website/Default2.aspx
    Request path: /SSU_Website/Default2.aspx
    User host address: 127.0.0.1
    User: ACER-926C8D0979\bothank
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name: ACER-926C8D0979\bothank
    Thread information:
    Thread ID: 4
    Thread account name: ACER-926C8D0979\bothank
    Is impersonating: False
    Stack trace: at Oracle.DataAccess.Client.OpoConRefCtx..ctor()
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at DAL.FetchData(String statement) in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\App_Code\DAL\DAL.cs:line 26
    at CommonQueries.GetAllDetails() in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\App_Code\BLL\CommonQueries.cs:line 30
    at Default2.populateGridView() in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\Default2.aspx.cs:line 28
    at Default2.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\Default2.aspx.cs:line 20
    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
    at System.Web.UI.Control.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Can Someone Please help me... I'm in desperate need

    Hi,
    For anyone with a similar error, I added System.EnterpriseService reference to my project. Now I can see my data on the gridview.
    Thanks

  • Could not load file or assembly 'System.Core'

    Hi,
    I updated my SQL 2005 box to .Net 3.5 SP1 to meet anti virus requirements and is getting the error below when attempting to call CLR on the database.
    Has anyone experienced this? Any help is appreciated.
    A .NET Framework error occurred during execution of user-defined routine or aggregate "clr_number_test":
    System.TypeInitializationException: The type initializer for 'MyNumber' threw an exception. ---> System.IO.FileLoadException:
    Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=axxxxxxxxxxxxx' or one of its
    dependencies.
    Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050)
    System.IO.FileLoadException: at MyNumber..caller()
    System.TypeInitializationException:
    Francis, MCTS: BI 2008, MCITP: BI 2008 Stay Thirsty My Friends

    Have you tried recompiling your SQLCLR with the .NET library version that matches your server?
    Does your SQLCLR code reference any unsupported assemblies? (look in sys.assemblies)
    Cheers, bob

  • 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,

      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

  • 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

  • Starting Management Studio, got "Could not load file or assembly 'WindowsBase 4.0.0.0 ...'" error

    "Could not load file or assembly 'WindowsBase 4.0.0.0 ...
    I get this error when starting Management Studio Express 2012.
    I know it is related to Visual Studio 2010 SP1. I ought to try to update VS2010 SP1 with KBxxxx that fix security issues. But one KB2635973 refuses to install (I downloaded the update and run it not via Windows Update). When running the update I get the
    same error. The update UI shows that it has been installed. But it was not. When I check Windows Update it would be listed again.
    I didn't invite this trouble myself. I was running Windows 8. I was constantly prompted to upgrade to 8.1 but I declined. But one day it just got upgraded anyway without giving any chance to abort the upgrade. Since then I have this "Could not load
    file or assembly" error.
    I had tried re-installing SQL server management studio. But the error refuses to go away.
    Please help as I have spent a lot of time searching for solution without success. I have been using DOS/Windows since the 1980's and this is the worst experience that I have come across.

    Ok I found the cause after browsing through this thread:
    http://stackoverflow.com/questions/14506938/could-not-load-file-or-assembly-windowsbase-version-4-0-0-0
    WindowsBase.DLL is missing from this folder on my machine:
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35
    I copied the file from another machine into this folder. Now the problem disappears.

  • COULD NOT LOAD FILE OR ASSEMBLY 'MOM.IMPLE​MENTATION, VERSION=2.​032666.294​53

    I keep getting the above message.  I tried many many many things ( roll back drivers, uninstall, BIOS etc) before I finally decided to reset my HP to factory settings and start over again...and I STILL am receiving this message!!!  from what I can tell it is from ATI Catalyst Install Manager.. Please help!
    This all started because I was trying to update the MediaSmart TV tuner and then ALL sorts of things went wrong such as Windows installer stopped working and I could not uninstall programs that were suddenly giving me problems such as itunes and quicktime, ATI etc.
    Thanks so much for any info that you can provide that wil help me.   As I said, I have completely started all over again, from factory settings, and I still have this message,
    Also, I cannot uninstall Nortons that comes factory loaded from the factory.  When I try to uninstall, I receive a message that says the there is another installer running, but I do not have an installer running,
    Take Care and thanks for the free forum day!
    Susan

    Hi,
    Please follow the steps given below
    “Could not load file or assembly  MOM.Implementation or one of its dependencies.
    The system cannot find the file specified”
    Please press Ctrl + Shift + ESC Keys on the Keyboard at a time, it opens Task manager Window.
    Click Processes tab above.
    Select the check box at the bottom 'Show Processes from all users'.
    Find 'MSIEXEC.EXE' in Image Name Column, select it, and click End Process.
    Uninstall Norton from Programs abnd Features.
    1) uninstall Graphics Drivers
    2) uninstall all versions of .NET Framework and restart
    .NET Framework Cleanup Tool:
    http://quicken.intuit.com/qkn/cms/download-install​-updates/cleanup_tool.exe
    Click Yes to run the Installation Cleanup Utility.
    Read the Microsoft Software License Agreement for Unreleased Microsoft Software, and then click Yes.
    Click .NET Framework - All Versions, and then click Cleanup Now
    Perform Windows Updates
    3) install latest Graphics Drivers
    Thank You.
    Kiran Talluri
    Say thanks by clicking the "Kudos! Star" which is on the left.
    Make it easier for other people to find solutions, by marking my answer "Accept as Solution" if it solves your issue

Maybe you are looking for