.net

See if any application has a DLL from the GAC loaded

I'm trying to deploy new copies of my DLL to the GAC on remote servers, but I need to identify if any processes currently running have a loaded copy of the DLL I'm replacing - I'd like to restart them, or at least tell the user. For example, Biztalk seems to load the DLLs it needs the first time they're used, and then replacing them kee...

What's a good checklist for instrumenting my .NET application

Hello all, I'm looking for a best practices checklist for instrumenting my code. Not so much what tools to use (I'm a System.Diagnostics.Trace fan myself) but just where you should put tracing statements in a "typical" application. If you have a tip (or tips) can you please provide them here. Maybe distinguish stuff that you absolutel...

Passing data across appdomains with MarshalByRefObject.

I'm having a little trouble passing some data between two .NET appdomains and I'm hoping someone on here can help me. Basically what I have is a main application (Main) which loads assembly A and B into it's main domain, then when I run a plugin(C) Main calls a create domain method on B which creates a new domain and loads C and a insta...

Is there a .NET ready made method to process response body of a HttpListener HttpListenerRequest body?

I'm using HttpListener to provide a web server to an application written in another technology on localhost. The application is using a simple form submission (application/x-www-form-urlencoded) to make its requests to my software. I want to know if there is already a parser written to convert the body of the html request document into...

Using ASP.Net MVC UI Helpers in a classic ASP.Net project

Hi guys Just wondering if anyone know if in general you can use the MVC UI helpers in a classic ASP.Net project. Obviously you would have to be mindful not to you the form helper, etc. But I have some helpers that I have built for MVC and wondering if there is anyway I can use them as is in my older project. I know I would need to re...

Handling mutable collection keys in C#

Let's say I have a simple class Cat in C#, with a Name property of type string. Now I need a collection class for my cats, so I decide to wrap a Dictionary<string, Cat> in a custom collection class. Basically, this class holds a private dictionary variable and adds or removes collection members as necessary, as well as indexing cats by t...

Problem with EDM in ASP.NET MVC

Hi there, I don’t know I am really stuck with this problem and I can’t able to get the solution. I have this code to update my contact and contact group. var originalContact = GetContact(contactToEdit.Id); // Update with new group originalContact.groups = GetGroup(groupId);// Exception : A referential integrity con...

How to clear fields after post back in asp.net mvc?

Hi I am wondering how do I clear fields after a postback in asp.net mvc? Like right now when validation errors occur the fields stay populated with whatever a user would entered. This is fine however, when no validation errors occur I want the all the fields to clear and a message to display. So right now I have the success displaying ...

IDisposable metaphor in Java?

As a java developer getting into .NET I'd like to understand the IDisposable interface. Could somebody please try to explain this and how it differs from what happens in Java? Thanks. ...

Can't call a webservice method using SOAPpy

I am trying to call a webservice using SOAPpy: from SOAPpy import SOAPProxy url = 'http://www.webservicex.net/WeatherForecast.asmx' server = SOAPProxy(url); print server.GetWeatherByPlaceName('Dallas'); print server.GetWeatherByZipCode ('33126'); The server call fails: Traceback (most recent call last): File "soap_test.py", line ...

How do I get the computer name in .NET

How do I get the computer name in .NET c# ...

How to show map control on windows mobile application and which service is providing that?

Hi all, I am searching for How to use map control on windows mobile 6? Which service i have to use for this? Can any one help me? Thanks. ...

WebException error..

I am getting an error like this Can any one tell me the possible reason for these type of exception unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed: Unable to connect to the remote server. Is this related to IIS ,,or any NetworkCredentials to t...

Netbook for DOTNET Development

I'm looking for a netbook to do some dotnet development. Is there a recommended brand/configuration. I'm looking for reasonably good performance. Here are some of my requirements: Win 7 ultimate MS Office VS 2008 and VS 2010 when it's out CodeRush good size keyboard without having to do a Fn+Key for Insert, Home, End and Del keys Prefe...

Help required: zip files streaming

Hi all, i have problem in sending zip file in network.. all other formats i am able to send except .zip.. i tried a lot i dont no how to do this.. the code i have written at client side to upload file, this is suggested by microsoft here is the link i am able to create zip file, if i try to open it says corrupted..size of the file al...

Where do I find detailed documentation for .Net?

Here's an example of a wasted day: (1) I want to find out exactly what Binding.FormattingEnabled does. (2) I type MSDN Binding.FormattingEnabled into google and go to the page. (3) I read the 3, 'helpful', line description. (4) I check out the bottom of the page for references. (5) Never mind, non of those helped.... (6) I search g...

Why the form class in windows form application is declared as partial?

Can somebody tell why and for what it is declared as partial? what is its use? Is this possible to declare it without partial? ...

What is "AxSHDocVw" in .NET?

What is it use and how it can be used.I think its a DLL.But don't know much more. ...

Why are .NET value types sealed?

It's not possible to inherit from a C# struct. It's not obvious to me why this is: Clearly you can't have a reference type that inherits from a value type; this wouldn't work It doesn't sound reasonable to inherit from one the primitive types (Int32, Double, Char, etc.) You'd need to be able to call (non-virtual) methods on the base us...

use of "using" keyword in c#

Hello, i want to know what is the use of "using" keyword in c#, i am new to it.. when we need to use "using" keyword.. i googled it, could not be satisfied with answers. still i want to know some more from you Geeks.. Thanks ...