George2
George2

Reputation: 45761

.Net assembly issue

I am using Windows Server 2008 Enterprise + .Net 3.5 + VSTS 2008 + C# to develop a console application. The application runs fine on my developer desktop. But when I run the same application on another machine (Windows Server 2008 Enterprise as well, but no VSTS 2008 installed), there is error says assembly Microsoft.Expression.Encoder can not be found. For security and policy reasons, I can not install VSTS 2008 or SDK on the machine to use tools like gacutil to debug (so any quick method to find whether the assembly is correctly installed or not?).

My question is, where should Microsoft.Expression.Encoder be? In GAC or somewhere else? I am not sure how my program looks for Microsoft.Expression.Encoder.

BTW: my console application is not strong signed, and I think Microsoft.Expression.Encoder should be strong signed, correct? If so, where should Microsoft.Expression.Encoder be found -- in GAC or in local folder (e.g. the same folder as the console application)?

Upvotes: 0

Views: 192

Answers (2)

Hans Passant
Hans Passant

Reputation: 941218

You have a dependency on a component that won't be available by default, you have to install it. Expression Encoder comes in two versions. The free version is available for download from here. Do note the restrictions, it doesn't support smooth streaming or encode to H.264. Follow the link in the download page to the retail edition if this is a problem. Just installing Blend on the machine would probably solve it too, but that would surely be a "security" problem as well.

Upvotes: 1

Fadrian Sudaman
Fadrian Sudaman

Reputation: 6465

That assembly relates to Silverlight and WPF application. If you are developing console app, you shouldnt need to refer to it. Try check your assembly reference in the project and remove unnecessary references that you dont need and try it again.

Upvotes: 1

Related Questions