Error build open rasta castle windsor - castle-windsor

I try to build OpenRasta Castle Windsor.
Firstly, I clone Openrasta Castle Github Repository. And I execute make.bat from command prompt. But I got these error:
D:\Software\dotNET\OpenRasta\openrasta-castle-windsor>C:\Windows\Microsoft.NET\F
ramework\v4.0.30319\msbuild.exe build\build.proj
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.488]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 18/04/2012 10:46:48.
Project "D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\build\build.proj
" on node 1 (default targets).
D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\build\build.proj(11,75):
error MSB4064: The "CurrentProjectFile" parameter is not supported by the "Init
ializeOpenWrap" task. Verify the parameter exists on the task, and it is a sett
able public instance property.
D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\build\build.proj(11,5): e
rror MSB4063: The "InitializeOpenWrap" task could not be initialized with its i
nput parameters.
Done Building Project "D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\bu
ild\build.proj" (default targets) -- FAILED.
Build FAILED.
"D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\build\build.proj" (defau
lt target) (1) ->
(_Initialize target) ->
D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\build\build.proj(11,75)
: error MSB4064: The "CurrentProjectFile" parameter is not supported by the "In
itializeOpenWrap" task. Verify the parameter exists on the task, and it is a se
ttable public instance property.
D:\Software\dotNET\OpenRasta\openrasta-castle-windsor\build\build.proj(11,5):
error MSB4063: The "InitializeOpenWrap" task could not be initialized with its
input parameters.
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.06
Thanks in advance.

Related

Using RestSharp Library In SSIS Script Component Raises Exception

I'm building an SSIS package in VS2019 that has a Data Flow task containing a Script Component. I'm setting up that component to use the RestSharp library to call a 3rd party API. However it fails when trying to create an instance of the RestClient() class. Error message is:
Error: Exception has been thrown by the target of an invocation.
Error: Method not found: 'Void System.Text.Json.JsonSerializerOptions..ctor(System.Text.Json.JsonSerializerDefaults)'.
I don't know why it's complaining about the System.Text.JsonSerializerDefaults class. The Target Framework of the Script Component project is ".NET Framework 4.7". Not sure if that's part of the problem. This is the first time I've tried using the RestSharp library in SSIS.
Can someone help me resolve this?
string uri = "https://npiregistry.cms.hhs.gov/api/?"
+ $"number={Row.NPI}"
+ "&enumeration_type="
+ "&taxonomy_description="
+ "&first_name="
+ "&use_first_name_alias="
+ "&last_name="
+ "&organization_name="
+ "&address_purpose="
+ "&city=&state="
+ "&postal_code="
+ "&country_code="
+ "&limit="
+ "&skip="
+ "&pretty=on"
+ "&version=2.1";
var client = new RestClient(uri); // << fails!
UPDATE: This appears to be a GAC issue. If I issue this command, it says that the installation succeeds:
gacutil -i RestSharp.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.0
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
However, if I try to find it in the GAC, it isn't found:
gacutil -l RestSharp.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.0
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
Number of items = 0
What am I doing wrong?

SSIS editing a script task and saving it doesn't work

Note: I am not an SSIS developer and have a very limited knowledge on it, so may be missing on very small details, please read carefully.
I have an existing SSIS package which has script task in one of the steps.
I had to update one single value in script task, so I opened it in notepad++ and updated the value and saved it. Now when the scheduled SSIS job runs, it still picks up the old value and not the updated one.
I realized script task is a VB file, so probably would need to re-compile it for the binaries. I read about it and found out, if you open it through VS and save it, VS automatically compiles it and you don't have to do anything further. I can be wrong here.
I can't do project deployment on the server, so I would just need the updated package file to replace it on the server.(I am taking this updated package file from the Visual studio project that I created to edit the SSIS package. I am not sure, if there is another way to get the package or even if this is a right package.
Now the problem is,
when I updated the old package using notepad++, it didn't throw any error when it was running through scheduled job, but it took the old value
Now when I am putting the new package that I edited using Visual studio, it throws below error
Executed as user: sampleUser(nameupdated). Microsoft (R) SQL Server Execute Package Utility Version 13.0.5026.0 for 32-bit Copyright (C) 2016 Microsoft. All rights reserved. Started: 5:08:09 PM Error: 2021-11-02 17:08:10.83 Code: 0xC0016016 Source: OraclePackage Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2021-11-02 17:08:11.26 Code: 0x00000005 Source: Rename files in archive folder to _yyyymmddhhmm Rename files in archive folder to _yyyymmddhhmm Description: Failed to migrate scripts contained in the package to the VSTA 14.0 format. Move the scripts to a new Script task. End Error Error: 2021-11-02 17:08:14.19 Code: 0x00000005 Source: Script Task Script Task Description: Failed to migrate scripts contained in the package to the VSTA 14.0 format. Move the scripts to a new Script task. End Error Error: 2021-11-02 17:08:17.17 Code: 0x00000001 Source: Script Task Description: Exception has been thrown by the target of an invocation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:08:09 PM Finished: 5:08:17 PM Elapsed: 7.25 seconds. The package execution failed. The step failed.
I read about this error and found that package's security level can cause this issue, so update the protection level of the package from "EncryptSensitiveWithUserKey" to "DontSaveSensitive"
Now when I am running the project I get below error
Executed as user: sampleuser(nameUpdated). Microsoft (R) SQL Server Execute Package Utility Version 13.0.5026.0 for 32-bit Copyright (C) 2016 Microsoft. All rights reserved. Started: 5:31:44 PM Error: 2021-11-02 17:31:53.93 Code: 0x00000001 Source: Script Task Description: Exception has been thrown by the target of an invocation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:31:44 PM Finished: 5:31:53 PM Elapsed: 9.047 seconds. The package execution failed. The step failed.
Please let me know if there is another way to edit the script task directly and compile it in place so that it takes the updated values else, if there is something else I can do.
Thanks in advance.
I found a solution(more of an error or less knowledge from my side actually)
Updating the security from "EncryptSensitiveWithUserKey" to "DontSaveSensitive"
When you open an existing SSIS package in Visual studio, the read and write variables are wiped out from script task for some reason. Reassigning them resolved the problem.
How did I find out if that was the problem, I put some exception handling in the script task to notify me of further issues.
Hope this helps to someone in the similar problem.

Execute package task in errorhandling gives error

In my OnError eventhandler I try to execute a (child) package but I get this error:
Error: Error 0x80040154. Failed to create an instance of empty child package. The Distributed Component Object Model (DCOM) configuration or the installation of SQL Server Integration Services, may be corrupted on your machine.
followed by Class not registered
This happens even if it is an empty package I call.
Is it not possible to execute an package in an EventHandler?
What else could lead to this error?
Packages are set as ExecuteOutOfProcess
Using Visual Studio 2019 with microsoft integration services installed.
Edit:
Setting ExecuteOutOfProcess to FALSE made the empty package run.
Another package with 3rdparty-components however failed.
But that is cleaclry caused by that 3party component. Investigating
Reinstalling the Integration Sevrices Add-on solved the problem

Custom SSIS component created for SQL Server 2014 not working in SQL Server 2016

We got a couple of custom SSIS components which were created targeting SSIS for SQL Server 2014.
We are now migrating our dtsx packages to SSIS for SQL Server 2016.
I have modified the custom SSIS components such that assembly references to DTS assemblies have been given the property SpecificVersion=False.
I'm using the DTS.Runtime.Application.Upgrade method to upgrade my packages in a console app. However the packages which have these custom components are throwing the below error.
What else should I be doing?
Error in DFT (SSIS.Pipeline) The "" failed to cache the component metadata object and returned error code 0x80131600.
Error in DFT (SSIS.Pipeline) Component , clsid {4F885D04-B578-47B7-94A0-DE9C7DA25EE2} failed to initialize due to error 0xC0047067 "The "%1" failed to cache the component metadata object and returned error code 0x%2!8.8X!.".
Error in DFT ( [2]) The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".
Error in DFT (SSIS.Pipeline) The component metadata for "" could not be upgraded to the newer version of the component. The PerformUpgrade method failed.
Error in Package.dtsx The loading of the package has failed.
You get to rebuild the component against the 2016 SSIS binaries, redeploy it to the GAC and probably change the references in your packages to use the new components (unless the 2014->2016 migration process is entirely different than 2005->2008 and 2008->2012 which is when I stopped building custom components).
The reason for this is that the DLLs for SSIS are strongly signed/versioned and that signature changes between editions of the project so the 2014 component you built is against the 130 version of TxPipeline dll and it now needs to reference 140 to be successful.

Google drive Dredit sample app for dotnet

I was following exact the same steps as described in this article to test the dotnet app.
https://developers.google.com/drive/examples/dotnet
My env is visual studio 2010 and IIS 7
Everything was fine. The app deployment was successful and I could see the login screen and the "allow access" dialog. However once I granted access, I saw the following error.
Can anyone help?
Thanks,
Qiang
Server Error in '/' Application.
Failed to find or load the registered .Net Framework Data Provider.
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.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.
Source Error:
Line 82: {
Line 83: StoredCredentialsDBContext db = new StoredCredentialsDBContext();
Line 84: StoredCredentials sc = db.StoredCredentialSet.FirstOrDefault(x => x.UserId == userId);
Line 85: if (sc != null)
Line 86: {
Source File: C:\Qiang\DrEdit\Models\Utils.cs Line: 84
You have to install Microsoft SQL Server Compact 4.0, which is used by the Entity Framework to map model classes into database entities.