.net

How could any one access the private files on server using windows app

hey Folks, I have a windows app in c# .NET which requires access to the file on the sever. Ex:--user A has his credentials as A and pswd. He has server space where he has the file i need. i have the credentials. I can access it using our website. But, i need to access it using a windows app Imagine i need a file stored on the mail a/...

Alternatives to CAT.NET for website security analysis

I'm looking for an alternative tool to CAT.NET for performing static security scans on .NET code. Currently the CAT.NET tooling/development is at a somewhat fragile stage and doesn't offer the reliability that I'm looking for. Are there any alternative static code analyzers that you use for detecting security issues? ...

Using .NET 2.0 class library from Silverlight WCF service, public properties remain unexposed

Hi all, Here's a bit subtle issue I'm dealing with, and would appreciate any help. We have our project on production mode, built with .NET 2.0. We have recently developed a Silverlight application external to the 2.0 solution, and it's "speaking" with a WCF service. This service consumes DLLs we copy from our 2.0 solution publish folde...

integration of bv commerce shopping cart with Microsoft Dynamics RMS?

I have a BVCommerce website, and i wish to integrate it into my retail locations Inventory system (Microsoft RMS: http://www.microsoft.com/dynamics/rms/default.mspx) The inventory software is already managing inventory for multiple locations. our task would be to configure the store (very possibly via custom code engineering) to pull th...

TableAdapter.update method, where did it go?

I made a ListBox with your standard smart-control thing, and have it connected to a database. It gets the data I've pre-generated in there via query builder, so when I do this: this.calibrate_swipesTableAdapter.Fill(this.xperdex_crandallDataSet.calibrate_swipes); I get a listbox with my data. THEN, when I add a chunk of data to it, ...

Generic Key/Value pair collection in that preserves insertion order?

I'm looking for something like a Dictionary<K,V> however with a guarantee that it preserves insertion order. Since Dictionary is a hashtable, I do not think it does. Is there a generic collection for this, or do I need to use one of the old .NET 1.1 collections? ...

Is it possible to Code in MSIL?

I am just curious to know if this can be done or not. I don't plan on doing it if it dosen't pack some significant performance benefits. I am a web and game developer but I usually don't develop games in c#. ...

Guaranteed way to force application running continuously (overriding taskkill, task manager etc.)

I have a C# security/monitoring application that I need to have running no matter what. However, I can not remove privileges or restrict access to parts of the OS (Windows). I thought of having a protection service running which monitors continuously if an application is running, and starts it back up when the application is killed some...

Rijndael Decryption error - Length of the data to decrypt is invalid

I am able to encrypt a zip file using rijndeal but when i decrypt I get an error that says "Length of the data to decrypt is invalid" Im getting the byte array to decrypt from a file. Here is how i get the byte array. Dim FStream As FileStream = File.OpenRead("<Filepath>") EncData = New Byte(FStream.Length) {} FStream.Read(EncData, 0, ...

Reflection of code

Is it possible to use reflection to know what the code is doing, not the types and methods, but rather what is inside the method (if statements, assignment and so on). I know I can disassemble it, but I need to analyze a class at runtime using C#, for example find out how many if conditions there are... This tool needs to be in C#, any ...

Can I control the XML element names for an array and its items as the return value from an asynchronous .Net ASMX web method?

Consider the following .Net ASMX web service with two web methods. using System; using System.Runtime.Remoting.Messaging; using System.Web.Services; using System.Xml.Serialization; namespace DemoWebService { public class ArrayItem { public int Value1; public int Value2; }; [WebService(Namespace = "http://begen.name/xml/n...

Bind the Username in all Pages.

HI i'm developing a software(WPF) and i will insert a feature but i don't know how work out it. I have a Window Login (username,Password)to enter in the software after that the user insert the credentials appear a MainWindow and i have a textblock(txt_Username) to store the Username of the Window Login in this MainWindow.Now in the Mai...

Microsoft Chart control and Reporting Services reports (SSRS)

Hi, I'm wondering whether anyone has been able to use the Microsoft Chart control in SQL Server Reporting Service reports? Specifically the 2005 version... Further to that, are the SSRS 2008 charts the same control (as the Chart control)? (i'm thinking that they are...) Thanks heaps! ...

Do I need to apply both 32 bit and 64 bit versions of a .NET Framework update?

There's a post-.NET 3.5 SP1 update which comes in x86 and x64 flavours: The KB article is here: List of the issues that are addressed by the Application Compatibility Update for the .NET Framework 3.5 SP1 There are two possible updates: NDP35SP1-KB958484-x86.exe NDP35SP1-KB958484-x64.exe Will the 64 bit edition also update...

Implementing Where() extension method on a System.Collections.Generic.SortedList

I have a private class variable that holds a collection of order items: Private _Items As New System.Collections.Generic.SortedList(Of Integer, OrderItem) What I'm trying to do it Get and Set a subset of the items through a Property on the class using the .Where() extension method of IEnumerable (I think). Something along the lines of...

C# AIM Bot Not Loading Libraries from AOL SDK

I am trying to get an AIM Bot set up in C# and I am having issues with the Assemblies. I have tried placing the DLL files in the BIN folder of the project and in the windows/system32 folders. I have registered the DLL files so that I could add them to the project in VS2008. I also attempted the install them into the GAC but I keed get...

Find image format using Bitmap object in C#

I am loading the binary bytes of the image file hard drive and loading it into a Bitmap object. How do i find the image type[JPEG, PNG, BMP etc] from the Bitmap object? Looks trivial. But, couldn't figure it out! Is there an alternative approach? Appreciate your response. UPDATED CORRECT SOLUTION: @CMS: Thanks for the correct respo...

How do you detect unrecoverable data loss when using MSMQ's multicast?

When using MSMQ multicast, if a (multicast-enabled) queue receives some messages and then the machine experiences a temporary network connection loss then it will begin receiving messages again when the connection is re-established. If the network outage is short in duration then the queue will receive all of the messages (even those tha...

C#: Action delegate vs explicit delegate

Hello Just a quick one: what are peoples thoughts on using Action delegates for public class events vs defining ones own event delegate types? I know many use Actions for "minor" delegates such as in lamdas and .ForEach() extension methods, etc, but for actual class event members, is using Actions a good idea? What is "best practice" ...

jQuery DatePicker to C#

Hello, At this time, I'm doing this : var dateSelected = $("#datepicker").datepicker("getDate"); alert(dateSelected.getDate()); alert(dateSelected.getMonth()); alert(dateSelected.getFullYear()); dateSelected value look this : Fri Sep 11 2009 00:00:00 GMT+0200 (Romance Daylight Time) 2 Options : a) Is it possible to use this in .NET...