.net

Exposing only a few service methods across DMZ

I have an internal web service that exposes what rate to pay for a given task. Currently there is a single service that exposes: Currencies - Add, Edit, Delete, SelectById Countries - Add, Edit, Delete, SelectById Tasks - Add, Edit, Delete, SelectById Rates - Add, Edit, Delete, SelectAll, SelectById - (*1) Search Reference data (Curren...

How can I see the native code generated by CLR?

Is there any way to see the native code generated by CLR? In java there is a option "-XX:+PrintOptoAssembly" to see the native code compiled by JIT. So is there any similar thing for CLR? ...

what type of design diagram for a multiple thread based application?

What type of design diagram is recommended for capturing the high level/concept design of an application that has multiple threads? Any examples? In my specific case (C# WPF app) I have a application that has: a UI project & some class libraries (util classes broken out for reuse) classes within (both UI and class library) but also ...

call a vb.net class function from javascript

hi all, I want to make a call to a function of vb.net class from javascript. I mean I would call something which doesnot have extention as .aspx but rather .vb only. Is is possible? how? Thanks and regards, Tanmay. ...

Details of Assembly version

Hi, we will find Assembly version from Assembly.cs in every library. [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] My question is what is 1.0.0.0 meant by this? Thanks ...

COM interface disappears from ROT

I have two applications, both of which I have written. AppA was written in C++ using MFC. During startup it registers a CSingleDocTemplate and creates a document. The document provides a COM interface and registers itself in the ROT: LPUNKNOWN punk = GetInterface(&IID_Welder); // doesn't AddRef ::RegisterActiveObject(punk, CLSID_Int...

IIS Slow response on POST requests

We've got a .NET application as a front end with a Java based ECM solution as a backend. So the front-end does requests to the back-end through IIS. The issue is that it works fine for GET requests, but POST requets are most of the times really slow (not always). We've tried doing POST requests using the POSTER plugin for firefox and i...

.Net reporting tool

Dears, i am looking for a .net reporting control with following requirements: 1.) i need to have one report for both arabic and english data, i have a meta resources table in my database, this table has english and arabic caption, so when user select tosee arabic report, it should completely arabic data and vice versa. 2.)i should be a...

Silverlight update bindings

I have item template with image and textblock. And textblock binded to Name property. Everything working fine while i not trying to update my data. When i set to my source node new name in tree i see old name. How to update text inside item template? <my:TreeView.ItemTemplate> <toolkit:HierarchicalDataTemplate ItemsSource="{...

ASP.NET MVC2 depends on which version of the .NET Framework?

ASP.NET MVC2 depends on which version of the .NET Framework? ...

Change in a thread safe observable list generates an exception on index bounds

I am trying to make a change in an observable list bound to a wpf control from a background thread. I used for that a class that inherits from IList and INotifyCollectionChanged and all access to the collection are controled with a ReaderWriterLock. However, when I try to add an element to the collection an exception is raised: Notif...

Registry Association Problem

Hi Guys, I have a my own file type .Has and a program HasEditor which i want to be Default program for my file type. but when i right click on the has file select open with and browse to HasEditor.exe it just attaches internet explorer insteat of HasEditor.exe. What exactly happens is strange when i double click HasEditor.exe its icon ...

how do i convert a IEnumberable<SubClass> to IEnumerable<ParentClass>

How do i go from (cast?, convert?): IEnumerable<Square> to IEnumerable<Shape> ...

.Net 4 menu output as a flyout

Hi, in .Net 4 i'm using a menu apapter like so: <asp:SiteMapDataSource ID="mainNav" runat="server" ShowStartingNode="false" /> <asp:Menu DataSourceID="mainNav" runat="server" MaximumDynamicDisplayLevels="0" /> But it's outputting a flyout type menu - all the top level links are showing and have arrows next to them. Then when you rollo...

Can we create a Application Domain inside another Application domain?

Inside an application Domain "AD1", try to crate another Application domain "AD2" (Like nested application domain). Is this possible? e.g. When we create an process, that process will run in default application domain. In this process, if we create an new Application domain named "AD1", is this "AD1" is created inside default application...

Are WCF Data Services (Astoria) a good choice for a Line of Business application?

One of our architects is building a new reference architecture for the next generation of one of our company's applications. The prototype is an ASP.NET MVC 2 web app that sits on top of WCF Data Services (Astoria) and uses EntityFramework 4 for data access and object mapping. The prototype application manages roles of users, so the se...

Is it possible to port Swing into .Net world?

My question is it possible to port Swing into .Net world? Or a project like this has already been started. If it is not possible, can anyone please shed some light on the reason? ...

How-To: check if array<T>^ == nullptr ? C++ / CLI

Hi all, I've done a pretty basic class in C++/CLI using generics. How can I check if the generic array^ equals nullptr? generic<class T> where T: IGenericContainable public ref class FIBEXGenericContainer abstract : AbstractFIBEXNode { public: property array<T>^ Children; public: property T default[String^] { T ...

Console.Write is not working when executed by BackgroundWorker of .NET GUI Application

I've a (C#).NET GUI application. Where I need console for displaying some output. The code that (is writing to console) contains Console.WriteLine statements is executed by the BackgroundWorker & not the main thread. Some one suggested,here: http://stackoverflow.com/questions/3385097/console-write-in-net-gui-application/3385142 that mak...

Adding a column value by using DataReader Problem

Using C# & MySQL When I select the combobox value, the corresponding value should display in textbox C# Code. cmd2 = new OdbcCommand("Select name from users where username='" + cmbuser.Text + "'", con); dr= cmd2.ExecuteReader(); while (dr.Read()) { txtusername.Text = dr("user"); } The Abo...