.net

Is there a way to trap all errors in a AJAX-web service?

I'd like to trap any unhandled exception thrown in an ASP.NET web service, but nothing I've tried has worked so far. First off, the HttpApplication.Error event doesn't fire on web services, so that's out.. The next approach was to implement a soap extension, and add it to web.config with: <soapExtensionTypes> <add type="Foo" priori...

Popup notifiers for .net

Currently I'm looking for some popup notifier for my .net (4.0) project. The ones I've found and liked more than others: http://www.codeproject.com/KB/cpp/PopupNotifier.aspx http://www.codeproject.com/KB/WPF/WPF_TaskbarNotifier.aspx I'm sure there are a lot of modern and trend implementations. So, what is the most handy and sexy popu...

Efficient way to read a specific line number of a file. (BONUS: Python Manual Misprint)

I have a 100 GB text file, which is a BCP dump from a database. When I try to import it with BULK INSERT, I get a cryptic error on line number 219506324. Before solving this issue I would like to see this line, but alas my favorite method of import linecache print linecache.getline(filename, linenumber) is throwing a MemoryError. Inte...

Very simple Enterprise Application Architecture - making it scale

I'm using a very simple architecture for one of my intranet enterprise applications. Client: 1 agent running on each computer sending system config data (one time), reports (every 2 to 5 min) => size of the data flowing from client to server is a few hundred bytes and rarely touches a kB. Server: 1 web application (front-end to ...

windowless wpf application example?

Any advice or links or sample application (for VS2010) re how to develop a "windowless" WPF application? That is the ones that look quite modern and don't seem to have the historical window chrome around the edges - they seem to have rounded edges etc... ...

comparing two string arraylists or lists

I have two SQL tables with data that I would like to compare. The tables have the following structures: id, title,url I want to compare the tables by title where if the strings are similar or equal it would be noted by writing the records to a file. Someone suggested not doing it in SQL and copying the data and using it in .net as lis...

Rename de-obfuscated code

Hi Is there any tools that can rename de-obfuscated code to readable code for .NET dlls ? OBFUSCATION = convert original variable names, namespaces to non-readable variable name, also changing the control flow to make it hard for crackers to guess the original code DE-OBFUSCATION = reverse process of obfuscation. convert non-readable v...

Silverlight grid (panel) 2 columns 50%/50%

Hello I want a silverlight grid layout panel. The width should be 100%. There should be 2 columns that both take 50%. In the columns there should be buttons that take 100% of the column cell.. Somehow I mess it up all the time and cannot find a way to do this. Gridpanel is not a must... Stackpanel or whatever is fine too.. One more th...

Firing a Button's Click event from outside Button

I have a Button and I need to fire it's Click event externally from actually clicking it. However, the code myButton.Click(this, EventArgs.Empty); gives me the error The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -= How can I fix it? ...

Adding controls dynamically to the Grid in the constructor from ViewModel

Hi, I want to add Controls dynamically from ViewModel. I have to add Button and Textbox dynamically to the Grid. In the ViewModel constructor call I need to add the controls. I am not getting how to get the Grid control reference in my ViewModel. Can anybody help me on this? Thanks in advance ...

If ChannelTerminatedException occurs in WCF, which event is raised Faulted or Closed?

Self descriptive ...

What is obfuscation in general and how is it implemented in .NET (C#)

What is obfuscation in general and how is it implemented in .NET (C#) ...

Howto design a public transport timetable database?

Are there any examples of database design for public transport time-tables ? Or any OpenSource timetable-engine solution? Or if not, how to do it oneselfs? How do I best design the database so that a search can be reasonable fast ? I'd do it like this: For testing, I'd take an X-shaped bus network, with 5 stops (edges and vertex).. ...

AnkhSVN trouble : "please select a valid location in the repository to add to"

I've tried to solve this error message but I couldn't. I've tried for a really long time, I just can't figure a solution to this. I'm using Ankh plugin with Visual Studio 2010, I've got an SVN repository on unfuddle.com and I'm trying to import my project into that new repository. this is the error message I get : " please select a v...

How to bring up Find dialog from a web browser control?

I have a web browser control which has navigated to a given page and is ready. Now I want to bring up the Internet explorer find dialogbox whenever the user clicks a specific button on my page. The user can already bring up the find dialog box by clicking 'ctrl+f', but I want a separate button for this action too. I have found this: htt...

Thread safe StreamWriter C# how to do it?

What is the best way to build a program that is thread safe in terms that it needs to write double values to a file. If the function that saves the values via streamwriter is being called by multiple threads? Whats the best way of doing it? Code from comment: static void Main() { List<double> Values = new List<double...

See HttpWebRequest as string before GetResponse without using fiddler

How can i see HttpWebRequest object as string before calling GetResponse method? I want to see raw format of request something like this as in fiddler: Content-Type: multipart/form-data; boundary=---------------------------2600251021003 Content-Length: 338 -----------------------------2600251021003 Content-Disposition: form-data; name...

Can't find HttpContext in .NET 3.5 and Visual Studio 2008

I used code from here and I get the following error: Can't use HttpContext.Current.Server.MapPath() In Visual Studio 2008 does the ContextMenuEntry "Solve" help you when you have missing references? I already found out that HttpContext is not a member of System.Web in my IDE. According to Help > Info I am using .NET 3.5 SP1. How ...

I need the best solution for stand alone "web" app

Hi All Firstly, i'm still a bit of a noob when it comes to web dev, so please bear with me :) I have a client that has the following requirements: Require a stand alone web form (in html) to submit to a script and append the details to a csv or xls file Must work without any connection to the internet Must be easy to set up (i.e have...

Compare 2 versions of a .NET assembly?

How to compare 2 versions of a compiled .NET assembly to see changes between the 2 versions? I have a library not well-documented and I need to know what has been changed between the old version and the new version. ...