.net

Compiled C dll can't set pointer when called from ASP.NET App

I've got a 3rd party C application that's compiled to a non-.NET non-COM DLL. It has one simple function declared like so: Declare Function CapiTaxRoutine Lib "taxcommono.dll" (ByVal sInData As String, ByVal OutputData As String, ByVal intINPutLength As Long) As Integer If I place the taxcommono.dll in my path (C:\Windows\System32 is...

Script Sharp 0.5.5.0 installed for VS2010 and S2008 on the same machine.

Hi, I have VS2010 and VS2008 on my laptop and I would like to install Script# in both. However if I install in one of them (2010) when I try to install it on 2008 with the other installer it fails and tell me to uninstall the "old" one first. Did someone manage to do this? ...

Can a IFormatter deserizalize a object of an unreferenced type?

Supose I serialized a third party library type object with BinaryFormatter. An assemby that does not references this library tries to deserialize the bytes. Will it work? I do not expect to it be cast to the correct type, I just want to retrieve it as an object instance so I can group it and serialize it again. ...

What are essential framework services for a mid-sized company?

I create .NET applications for a mid-sized manufacturing company. I would like to create a number of "framework" web services that can be employed by most of my applications. What web services have you found to be useful for reuse within such an environment? UPDATE: applications will do everything from e-commerce with external custom...

Winforms - reference an updatable configuration file

I plan to build a WinForms application that will contain among other controls a dropdown list containing the names of the servers my team supports. I'm looking to the future and wondering what to do if we inherit more servers. Can I create an updatable xml file and distribute that with the app and have my teammates update it when we...

Is it reasonable to catch an exception based on the message?

I want to gracefully handle a specific exception with a certain message. Unfortunately, it's just an ArgumentException, and not specific to what I'm looking for. In this case, the message is "An item with the same key has already been added". This IS an exceptional case, but I want to handle it so that I can either turn it into a specifi...

how to deploy asp .net website alongwith database in IIS?

When I run website in browser, following server error occured - Server Error in '/FinalHVA' Application. -------------------------------------------------------------------------------- Cannot open database "HVAdb" requested by the login. The login failed. Login failed for user 'COMP1\ASPNET'. ...

C#.NET 2.0 - Getting ConfigurationError, configuration section for Logging cannot be found, when running test framewlork

Hello - We have a solution that comprises several projects. I came on not too long ago, and started adding functionality to one of the projects. We are using the Enterprise Library 3.1 Logging Application Block for logging. We have been talking about Unit Testing (who hasn't) but haven't tried to add it until today. I decided to use...

Getting an FLV from YouTube in .NET

I'm writting FLV media player and want to know if there is there anyway of accessing the underlying FLV files used by YouTube from a URL? There used to be a bunch of ways of doing it, but YouTube have changed things about and I now can't find any way of doing it... From what I've seen so far, the YouTube API doesn't seem to give access ...

Any efficient/reliable way to expose one event?

Any efficient/reliable way to expose one event? I have a class, MultipleDocumentCopier that copies multiple documents thru an instance of SingleDocumentCopier. SingleDocumentCopier exposes an event CopyCompleted that is fired when a file is copied. Suppose that, I am copying 10 files, instead of raising SingleDocumentCopier.CopyComplet...

Deploying web server that uses Oracle.DataAccess results in various assembly errors

My development machine is Vista x64. I am using WCF web services to build web services interfacing to an oracle 10g database. When development started, I could not use VS2008's built-in WCF test tool [WCFTestClient] that launches when you press F5 [Go], on the 32-bit Oracle.DataAccess.dll, because I get System.BadImageFormatException o...

What is IDataErrorInfo and how does it work with WPF?

While working on some custom validators in WPF, one of my co-workers pointed me out the IDataErrorInfo. I have a sample view in XAML that has a textbox and a button. Based on the value in the textbox I would like the button to be either enabled or disabled. My co-worker suggested that extending the IDataErrorInfo in the presentor of my v...

Adding Checkbox during Databind

Hello, I have a Datalist and I am trying to insert a checkbox for each record that gets bound to the datalist. The first record has the checkbox but the subsequent records do not. I suspect that what I am doing is just replacing the first checkbox eachtime a record is bound. Can someone give me some insight? I need the checkbox to be re...

SuspendLayout Keep giving me an expection

Hi I am trying to make a windows mobile application and for some reason the SuspendLayout keeps crashing. How it is crashing is this. I go to my login page for my app. I then rotate the phone to landscape and login. I then press the "OK" button that should close this new form I went to. I then am back to the the login page and I rotat...

A better threading model for this class?

Hi, I have a simple class called Job with a public ctor and public function called Run(). Run() will do some work including making a request to a 3rd party vendor which cost some $$$. Before it makes the request, it first checks the SQL Server DB to see if the data is already there. After making the request, it puts the data in the DB....

Conditional formatting in a DataGrid using .Net Compact Framework 3.5

This is very standard in the full .net version. I want to Bind to a collection of objects and then handle a RowDataBound event of some sort and change the background color of the row based upon one of the objects properties. Is this possible in Windows Mobile using the .Net CF 3.5? ...

Why does a .NET File.Delete() fail with UAC and requireAdministrator=True?

This is a driving me nuts. I have searched all over StackOverflow and read all about UAC. But I'm still running into a problem. Using VS 2008, I have a simple program that does nothing but this: File.Delete("c:\windows\fonts\whatever.ttf") The EXE has a proper manifest with requireAdministrator=True. When compiled, the app icon recei...

Anyone integrated MULE (ESB) into .Net platforms or WCF?

HOw did you integrate? SOAP? etc ...

Unit testing a WCF service with multiple dependencies

I certainly hope someone can help ease my frustration. I am trying to find a good way to unit test my WCF service implementation classes but every resource that I've found providing a solution is limited to services with only a single method/operation. In my case, I have a service class which contains several service methods/operations...

Is there a possibility of there ever being a PHP.NET?

Sorry if this is a silly and/or stupid question but... Will there ever be, or would it even be possible to have a PHP.NET? Or have I got the wrong end of the stick? It seemed to me that one of the main points of .NET was that you could write your code in one of a bunch of the .NET languages and have it compile into CLR. Could this happe...