.net

Windowservice error

I have solution which contain so many projects and windowservices. I modified coding on the application side of windowservice,after that i copied the exe regarding that service(F:\Components\Console\Bin\service.exe) in to the installation path(C:\Program Files\syscon\ Monitor\service.exe) after stopping windowservice from the 'service...

Redirecting stdin and stdout in .Net

I'm trying to redirect stdin and stdout of a console application, so that I can interact with them via F#. However, depending on the console application the obvious code seems to fail. The following F# code works for dir but fails (hangs) for python and fsi: open System open System.Diagnostics let f = new Process() f.StartInfo.FileNam...

SLP API in .net

Does any one know any SLP API in .net? ...

merging two projects

i need to merge an older version of a time management project (to which i made all the skin and some other functionality changes to) with the current live version of the project. What should be the next step after Exporting the Source code of the live version to SVN? What is the easiest way of merging the two projects without making it m...

Calling Native APIs from Managed Code

Hi all, I am developing a Windows Mobile application using WM6 SDK. The application is a Managed code (using C#) & I would like to know the steps to be taken in order to call native functions. Thanks for the help, Abdel Olakara ...

Can't view Database Fields in CrystaReportViewer

I have set up a crystalreport by using a dataset. After binding it to the crystalreportvewer I get no error, but the database fields are simply not visible. I have done it in vs.net 2005, using C#. Can anybody help me? ...

Best way to ship 1GB of structured textual data used in my software?

Hello, I've around 1GB of structured text data, (which is currently stored in database MySQL, mroe than 1million records) used by software. I've to ship this data along with the software. I also need to protect this data. This data shouldn't be not accessible for users for other purposes. This software is just like an interface to data...

XSL to HTML in .Net 1.1: How to include javascript which has '&&' without getting errors?

I am transforming xml to html using xslt in .Net 1.1. One part contains a javascript section where 2 vars are ANDed (&&). The transform throws an unknown entity error. What can I do? I have tried 'CDATA' and 'disable-output-escaping' but without success. If I write && then the output is also '&&'. Here is my code. (trimmed for clarity...

I want opensource application in C# or VB.net which is similer to MS-Office

i want to develop a application like MS-Office specially like ms-word and excel. i want opensource application in vb.net or c#.net to witch i can extend to ms-word and excel kind of functioning and i will make its language in my regional language to help my regional people to work on computers. ...

Entity Framework transaction model

Hello, I would like to know if it is possible to use another transaction system in EF that it is not System.Transaction. Could I use an abstraction of the system.transaction in it? Regards. ...

Why does maxConcurrentSessions default to such a low value? And what is a safe value?

In WCF maxConcurrentSessions defaults to 10, so limiting a server from having more then 10 open TCP connections to it. Why is this so? Is it safe for me just to set it to a very high value for a server that has a "handful" (or two) of clients, but needs to keeps a netTcpBinding open for each clients due to sending events to the clients...

How to get RAS connection status on Windows CE 4.2 with Compact Framework 1

Hi, can anyone tell me how to check if a Windows CE 4.2 device is currently connected to the Internet, i.e. how to get the RAS connection status (we are using RAS autodial)? I can of course do something like a DNS query, but I certainly would like to do this without actually generating data traffic ... or is this the only way? I am stil...

What is the trade of between OneWay and Async calls for broadcasting events to clients? (WCF)

I am writing a WCF (netTcpBinding planned at present) client/server application that has to support a “handful” of clients including sending events to the clients. I do not wish the server to block while the clients process the events. Logically I cannot see match difference between marking the callback methods as “OneWay” or cal...

Long Operation Status

When performing a long operation in your application, how do you promote information from your business tier to your UI? Events? Passing in a status object which is hooked to the UI? Before I start I just wondered what cunning ways you guys and girls have come up with. ...

Creating an tree graph from a collection of objects where only parent node is known

We have a large collection of objects that we need to create a tree structure from. However, our problem is that we only know each objects parent...which makes it a bit tricky since this needs to be fast. What is the best algorithm for creating an tree graph from a collection of objects where only parent node is known? ...

How to find all classes of a particular interface within an assembly in .net

I have a scenario whereby I want n amount of classes to look at the same data and decide if any work needs to be done. Work is done by a team, and multiple teams can work on the data at the same time. I was thinking of creating a class for every team that would implement the CreateWork interface. All CreateWork classes must have their sa...

audio comparison

How to compare two audio files to see the difference of them ...

Error calling Java web service from .NET code?

I'm getting an error in code that calls a Java web service. The code works fine on the rest of my team's PCs. I have exactly the same copy of the source code. So I'm guessing it's a configuration issue on my PC buried deep somewhere and has nothing to do with the source code itself? The error I get is: The HTTP request was forbidden...

Highlight Color for particular cells in DataGridView

Hi! In windows application, I'm using a datagridview. Is that possible to highlight color for some of the cells... That is, Some cells should be highlighted. How can I accomplish this? ...

Gridview item preview using .net 2.0

Hi, I have a GridView control that for each item has a Hyperlinkfield with a URL to an aspx page. I want to (using AJAX libraries) to display the page preview in an inline window as the user hovers over each GridView row hyperlink. Can anyone suggest the best way to implement a preview of each row's hyperlinked aspx page as the user ...