.net

AllowDrop does not appear in intellisense menu

Why does the AllowDrop property in VB.net not appear in the intellisense menu of a control? Also why is it not in the propeties window of the designer? ...

Where DateTimeFormat.MonthName[12] is used?

According to MSDN in .Net DateTimeFormat.MonthName should contain exactly 13 elements with 12 element should be empty string. What this empty string is used for? ...

When you move a new version of a dll to the GAC, will it be automatically updated in the running services?

Or do I have to restart each service that uses it? ...

How to XmlSerialize System.Drawing.Font class

The classSystem.Drawing.Font is not XML Serializable since it doesn't have a default (empty) constructor. Is there some work around or alternative way to serialize Font nevertheless? ...

Run XBMC plugins in a .net application

Is there any way to use xbmc plugins in .net? im thinking about those plugins that provide access to media content like GameTrailers and stuff like that.. ...

Anyone using Coverity 5 with .net development?

I was just wondering if anyone is using Coverity or Coverity 5 with .net development and if yes what your feelings are about it. ...

How to distinguish MethodBase in generics

I have a cache based on Dictionary<MethodBase, string> The key is rendered from MethodBase.GetCurrentMethod. Everything worked fine until methods were explicitly declared. But one day it is appeared that: Method1<T>(string value) Makes same entry in Dictionary when T gets absolutely different types. So my question is about better...

Profiling real time = 45 secs, but thread time = 0.387 secs what could cause this discrepancy?

So, our hosting provider recently moved our test server from one environment to another, virtualized environment. After the move some things on the test environment got extremely slow. For example logging in to remote desktop was slow, not using remote desktop, just logging in. Also some asp.net applications that usually runs like the w...

Shuold a query object execute the query by itself ?

After I've filled with data the query object, should there be an object that executes the query (filled query object as method parameter) or should the object execute the query by itself ? ...

Convert rss pubDate to EST in .NET

I am trying to convert the pubDate in the Rss to EST. If you look at the links posted below, they have different timezones. Is there a function which takes any type of dateformat and convert to EST ? http://rss.cnn.com/rss/cnn_topstories.rss http://www.cricinfo.com/rss/content/story/feeds/0.rss http://feeds.latimes.com/latimes/enterta...

How do I get the current users name in a custom action for windows installer?

Hello, I need to get the username of the user running the installer for my custom install action. Because the installer gets special priviledges, Environment.UserName just gives "SYSTEM". Environment.SpecialFolders.ApplicationData returns the current users appdata folder, but I can't reliably dig the username out of it. More case spec...

How to get controls on page in master detail page ?

Hi I have master page & its content page. I want to get the textboxes situated on Content page. How can i get them in C# code behind of Content page? ...

Free .NET (shared) hosting

I refer to this question every once in a while http://stackoverflow.com/questions/59791/free-online-private-svn-repositories and now i want to do the same for .NET hosting. There are lots of free but limited php hosting. I dont like to use php and sometimes i may write a quick app for friend. I may want a quick host for myself or friend...

Why is a .NET x86 windows service not displayed with *32 in Task Manager?

Hi, I created a dummy windows service using .net 3.5. The service has been compiled for x86 explicitly (32BIT corflag is set). Process Explorer from SysInternals correctly identifies the process as a 32-bit process. However, task manager does not append the "*32" to the process name. Why is that? Cheers, Alex ...

WCF WebService - Is there a way to determine that client received response?

Lets say I have a WCF service that a client can use to receive message from some server side message queue. As an example, lets say there is a server-side queue of email in a data table: ID | MESSAGE_TEXT | SENT ------------------------ 1 | Hi! | N 2 | A 2nd Msg | N Lets define our service as: [OperationContract] public...

Solving very intermittent exception in .net app

I have an asp.net MVC app in production that very seldom but very consistently is throwing the same exception and I don't know why. I cannot, no matter what I do, reproduce the exception in neither the production nor development environments. I am logging all unhandled exceptions. I have the date/time, controller, action, exception mess...

VB.net Values of Custom Attributes

Hey, I'm new to custom attributes, so I'm wondering if it is possible to get the values of the attributes. An example of the properties in my class which I use the custom attributes is: Private mFiller As String <Position(378), Length(34), DataType("A"), ParticipantDependant("P/D"), RequiredProperty("Required"), Format("Blank")> _ Publ...

Can I use the .NET Framework from JavaScript (JScript) or VBScript?

I want to write a script that can run on a vanilla Windows (XP or later) system and call methods in an installed (GAC'd) .NET assembly. (I need to deliver the script to other people and I don't want to assume that they have anything in particular installed (other than the the assembly in question). Can I use JavaScript (JScript) or VBS...

Xml help in my class ?

Xml help using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Xml; namespace xmlBase { public class xmlBase { public string XmlFileName { set; get; } ...

.NET Tear Down a Windows Service

I'm in the middle of building a simple windows service and I'm running into a small issue. The service runs just fine, the OnStart method creates a worker process that listens for incoming UDP connections. The problem I'm having is that when I either click STOP on the service, or RESTART, the service stays running in the task manager. ...