.net

CLR error:8007000b

when i open the IBM Information Sever Console i am getting the below error message. CLR error:8007000b ...

SQL Server Views - INFORMATION_SCHEMA.VIEW_TABLE_USAGE

When i query INFORMATION_SCHEMA.VIEWS it list all views but when i query INFORMATION_SCHEMA.VIEW_TABLE_USAGE it displays only few views. How can i rebuild all the views info in INFORMATION_SCHEMA.VIEW_TABLE_USAGE? ...

What are the benefits of using ORM over XML Serialization/Deserialization?

I've been reading about NHibernate and Microsoft's Entity Framework to perform Object Relational Mapping against my data access layer. I'm interested in the benefits of having an established framework to perform ORM, but I'm curious as to the performance costs of using it against standard XML Serialization and Deserialization. Right now...

Error while using Script Manager

"Only one instance of a Script Manager can be added to the page. " Such Error occurs when I use Script Manager in my vb.net 2005 application. What should I Do? ...

Stop node containing subnodes and text in schema

If I have some xml like this: <mynode> <mysubnode> <mysubsubnode>hello world</mysubsubnode> some more text </mysubnode> </mynode> As you can see, mysubnode contains both a subnode and some text data. What I want to know is, is it possible to prevent this happening in a schema? I don't want nodes to contain sub...

Problem with usercontrol scaling when added at run-time in .Net, WinForms

Here's a link to a tiny VB.Net 2008 sample: http://www.4shared.com/file/255391716/26c45c1e/UserControlTest.html And, a C# sample: http://www.4shared.com/file/255392906/27f4efbb/UserControlTestCHash.html Apologies but its a free hoster, so you have to wait 10 seconds. First here's the steps to replicate, then I'll explain what the p...

When does the .NET runtime hold a reference count > 1 for COM objects?

Until recently, I believed that the .NET runtime only increases the reference count of COM objects by 1 when creating a runtime-callable wrapper, and that only one such runtime-callable wrapper is created for any given COM object. If I'm not mistaken, the above implies that Marshal.FinalReleaseComObject and Marshal.ReleaseComObject do t...

installing WF into VS 2008 Express

Hello guys. I'm trying to install WF with VS2008E. That's what I already did: Go to http://msdn.microsoft.com/en-us/netframework/aa663328.aspx "Get it" http://msdn.microsoft.com/en-us/netframework/dd980558.aspx "Get the Windows Software Development Kit" http://msdn.microsoft.com/en-us/windows/bb980924.aspx Select first link at Downlo...

Correct XML serialization and deserialization of "mixed" types in .NET

My current task involves writing a class library for processing HL7 CDA files. These HL7 CDA files are XML files with a defined XML schema, so I used xsd.exe to generate .NET classes for XML serialization and deserialization. The XML Schema contains various types which contain the mixed="true" attribute, specifying that an XML node of t...

Insert into a generic dictionary with possibility of duplicate keys?

Is there any reason to favor one of these approaches over the other when inserting into a generic dictionary with the possibility of a key conflict? I'm building an in-memory version of a static collection so in the case of a conflict it doesn't matter whether the old or new value is used. If Not mySettings.ContainsKey(key) Then myS...

injecting dll into exe file

hi I want to execute an exe file which is written in VC++.net 2008 in a computer which has windows xp and has not .net framework and none of c++ libraries. but when i run the file i get this error: This application has failed to start because the application configuration is incorrect.... I want a way to put all dependency together to...

How do I change the logged in user to another?

I would like to change the logged in user to another user temporarily to do some process. For example, say I am logged in as "Joe". In my method, I want to make the logged in user from "Joe" to "SuperUser", do some process, then change the logged in user back to "Joe". Can someone help with this? ...

Custom links in RichTextBox

Suppose I want every word starting with a # to generate an event on double click. For this I have implemented the following test code: private bool IsChannel(Point position, out int start, out int end) { if (richTextBox1.Text.Length == 0) { start = end = -1; return false; } int index = richTextBox1.GetCh...

What should I do if i have a factory method which requires different parameters for different implementations?

I have an interface, IMessage and a class which have several methods for creating different types of message like so: class MessageService { IMessage TypeAMessage(param 1, param 2) IMessage TypeBMessage(param 1, param 2, param 3, param 4) IMessage TypeCMessage(param 1, param 2, param 3) IMessage TypeDMessage(param 1) ...

VirtualMode in Gtk.ListStore ?

I'm looking for a feature within the Gtk.ListStore that working like the ListView.VirtualMode in Winforms. Is there something like that? ...

IIS 7.0 Global CSS File

I am setting up my new 2008 Server w/ IIS 7 and I am having trouble getting a global application style css file to apply to my web apps. So my app is in c:\inetpub\wwwroot\firmApps\applicationName and my css is in c:\inetpub\wwwroot\firmApps\applicationStyle/global.css. This set up works fine on my production and test iis 6 boxes bu...

Design to avoid type casting in derived classes?

public interface IBasePresenter { } public interface IJobViewPresenter : IBasePresenter { } public interface IActivityViewPresenter : IBasePresenter { } public class BaseView { public IBasePresenter Presenter { get; set; } } public class JobView : BaseView { public IJobViewPresenter JobViewPresenter ...

How to structure an enterprise MVC app, and where does Business Logic go?

I am an MVC newbie. As far as I can tell: Controller: deals with routing requests View: deals with presentation of data Model: looks a whole lot like a Data Access layer Where does the Business Logic go? Take a large enterprise application with: Several different sources of data (WCF, WebServices and ADO) tied together in a dat...

How to write an altered COM Structured Storage file to Disk?

I have a COM Structured Storage File reader implemented that can open Storage and stream objects, that's all happy. But now I want to be able to copy things from one archive to another and rename things and then write things back to the disk. I haven't even adressed the copy and rename operations because I can't seem to even write chan...

Sending test emails in development without spam or rejection issues.

I run my development environment in a VM and need to test the delivery and appearance of emails from my applications. The problem is when my SMTP server starts delivering a lot of mail to my corporate email account, the server is soon rejected as a source of spam. Of course, the major Internet email providers will also never accept ema...