Error creating Expression in Biztalk 2010, Assembly reference error? - biztalk

I am adding an Expression in Biztalk 2010, which is as follows;
msgSalesOrder_Complete=msgSalesOrder;
msgSalesOrder_Complete.Comment="Work Done";
But i am getting the Assembly Rerference missing error for msgSalesOrder_Complete.Comment.

How is msgSalesOrder_Complete defined?
If it's a message schema, then Comment must be a (properly) distinguished or promoted property. If it's a .NET class, then the Comment member must be visible to the BizTalk project.
Obviously, the BizTalk project must have a reference to the project where the type of msgSalesOrder_Complete is defined, but I'm assuming this is the case...

Related

Added the missing reference to the project, but types are still not recognized. Why?

I am trying to create a simple code sample that access an oracle database, in a Web Api 2 project.
Since OracleClient dll is not available "by default" (if I understand it right, upon creating a new project the targeting framework subset is not the full framework dll set), I added a reference to System.Data.OracleClient.
The references to the dll's types such as OracleConnection, OracleCommand and so are all recognized by VS, just like intelisense shows OracleClient after typing System.Data.
A build however raises an error stating
The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
The runtime version (v4.0.30319) and version (4.0.0.0) are exactly the same as, say, System.Data, automatically loaded when upon creation.
What is wrong ?
Adding a reference to a new dll requires restarting visual studio.

Cannot use Linq to sql due to System.Data.Linq being unavailable

I am new to webforms. I am trying to setup a linq to sql connection. I did it the (what I think is) the standard way. I added a linq to sql class. Then I went to my database explorer and dragged a table in and saved. Whenever I try to load the project in the browser I am getting the following error:
The type or namespace name 'Linq' does not exist in the namespace 'System.Data'
I am kind of at a loss here. I googled around. I saw some of the standard solutions like add a reference to System.Data.Linq (which I already had but did again) and to make sure debug="true" in my compilation tag and target framework in my compilation tag was the same as the target framework for the project which I did (both are .NET 4.0). I am still getting the error and I have no clue on how to proceed from here.
The error is thrown on the following line of the Conditions.dbml file:
using System.Data.Linq;
Add a reference to the System.Data.Linq assembly. Right click the References folder in your project, go to Add Reference, then make sure you're on the Assemblies tab and add a checkmark next to System.Data.Linq. (These directions are for VS 2013).

Error when building existing solution in Visual Studio

Hy guys,
I got one existing project from my co-worker. I opened the folder in VS as web site. When I build it and try to run I get the following message-
Warning C:\Users......: ASP.NET runtime error: Object reference not set to an instance of an object.
Error - Object reference not set to an instance of an object.
I have a Visual Studio 2012, registered as student version, target framework is 2.0
Try to check your project reference to load well, not missing reference (you can check in folder "Reference"), or sometime this error because your object is not initialize [blank value], you can add images to give us detail information for your issue.
That is called a Null Reference, you (the code) try to use an object which is not created/initialised yet.
Its impossible to give you an answer which would fix your issue, you will have to debug the code yourself.
When the exception occurs, visual studio should ask you if you want to 'break' or 'continue'. Choose break and check where in the code the error is, then take it from there.
//Example:
AClassofSomeSort myObj2 = new AClassofSomeSort();
myObj2.DoSomething(); //Totally fine, cause the myObj2 have been initialised.
AClassofSomeSort myObj;
myObj.DoSomething(); //Oh noes, the 'myObj' is not created! Exception is thrown.

Accessing LinqBridge from JSON.NET dll

I am using JSON.NET which has the LinqBridge .dll merged in. LinqBridge allows Linq to be accessed from .NET 2. If I try to use Linq, even after importing System.Linq, I receive the following error:
Error 13 Could not find an implementation of the query pattern for source type 'int[]'. 'Where' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'? C:\Users\chrisl\Desktop\SoftTokens\Windows Desktop Soft-Token\Program.cs 27 25 WindowsSoftToken
If I try to include LinqBridge, then because JSON.NET already includes it, I receive this warning. Additionally, I have included the same component twice, which is inefficient:
Warning 2 The predefined type 'System.Action' is defined in multiple assemblies in the global alias; using definition from 'c:\Users\chrisl\Desktop\SoftTokens\Windows Desktop Soft-Token\libs\Newtonsoft.Json.Net20.dll' WindowsSoftToken
If I browse Newtonsoft.Json.Net20 in the object browser, I see that System.Linq appears empty, even after I have slected Show hidden types and methods.
Is it possible to access Linq from the JSON.NET dll or to suppress the error messages?
The Enumerable static class that provides the LINQ query operators in the LINQBridge assembly is still exposed in the System.Linq namespace.
You still need to have the using directive for System.Linq as directed in your first error message.
Update:
It turns out the LINQBridge assembly that's merged into Newtonsoft.Json.Net20.dll has been "internalized" which I hadn't noticed at first. This means your code can't reference the Enumerable type that the compiler needs to "implement the query pattern." So you do have to reference the LINQBridge assembly yourself, but then you get the warning about duplicate definitions as you mentioned.
You can disable the duplicate class warning by going to the Build tab of your project properties and enter "1685" in the "Suppress warnings:" box.
But what would probably be better would be to build your own version of JSON.net from source without merging in LINQBridge.

Entity Date Modelset Generates Errors in Visual Web Developer

I attempted to add a ADO.NET Entity Data Model to my Visual Web Developer 2010 Express project and it generates but returns a whole slew of errors. Why is this generating errors? Here are the main errors:
'Public Property ID As Integer' has multiple definitions with identical signatures.
Method 'Onaddress_IDChanging' cannot be declared 'Partial' because only one method 'Onaddress_IDChanging' can be marked 'Partial'.
'_line1' is already declared as 'Private _line1 As String' in this class.
The issue is a bug in Microsoft Visual Studio. Apparently certain keywords are reserved and when used in a table name/property results in numerous errors.

Resources