.net

.net 2.0 c# retrieving a value from xml

I realize this is a repost but I needed to as I can't use LINQ, ( requested in my previous post). I need to read the woeid from the XML doc below. I need to read and store the data into a string variable so I can query the yahoo weather service. XML returned by query: <query yahoo:count="1" yahoo:created="2009-12-22T08:30:31...

How can I programmatically access the ArcGIS 3D Analyst Toolbar's "Features to 3D" command?

I need to take a 2D shape file in the ".shp" format that ArcGIS accepts, and add 3D information supplied by a raster DEM. I'm looking for how to do this with the ArcObjects API. I'd like to do it in C#, but examples in any .NET language would be welcome. The only thing I've been able to find are descriptions of how to do this manually in...

Socket.Receive - where is the end?

Hello! I want to receive data from a client. To be precise, all data the client sends. But then I want to send some data back so I don't want to close the connection. Maybe it's already to late in night (at least in Germany) - how can I do this? Usually I would say I'd put a semicolon or something like that in the end, but protocols l...

How to do Updetes and Delete in Wcf with using Dataset.xsd

I am working on WCF with DataSet.xsd in a C# application. Could you please tell me how to do Update and Delete? ...

Opening .resx files in Visual Studio.net gives "The operation cannot be completed. Invalid Pointer" error

I am using Visual Studio 2008. While opening some of the .resx file, it is giving me error that "The operation cannot be completed. Invalid Pointer". What can be the possible problem and solution? Thanks in anticipation. ...

Tips for Developers moving from ASP.NET Webforms To ASP.NET MVC

What should developers moving from ASP.NET Webforms watch out for when they move to ASP.NET MVC? ...

Set Relative path in file SetUp and Deployment

How can the relative file path be set in setup and deployment project. So that if I take the poject to another machine it will build ...

Isolated storage vs Application data folder

Hi, Can some tell me differences between using isolated storage and Application Data Folder. Which folder is recommended to use to store application specific local store. ...

How to capture all the screen with my application just like kiosk mode in c#?

I want to make the screen fill with my application just like kiosk mode. How can I do it using c#? i need this for desktop application ...

Which is the .Net obfuscator with the best price/quality relation?

I'm searching for a not so expensive .Net obfuscator and I'm not too smart in this field. A collegue suggest me to look for .Net Reactor. It has a good price but I'm not so sure about it. In your experience and opinion ¿Which one is the best in terms of quality/price relation? Thanks in advance. ...

Something swallowing up unhandled exceptions?

In an application I'm making, sometimes exceptions that are thrown but unhandled, seem to disappear into thin air and cause strange bugs with the GUI. I'll usually find it by stepping through until reaching the line where the exception is thrown, at which point Visual Studio immediately stops stepping and returns to the application. It...

How do I set the Fetchmode on all assocations of a nHibernate ICriteria in one go?

I have an object that has many assocations to other objects. All of these are fetched lazily by nHibernate, which is good in almost all cases. In a particular scenario, in this case an export of a lot of records, I want to set the Fetchmode to eager on all associations. Is there a way to do this, without having to manually specify each...

Can I use DataTables to import data from one database into another?

I need to create a quick and dirty solution to migrate data from database into another. This is only being used a proof of concept. Long term we will use .NET's Sync Framework. The databases are identical. The solution is going to be used as an OCA (occasionally connected application). I read in which tables they want to migrate fro...

OpenSource SMS Gateway - .Net (C# or VB.Net)

Hi. Is any opensource SMS (Short Message Service) gateway written in C# or VB.Net. Gateway must support AT command mode. I don't need SMS service, I need library to communicate with mobile phone or GSM modem (AT command mode) ...

how to fill out forms without submitting POST in System.Net ?

I am using visual basic 2008 i want to fill out forms, and I dont want to submit a POST url. Instead, I need to access directly the DOM object, and somehow click or interact it programmatically. should i use WebBrowser class ? can you show a sample code where text is entered into an input box, and the submit button is clicked ? ex) ...

For a .Net project, what file extensions should I exclude from source control?

Everytime I start a project I have to think carefully about which files to exclude from source control. Has someone made a list of the criteria so I can look it up from the beginning? I work on my own so I have not got round to it. I appreciate that in the case of a DLL, you would want to include some and exclude others, so it is not jus...

How to hibernate .net application to reduce launch time?

Hello, At the moment due to using some thirdparty components (which uses strongly reflection) our application is taking about 3 minutes to load on slow machines for our client. I was wondering if there's a way to 'hibernate' .net application so that when launching again the state from the previous launch would be directly copied to mem...

looking for alternative to Webzinc .NET , screen scraping, web automation library for .net

i came across this .net library http://www.webzinc.com/online/faq.aspx however, i was wondering if there was a free alternative out there ? ...

How to authenticate and keep track of users with WCF/JSON?

I'm implementing a service in WCF and need to have custom user authentication, by means of a username/password. This service is configured as a WebScript(JSON) service. I would like to know if it's possible to obtain a security context so I don't have to include a hash or user/pass in every call. I know I can use a certificate for this,...

Compile C code into Visual C++ dll?

Is it possible to compile C code into a Visual C++ dll? I'm looking at using some C code with a .Net project and trying to determine whether this is even an option. Thanks, Becky ...