.net

Group filtering in Crystal Reports

In Crystal Report Designer in VS 2008, I can go to the crystal reports menu, report, Selection Formula, Group and enter a filter formula to filter on a group level. This means I can filter to only show records for a certain account, but my group levels show the totals for all records, which is what I want. However, when I come to add my...

Passing c# string to unmanaged c++ DLL

Hi All, I have a simple application that loads an unmanaged dll and passes a few string values to it from C#. But in the C++ dll application, I receive an exception :: Tried to access a read/write protected memory. My DLL Import looks like this: [DllImport("X.dll", CallingConvention = CallingConvention.Cdecl) ] public static extern int...

Consuming PHP webservice method with a boolean return value with .NET

I have a PHP SOAP (NuSOAP) web service method that returns a boolean value. I've executed the method in a 3rd party test application, and it seems to return the value fine. If I look directly at the XML message that's returned, it looks fine as well - returns "true" and "false" when it's supposed to. However, when I write a sample appli...

Edit a gridview inside a modalpopup without closing popup

I've got a modal popup (using ModalPopupExtender) working in a kind of master/detail view for a grid. When you click a button on one grid, it displays a popup window containing another grid of information, based on the row clicked in the first grid. This works well... I've enabled editing in the grid that is popped up. When you click ed...

ApplicationManager.CreateObject fails to load assembly in new AppDomain

I'm trying to develop a web application that dispatch (Dispatcher) to multiple versions of another webapp on a per-request basis. To to that end, I'm using ApplicationManager.CreateObject to create new AppDomains running the web app in question, but the new app domains seem to be failing to load the Dispatcher's DLL (and I'm copying the ...

Castle-Windsor: Overwrite a component in the future

I have the following use case: I want to register all components shared between all configurations of an application. Then I would like to register a series of dynamically configured "Plugins" which are expressed as custom implementations of IRegistration. Only then do I resolve my application start point. One of the things that I wo...

ToolStripStatusLabel DoubleClick does not work?

Does ToolStripStatusLabel DoubleClick ever work? Private Sub myToolStripStatusLabel_DoubleClick(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles myToolStripStatusLabel.DoubleClick MessageBox.Show("WORKING!") End Sub Only Click works. DoubleClick does not even if Click is present or not. ...

VB.Net UserControl Closing Event in Winforms

I'm trying to save some layouts from DevExpress Grid Controls so that users can change the layouts and reload them in at a later use of the control. My question is this for speed issues I am loading the control via a user control inside of a form. Now my problem is I am creating the control by adding an instance of the control to a pane...

In C# or OOP, should 2 classes reference each other that are related?

I am working on a class library using C#. I have designed 3 main classes to help model our data. They are designed such that class A contains a list of class B instances, and class B contains a reference to a class C instance, ie: public class Policy { public List < PolicyTerm > myTerms; person Customer; string PolicyNumbe...

the Javascript "function pageLoad()" doesn't play nice with UpdatePanel...

So I've got this UpdatePanel. Inside it I have a nifty little jQuery scroll gallery of thumbnails which shows the full image in a container after posting back to get the full image URL from the server. Each thumbnail in the scroll gallery is an imageButton with an onCommand event. What's happening is that when a thumbnail is clicked it ...

WiX - Install Windows Service and give permissions

We are required to give a user permissions to Start, Stop, and Query status of an installed service. In WiX 2.0, this xml would have worked: <ServiceInstall Id="ServiceInstaller" Type="ownProcess" Name="$(var.ServiceName)" DisplayName="$(var.ServiceName)" Description="Our service description" Start="demand" Account="LocalSy...

Using Linux and .NET

I want to use Ubuntu Linux, but I cant because I need to programming in .NET What can you advise me to do? ...

Cache frameworks for .NET

I'm planning to develop a web service, i need to use in memory cache, what different caching frameworks are available out there for .NET, i have used Microsoft Enterprise Library Cache block and also evaluated NCache for distributed environment. My core requirement is reliability with Cached data, i was thinking of using Enterprise Lib...

Introduce win service into setup

Hello everybody. I've got win service, which I want introduce in all my products. So how can I add setup service to all my projects setups. I try add service files to setup(exe,config ref dll) but it dosn't setup automatically and I should use installutil.exe. How can I install it with my products without usage installutil.exe. Can I use...

What does it mean for an application to be FIPS 140 compliant?

Is it as simple as using FIPS 140 compliant crypto providers or is there more to it? Are there differences if it is a web app vs a windows app? What if it is a distributed app? Are there any special considerations for IIS, WCF, ASP.Net, Silverlight, AJAX, etc? Thanks ...

Is it reasonable to enforce that unit tests should never talk to a live database/webservice?

My team continues to find more and more value in the unit tests we write. We don't generally unit test the data access layers of our applications, as they don't contain "logic". In my experience we've run into significant performance issues and non-reproducible errors as a result of letting developers write unit tests that talk to live d...

.NET Assembly References going all circular on me.

Update: Last night, I decided that this is just too much work to change the folder where some reports are saved. My work-around here is to rename the folder, run the batch job I need done, and then change the folder name back to what it was originally. I feel like I could spend the rest of today and all of next week working on this and...

Get Perforce Credentials with .NET

Lots of times when I use an application that needs perforce access (Visual Studio, Unreal Editor) when I first use it, it will pop up a dialog where the user can enter their information (user, workspace, etc). Does anyone know of a way to do this in .NET? ...

Project references each refer to different assembly versions

I have a class library project that references the version 4.1 Microsoft.Practices.Common dll. I also reference a 3rd party DLL that utilizes a different version of the Microsoft.Practices.Common DLL. I create a windows app that references both of these DLL's. I receive an error when running MSBUILD: "No way to resolve conflict betwe...

.Net configuration file

Hi. I have console app "A" that references another console app "B". "B" app has its own configuration file. When I launch project "A", the application fails, because app "B" cannot configure its components, since it uses the configuration of app "A". How to get around this problem? I want that project "B" to source its own configuration ...