.net

Which languages compile to CIL / MSIL

Most of the lists I have seen comprise: C# VB.Net Other .NET language What languages fall into the "Other" category? I've come across: Delphi C++ Cobol.Net Chrome I'm sure there must be others? ...

C# Validate before leaving accept_button event

Hi, Excuse me if this is a silly question but i'm a beginer here. I have a simply custom dialog with two buttons: Accept and Cancel. The Accept button is the acceptButton of the form. I want to do some validations on the Accept_Click event and decide if i can close the dialog or not, but everytime it leaves this method, the dialog aut...

Silverlight 3.0 and web development

Recently I just got assigned a project to develop a web application/site that uses the full capacity of Silverlight 3.0. I am a beginner in web development and so far I am more of a software engineer guy rather than messing stuff with web development. However, I am really excited for this new experience as I feel that I can explore mor...

What is the exception thrown in a running .NET thread when Windows shuts down?

The exact exception message would be helpful, too. Thanks. ...

.NET to J2ME

I have a .NET class that implements the SNMP protocol and I've been asked to port it to J2ME. Would I just create Java class and redist as a compiled .class file for the J2ME developers to use or is it more in depth than that? ...

Remote debugging on server

what is the best way to remote debugging .NET on server without install VS? ...

Clickonce certificate expired - not signing manifest almost solved it ...

I have a distributed app using ClickOnce. I went to do an update and got an error about the certificate expiring. I noticed on the signing tab that I could uncheck signing the ClickOnce manifests. I did this and successfully published my app. Worked fine for the first 7 users - but just had a user that is getting the dreaded: Manif...

Windows to Mac transformation

Hey all, I just have development experience in .Net and Windows... And now I really want have some hands on experience of development on Mac. So guys, how do I proceed (Well I'll get Mac first), suggestions please... ...

Large WCF web service request failing with (400) HTTP Bad Request

I've encountered this apparently common problem and have been unable to resolve it. If I call my WCF web service with a relatively small number of items in an array parameter (I've tested up to 50), everything is fine. However if I call the web service with 500 items, I get the Bad Request error. Interestingly, I've run Wireshark on t...

ERPConnect for SAP R/3 RFCs - is it any good?

We are considering whether we should propose using Theobald Software's ERPConnector tool to give our .NET code a way of talking to SAP RFC. Has anyone got any experience using these together? ...

Inherit comments from interface or base

Hi, I noticed that in Java(doc) there exists something like @inheritDoc, so that comments from the nearest inheritable class are explicitly copied. Does there exist something like this in .Net? I know this can be achieved with GhostDoc. The downside with GhostDoc is that changes to "base" comments are not manifested... ...

XML Schema for class containing a DataTable

I have one class which has field of type DataTable. I want to write XSD for this class. My problem is the datable structure is not fixed. The columns are added dynamically. How to write XSD for such a class? Once the XSD is defined, I want to validate the class serialized to XML against the XSD. ...

Request for AspNetHostingPermission failed on EDM Load

I am using Entity Framework in an application i am working on, however when i try to launch it from another user's machine, while trying to load the EDM i get an Exception stating that the request for the AspNetHostingPermission has failed. The assemblies are located on a network share. The assemblies are not signed and as far as i know...

What is .NET recommended practice to interact with MIME-emails with latest Windows OSes ?

We are using CDO interop (cdont.dll) in our current project for parsing incoming mime mails, but facing some bugs with Cyrillic code pages conversions. While looking for any MS supported replacements, we noticed that all available message parsing dlls marked with "Do not use" in MSDNLib (CDO, CDOex,CDOnt obviously, but inetcomm.dll for "...

ASMX Web Service slow first request.

I have a bunch of .NET Webservices running in one IIS Application. These webservices are consumed by another IIS Application (frontend). The first call is pretty slow, about 5 to 10 seconds. After that it’s just milliseconds. The first call is considered a performance problem. We’ve tried an application that calls all these webservices ...

Handling multiple forms in C# app

I'm trying to modify a C# WinForms application that uses multiple forms. At startup, a login window will be shown. If the user logs in with a correct user name and password combo a form with three different tabs will be shown as a sort of administrators view. If no password or user name is supplied, a much simplified GUI will be shown. I...

IExtenderProvider and WinForms designer file

C# 3.5 Winforms... So I’ve recently discovered the IExtenderProvider and how it can be used to extend controls with additional properties. In a prototype project that I setup i put a break point on the ‘set’ method for my extendee property and as the form loads I could see the ‘set’ method executing for every control on the form; which...

Retreiving data using WebRequest

Having nicked some code from msdn I'm miffed that it doesn't work exactly as I want straight away. I'm trying to use google translate to, well, translate some stuff for me on the fly. The problem is that t5he responseFromServer doesn't contain the translated text, nor does the source when I look at it using a browser although when lookin...

Minimizing all open windows in C#

I saw this C++ code on a forum which minimizes all open windows #define MIN_ALL 419 #define MIN_ALL_UNDO 416 int main(int argc, char* argv[]) { HWND lHwnd = FindWindow("Shell_TrayWnd",NULL); SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0); Sleep(2000); SendMessage(lHwnd,WM_COMMAND,MIN_ALL_UNDO,0); return 0; } How...

DataGridView Scroll event (and ScrollEventType.EndScroll)

When handing the DataGridView.Scroll event, you can check whether it was the end of the scroll (when dragging the scroll bar with the mouse, this is presumably when the mouse button is released). The problem is that this never seems to happen. e.Type is never ScrollEventType.EndScroll What's wrong with this? How can I do something only...