Geeks With Blogs

News Copyright © 2008-2016 Paula DiTallo
Ask Paula! ...bringing you notes from the field... .NET Visual Studio 2010, C#, WCF, WF, EF
How do I fix the error: CS1548: Cryptographic failure while signing assembly ?
The full error in Microsoft Visual Studio on a compile looks like this: error CS1548: Cryptographic failure while signing assembly 'C:\Program Files\Microsoft SQL Server\100\Samples\Analysis Services\Programmability\AM... This is likely due to a missing strong key pair value file. The easiest way to solve this problem is to create a new one. Navigate to: Microsoft Visual Studio 2010>Visual Studio Tools>Visual Studio x64 Win64 ......

Posted On Friday, November 11, 2011 10:36 AM

What happened to my Entity Framework (edmx) File?
If you're like me, you've probably clicked/clacked, docked/undocked the window with the edmx file while you were working on it in visual studio without intending to--and now, the entity diagram is gone and you are unable to open the file again from the solution window! Luckily, the edmx file is just another visually displayed xml file. From the solution window, right click on the edmx file -- select "Open with..." -- choose Xml . Once you see the xml for the edmx file close it. Go back to the solution ......

Posted On Tuesday, June 14, 2011 6:33 PM

Why do I get the error: Specified Named Connection is either not found in the configuration for the EntityClient Provider?
The chances are pretty high that you are creating a multi-tiered application with a solution that may be calling several different projects, one of which is the ADO.NET Entity Framework DAO-layer. In order for the entity frame work to work outside the immediate project that its been created under, you'll have to import the connection string built by the EF wizard at create time to your other project's application or web config file. Here's an example. I have two projects under a single solution, ......

Posted On Tuesday, June 14, 2011 4:22 PM

System.Data.OracleClient is missing or has been depricated. How do I fix this?
Yes, Microsoft is getting quite a reputation for abandoning or deprecating it's data access products/libraries. One thing you can do is download a 3rd party product called dotConnect by DevArt. The express edition is free. ... however, if you are working in a shop that doesn't like its development team to use not well known third party tools, there's an alternative--but it still requires that you go to a non-microsoft source. Use Oracle.DataAccess.dll ......

Posted On Tuesday, June 7, 2011 5:26 PM

Why did I get the error: Cannot implicitly convert type 'string' to 'yourEnumDef.type' in my C# program?
If you are working with enum types, you were probably trying to assign something like an input string to the constants you defined as an enum type earlier. let's say you created an enum type called PoliticianType enum PoliticianType { knownothing = 1000, whig = 1010, federalist = 1020, republican = 1030, democrat = 1040 } ...and you had a console app that was accepting user input from a readline statement: Console.Write("Which political party? (press CTRL+Z to exit): "); string political_party = ......

Posted On Saturday, August 28, 2010 11:34 PM

Why Can't I compile my LINQ code?
If you're getting this message: The type 'System.Data.Linq.DataContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=b77a5c561934... C:\Documents and Settings\pldital\My Documents\Visual Studio 2008\Projects\PatentableSer... ... add... System.Data.Linq as a reference to your project. I still get bit every once in awhile (read: pasting together a poc) ......

Posted On Tuesday, June 9, 2009 5:52 PM

How do I fix this error: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0
You've probably just converted your vs 2005 web project with ajax to vs 2008. This is because Visual Studio 2008 has a newer, built-in version. The fix is short and sweet! Remove the System.Web.Extensions from references, then add them back again! That should connect you with the correct assembly. If you're uncertain how to remove the reference, check this out: ......

Posted On Thursday, September 4, 2008 10:54 AM

Thinking Through Rules in C#
As I continue with writing the manuscript on rules engines, I've isolated my examples to be coincidental with the overall theme of engineering decision support applications. Today, I am taking a close look at the seemingly simple act of identifying and rejecting unattractive alternatives when competing projects are under review to determine whether or not a given project will warrant funding. Some of the determining factors are well known algorithms in the financial world. Specifically I am thinking ......

Posted On Friday, March 7, 2008 2:51 PM

Why do I get: System.Byte[] for a String?
There are several circumstances which will display this output (or exception in some cases) in .NET, however the primary reason is because there is a mismatch between the expected format and the casting taking place in your application. An example would be attributes which are bound to LDAP that do not readily cast to string. Here is a quick solution (that has its roots in vc++) for successfully casting this datatype to string: byte[] myByteArray = (byte[])result.Properties["... ......

Posted On Friday, January 25, 2008 11:45 AM

Copyright © Paula DiTallo | Powered by: | Join free