.net

Debug Visual Studio 2005 Web Service from Visual Studio 2008 Client...

I have a .NET Web Service running in VS2005 and a client that consumes it running in VS2008. Is there any way, while debugging the client, I can step into the code of the service? Both are running locally. Many thanks for your time, P ...

Embedding resources from win32 dll to .net

I work with class treeView. i want to create the tree of files with icons. i want to extract some icons from shell32.dll. Can icon or image class work with res-protocol. how to know full path to file on res protocol? ...

How to get Type[] of all classes a class extends

You can do Type[] interfaces = typeof(MyClass).GetInterfaces(); to get a list of everything a class implements implements. I am wondering if there is anyway to crawl the "extends" tree to see all the base types a class inherits, i.e. abstract classes etc.? ...

How to detect image orientation (text)

My program is working with fax documents stored as separate bitmaps I wonder if there is a way to detect automatically page orientation (vertical or horizontal) to show image preview for user in right order (meant rotate if neccesary) Any advices much appreciated! EDIT: Clarification: When Faxmachine receives multi-page document it sav...

how to: re-assemble machine generated classes from xsd files to their original nested state.

Hi everyone, I'm working in Visual Studio 2008 using c#. Let's say I have 2 xsd files e.g "Envelope.xsd" and "Body.xsd" I create 2 sets of classes by running xsd.exe, creating something like "Envelope.cs" and "Body.cs", so far so good. I can't figure out how to link the two classes to serialize (using XmlSerializer) into the proper n...

Automated test, build and deploy

I have visual studio team suite 2008. I was unable to meet the requirements to setup TFS, so I'm using TortoiseSvn and VisualSvn as my version contol in VSTS. I need the system setup to do the following: I neeed to be able to create and track workitems. When updates are made to the current project worked on in VSTS, the updates will be...

Edit dialog, with bindings and OK/Cancel in WPF

How can i have a dialog for editing the properties of a class with binding, and have OK-Cancel in the dialog? My first idea was this: public partial class EditServerDialog : Window { private NewsServer _newsServer; public EditServerDialog(NewsServer newsServer) { InitializeComponent(); this.DataContext = (_new...

Garbage Collector not doing its job. Memory Consumption = 1.5GB & OutOFMemory Exception.

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.IO; using System.Drawing; using System.Drawing.Imaging; namespace TrainSVM { class Program { static void Main(string[] args) { FileStream fs = new FileStream("dg.train",FileMode.O...

Unable to read .rtf file in VS.NET 2008 Setup

Hello All I have created a simple windows application in .NET 2008. Im packaging the same into a setup file using .NET Setup and Deployment. Also i am customizing it to include a License Agreement UI. And i am pointing the License Agreement window to read the license.rtf file which is being included in the Application folder. After su...

How to retarget the scroll wheel in VB.Net?

I have a form in VB.Net with Autoscroll enabled and several ComboBoxes within it. When I click on a ComboBox, I can use the mouse wheel to scroll through options, but I cannot deselect the ComboBox (by clicking off it on a blank portion of the parent form) in order to return to scrolling the parent form. This makes navigation in the form...

Read specific language readme file based on locale in .NET Setup and Deployment

Hello How can i read a specific language file in VS.NET Setup and Deployment based on the locale. For instance, I have to read ReadMe_English.rtf when the regional settings on the installed pc is English. I have to read ReadMe_German.rtf when the regional settings on the installed pc is German. Any ideas how to configure for the lo...

Can anybody tell me about Generation of Garbage Collector in .net

Can anybody tell me about Generation of Garbage Collector in .net ? ...

How to give language option at installation time of my .NET project?

I created one desktop project in C#. I want to know about how it could be used for different languages. I created an resx file for all the forms like that: select particular form goes to the property window set localiztion true select language in which I want to show in particular language. Convert all labels text and other functionalit...

How do I use a .NET class in VBA? Syntax help!

ok I have couple of .NET classes that I want to use in VBA. So I must register them through COM and all that. I think I have the COM registration figured out (finally) but now I need help with the syntax of how to create the objects. Here is some pseudo code showing what I am trying to do. EDIT: Changed Attached Objects to return an Arr...

Restrict Serializing Entire Object Graph When Calling WCF Service to Update a EntityObject

We have a WCF service that uses Entity Framework to query a SQL database. The WCF service is our data access layer. If any of our applications what to read/write data to and from the database, we call a method on the WCF service. The WCF service serializes the EntityObjects to the client apps. In the client app (e.g. WPF app or ASP.NET ...

Failed to update database because it is read-only

I have set up my website to use ASP.NET Membership. it all works fine when trying to use it on my development machine but when I put it on the web server and try to log in, I get this error : "Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only. " ...

Few doubts regarding Bitmaps , Images & `using` blocks

I caught up in this problem. http://stackoverflow.com/questions/2559826/garbage-collector-not-doing-its-job-memory-consumption-1-5gb-outofmemory-exc I feel that there is something wrong in my understanding. Please clarify these things. Destructor & IDisposable.Dispose are two methods for freeing resources that are not not under the ...

.net remoting, how to detect disconnected/crashed clients from the server?

how to detect disconnected/crashed clients from the server? ...

how to set autoplay=true in google audio player?

i am using google audio player in asp.net website and i want to set autoplay=true by default,when a page loads. ...

Microsoft Silverlight cannot be used in browsers running in 64 bit mode.

Hi, I have taken ownership of an application which is a .net win forms application which hosts a System.Windows.Forms.WebBrowser. When the application launches it makes a http request to load a xap file. I immediately see "install silverlight" icon and on clicking get: "Microsoft Silverlight cannot be used in browsers running in 64 bit...