.net

Reference Types in .NET

How reference types are stored on heap in .NET? (means in which form) If in application have 2 objects with same name how those objects will stored on heap? ...

Hiding Div on when other div gets visible

Hi, I have a code below in my aspx page: <div id="FormContainer"> <div id="leftSection"> <h1> Contact Us</h1> <div id="intro"> <p> Contact PLI</p> <p> &n...

.Net Framework Inheritance memory managment, Plz Help ?

An interviewer asked me this question and still i am not sure what's the proper answer of this... Scenario : We have Inheritance in which there is a "Base" Class and its "Child" class, Now if we instantiate Child class, its Parent/Base class is also is instantiate. Now interviewer Asked me these questions... interviewer : how .net ...

External Controllers and Castle

FIXED: I'm leaving this in case some other Joe Schmo needs it. In the controller factory you need to register the controller so that it can be found when called. container.Kernel.AddComponent("ExternalResources", typeof(InteSoft.Web.ExternalResourceLoader.ExternalResourceController), LifestyleType.Transient); Do it like so: // Instanti...

Oracle NUMBER problem: Decimal to Int64 cast

We are developing a standalone application that stores its data in a Database. We use Dataset and TableAdapters for the communication with the Database. One of the basic requirements is the application to be able to use SQL Server, Oracle and MySQL. For this purpose we made the queries in the TAs vendor independent. We use ODBC provider....

DLL runtime error crashes my c# app - how to avoid it?

Hi, Within my windows app, i'm using a c++ DLL wrapped with a .NET DLLs (specifically - the quickfix engine). While running, once every day (not at any specific time), in one of the a constructor of one of the built-in classes throws a runtime error. Even though the error is caught and reported (to a log file, and the database), I still...

Adding a custom wcf behavior extension causes a ConfigurationErrorsException

I want to add a behavior extension so that my service classes will be instantiated with Ninject. I created a class that inherits from BehaviorExtensionElement and registered it in my App.config. I cannot see anything obvious I'm missing, yet on startup this is thrown: System.Configuration.ConfigurationErrorsException: An error occurred ...

How to access the member of a class(created in c#) in dephi

I have created a lib which contains DateRange class in c#. I have created .dll and .tlb for that lib and registered the .tlb file. All the necessary steps has been done. In Delphi, i used import type library option to produce a unit which contain the information of all classes which i created in c#. Problem: I dont know how to use the...

How can I configure Cassini web server to accept requests to different hosts?

See duplicate: Customizing the cassini webserver I have a web service hosted using Cassini web server. It works fine if I reference it by localhost, but when I use my machine's name (even using the browser locally), I get: Server Error in '/' Application. HTTP Error 403 - Forbidden. Version Information: Cassini Web Server 1.0.40305....

Server returns blank pages with asp.net 3.5 on IIS6

I have a problem with site deployed on IIS6 sever. Here the problem, when I first deploy asp.net 3.5 site to server (site is relatively small with 5 pages and 5 libraries in bin), it is works as expected. But after some period of time (~1h) server returns black pages instead of expected content: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4...

Windows 7 default .NET framework

Hi, Does anybody know what will be the default .NET framework that will come with Windows 7? Thank you ...

Remember selected row in DataGridView

I'm trying to get my datagridview control to remember the selected row after data refresh. The DGV is databound to a list of business objects: Dim FXs As SortableBindingList(Of FX) = FX.LoadAllForBinding(FXStatus) Dim bs As New BindingSource bs.DataSource = FXs The overall sequence is something like this: User clicks on a row Row i...

Can I uniquely identify DVDR(W)(+/-) medium from .NET?

I would like identify DVDR mediums from .NET code. It's possible and how? Some kind of library, which call Windows API. UPDATE I have lot of DVDRs and I need to identify each of them, but not depends on content or disk name. Some kind of serial number of each DVDRs, which DVDR get in factory. ...

Returning XML From a WCF Service

I am creating a WCF Web Service in which one method (exposed in Service) return data in XML format as given below: public string QueryDirectoryEntry() { XmlDocument doc = new XmlDocument(); doc.Load(@"c:\" + FILE_NAME); return doc.InnerXml; } If the client call this method ther service return data ...

What is the difference between Environment.CurrentDirectory and Directory.GetCurrentDirectory?

In .NET what is the difference between Environment.CurrentDirectory and Directory.GetCurrentDirectory()? Of course, Environment.CurrentDirectory is a property which can be set and obtained. Are there any other differences? ...

XPATH issue in C# and PowerShell

Hello everyone, I have the following XML file and I want to print out the baseAddress value, then change the value and write update to the same XML file. My problem is I am using the following scripts in PowerShell to manipulate, and seems the related value could not be retrieved. I think the reason may be there is a sign '.' in the el...

WCF v.s. legacy ASP.Net Web Services

Duplicate: although this is a good discussion, this is a duplicate of Web Services — WCF vs. Standard. Please consider adding any new information to the earlier question and closing this one. Could anyone recommend me some documents to describe why WCF is better than legacy ASP.Net web services? I am especially interested in performan...

Cross platform RPC for .NET service

I have a .NET 2.0 service that is currently accessed via .NET remoting, and I would like to add support for another RPC method that allows a wider range of platform and language support. All of the API methods take and return XML and simple types like int. I know about CORBA and IIOP.NET which look promising. What other technologies s...

What is the Java equivalent of Debugger.Launch()?

What is the Java equivalent of Debugger.Launch()? ...

IPv6 and SoapTcpTransport.GetInputChannel (WSE)

I’m having a problem getting IPv6 addresses to work with the .NET WSE SoapTcpTransport.GetInputChannel or more specifically SoapReceivers.Add, which uses GetInputChannel under the covers. Since no one else on the planet seems to be having this issue, I assume that I’m doing something wrong. If I create a SOAP input channel using an IPv...