.net

Immediate Window while debugging Stored Procs in Visual Studio 2005

Debugging stored sproc can be menace, & I was not able to use the Immediate Window like the way I thought I would be. Is the immediate window available while debugging Stored Procs in VS 2005? Is there any other way I would be able to run queries on a Temporary Table which I am creating inside a Stored Proc ? As the scope of the Temp...

What is the difference between a protocol and a named bookmark in WF4.0?

An ActivityExecutionContext has three ways of creating bookmarks: CreateBookmark, CreateNamedBookmark and CreateProtocolBookmark. Which one is supposed to be used for what kind of async operation? What is the difference between a named and a protocol bookmark? Which of the two does CreateBookmark() return and why the special case? It a...

How to create a installer to implement a database schema change?

hi all, I am creating a project which has its own database schema. The other projects which will use the DLL created by my project will have the same schema in their databse that the my DLL requires. But the problem comes if there is a need to change the schema for me, it's not a good option to say this to every client that make these a...

How to purge MSMQ system queue journal programaticaly on a workgroup installation ?

I try this : MessageQueue mq = new MessageQueue(".\Journal$"); mq.Purge(); It work good on XP. But, on windows 2003 server, I always have this error : "A workgroup installation computer does not support the operation." ...

Is .net 1.1 supported on Windows Server 2008

We're having an issue. We have the majority of our code written in .net 1.1 (including asp.net). We're told that Microsoft do not support .net 1.1 on Windows Server 2008. The bit we're really confused on is that it's apparently it's only Asp.Net 1.1 that isn't supported on Server 2008. Our question is, what signifies Asp.net 1.1 is i...

Is there a way to install the .NET 3.5 Framework without rebooting?

I have been writing a GUI application for rsync on Windows and I have been deploying it to servers. I have a problem because I use the .NET framework, and server does not have it installed, and the 3.5 framework requires the server to be rebooted after installation. This is not acceptable. Does 2.0 require this same behavior or can I a...

Why can't I install WebORB?

Hello, I downloaded WeborbSetup3.6.0.3.zip from www.themidnightcoders.com and when I try to install it all I get is The installer was interupted before WebORB for .NET 3.6.0.3 could be installed. You need to restart the installer to try again. Click "Close" to exit. And this is on Windows 7 RC1, but a friend of mine als...

NUnit - cleanup after test failure

We have some NUnit tests that access the database. When one of them fails it can leave database in inconsistent state - which is not an issue, since we rebuild database for every test run - but it can cause other tests to fail in the same run. Is it possible to detect that one of the tests failed and perform some sort of cleanup? We do...

Converting Solution from Visual Studio 2005 to 2008

We're considering converting a large solution from 2005 to 2008, but want to make sure that we don't hit any unforeseen issues. What are the things that we should be looking out for? Are we going to need to retest the entire project? Thanks! ...

Double buffered ListBox

I have a CheckedListBox (WinForms) control (which inherits from ListBox; googling shows that the problem is with ListBox) that is anchored to all four sides of its form. When the form is resized, the ListBox has an ugly flicker. I tried inheriting CheckedListBox and setting DoubleBuffered to true in the ctor (this technique works with ...

How can I get Cassini web hosting framework to work without adding it to GAC?

I am trying to use Cassini (from http://www.asp.net/Downloads/archived/cassini/) to host my old style asp.net web service in-process, ideally in a WCF style. However, when I run it, I get an exception that the Cassini.dll could not be found. The Readme.txt that comes with it says to add it to the GAC, but the whole point of using an inpr...

In C# .NET, is there a reason for no copy constructor for StringDictionary?

I apologize if this is a dumb question, but hear me out: Dictionary<string, string> genericDict = new Dictionary<string, string>; genericDict.Add("blah", "bloop"); // Use the copy constructor to create a copy of this dictionary return new Dictionary<string, string>(genericDict); In the above code sample, I can create a copy of a gener...

Reasons for seeing high" % Time in GC" in Perf Mon

While monitoring our application in Perf Mon I noticed that the % of Time In GC is anywhere from 20 - 60% while our application is performing a long running process (varies between 30 seconds to 1.5 minutes). This seems a bit excessive to me. This raises two important questions. Am I correct that this excessive? Routes I can take to ...

Should a programmer really care about how many and/or how often objects are created in .NET?

This question has been puzzling me for a long time now. I come from a heavy and long C++ background, and since I started programming in C# and dealing with garbage collection I always had the feeling that such 'magic' would come at a cost. I recently started working in a big MMO project written in Java (server side). My main task is to...

LINQ to objects cast result of query

Hello there, i have a class user, and i also have implemented a collection for the same user class - users. users will store user objects. users collection class implements the generic collection class - collection. i want to cast the LINQ query result into an object of my collection class - users. Everytime i try explicit casting, it ...

NHibernate inner join master-detail on a column other than the id

Assume the following mapping entries: < class name="Customer" table="customer"> <id name="InternalId" column="uintCustomerId" type="long"> <generator class="identity" /> </id> <!-- The BinaryBlob below is a 16 byte array - Think Guid.NewGuid().ToByteArray --> <property name="CustomerUid" column="uidCustomerId" type="BinaryBlob" not-...

Bulk insertion into SQLite.Net database

I need to perform bulk insetion into a sqlite database in visual studio. Does anybody know how to do this? ...

Extension methods versus inheritance

Are there rules of thumb that help determine which to use in what case? Should I prefer one over the other most times? Thanks! ...

database login prompt with crystal reports

I'm trying to display some report with some subreports inside it, but every it shows the report it throws some dialog box asking for database connection. I'm using this code: private void frmReporte_Load(object sender, System.EventArgs e) { Clave = ConfigurationSettings.AppSettings["Password"].ToString(); NombreBD = ...

How can I have web services implement in an assembly that is a console application using Cassini?

I am trying to use Cassini to host my ashx webservices. It works fine if I have the services in one assembly (class library), and the cassini server in the other (console application). Howver, when I move all the ashx files and implementations to the console application, I get the following error while trying to access the web service: ...