Tag Cloud

.NET

In a nutshell this is due to an incompatibility between .NET and Windows. The most likely candidate for the cause would be an upgrade to either Windows or .NET. Overall, check the Windows and SQL Server patch levels. The CLR/.NET that is affected is Microsoft.SqlServer.Types. To poke around to see what else might be at risk, issue these queries from master:SELECT * FROM sys.dm_clr_appdomains;SELECT * FROM sys.dm_clr_loaded_assemblie... * FROM sys.assemblies WHERE principal_id <> 4 AND ......

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

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

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

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. http://www.devart.com/dotco... ... 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 ......

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

Here are the 2 common patterns in .NET: GIVEN: PATTERN #1: Note: this method will work with collections that are typed, but not necessarily defined in a class which manages enumeration string itemName; for (int index = 0; index < OrderList.Count;index++) { itemName = OrderList[index].ItemName; // do stuff here } PATTERN #2 using System; using System.Collections.Generic; using System.Text; namespace AskPaulaExamples { public class Whine { // define AND dub the collection with something List<string> ......

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=3.5.0.0, 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) ......

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: http://geekswithblogs.net/A... ......

Let's say you've converted a vs 2005 asp .net project over to vs 2008 and you have old ajax references like System.Web.Extensions, etc. that you want to get rid of, but they don't show up under the Solution view. The way to remove those references (or add new ones) is to do the following: Right click on the solution (assuming the solution view is active) Select Property pages At the bottom of the dialog box you'll be able to Add, Remove or update ......

If you are seeing the message: Business Contact Manager failed to initialize the Common Language Runtime. ECall methods must be packaged into a subsystem module, BCM isn't really the trouble. You are getting this message because on or around April 11, 2008 an automatic update from Microsoft downloaded a damaged component of the Microsoft .NET Framework 2.0. On the bright side, today is May 20, 2008 and a patch has already been downloaded on an automatic update. You'll just have to repair it! To repair ......

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

If you are getting an error when attempting to access your ASP .NET application that looks like: Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad36... or one of its dependencies. The system cannot find the file specified. You are probably missing AJAX v1.0 ......

Overall, when an incoming XML message contains multiple potential single messages, the extraction process needed to separate the messages out is thought of as "splitting " or "shredding" the message. The splitter pattern then, is a reliable, uniform way to address splitting/shredding throughout your applications. An example for why your application might need to split messages would be something like a single input XML message with multple pension fund benefits for multiple persons which require ......

During the heyday of Microsoft's Visual C++ development (read: late 80's - early 90's) this naming convention was talked about a lot. In essence the naming convention prefixes each variable name with letters that denote the data type + a shortened description name -- with each word of the description beginning with a capital letter. Let's say you needed to create a variable that would contain the string value of a book title. You might choose a name like: strBookTitle or maybe just strTitle. Today, ......

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["... ......

If you are getting the message: The test form is only available for requests from the local machine it is because you are probably testing the web service from the remote box you just migrated the web service to! The quick solution to that is to follow the advice of Juan Ignacio Gelos... (http://geekswithblogs.net/... ...and do the following: 1. Edit the web.config file for your web service application. Add or Edit: <configuration> <system.web> <webServices> ......

I am currently working on a manuscript about business rule engines; their purpose in large scale enterprise integration projects; their role in SOA architectures--and their untapped capability in enriching data warehouse-based intelligence delivery. Today, I am outlining the criteria for comparing two divergent products: TIBCO's iProcess Decisions (part of the BPM product suite) and Microsoft's Business Rule Engine (BRE) (installed with BizTalk Server). For the nuts and bolts of this first comparison, ......