rajuraju's Q&A profile
.NET Development Inconsistent InvalidCastException and FormatException errors
Recently we have started getting InvalidCastException and FormatException errors on 3 clients out of > 100 that are in use. We believe it is caused by the upgrade of our application from .Net 1.1 to .Net 2.0. In one case we get the following message - System.InvalidCastException: Conversion from string "0" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. In this particu ...Show All
.NET Development C# 2.0 Convert Bitmap to Icon
Hi There I am using .NET 2005 Beta 2, and am trying to write a utility program that converts icons to bitmaps. The following function creates an icon file OK, but the icon file is not properly formed. When I try to open it using Visual Studio I just get a heap of jumbled characters. public void BitmapToIcon(string sourceFileName, string destFileName) { // Create a Bitmap object from an image file. Bitmap bmp ...Show All
Visual Studio Express Editions Encrypting Parts of a Serialized File
I have some data, mostly contained in ArrayLists. I currently serialize the data, however; I would like to encrypt it. I have created an encryption function using AES. The problem is it has to take a byte[] array and return a byte[] array. I can encrypt the serialized file, however; some data needs to remain unencrypted. So what I need to do is encrypt the ArrayLists, serialize the file, then when i need to deserialize the file, I decrypt ...Show All
Visual Studio VSIP SDK for VS 2005 Beta 2 download not quite ready yet?
I see a new item show up on extensibility web site called "Visual Studio 2005 SDK 2005 Beta 2". That downloads SdmSdkDownload.111 file of only 448Kb. Perhaps the site is in the process of being updated but I thought I'd bring this up to your attention. One more thing. There is another new download item available for Beta 2 called "Visual Studio 2005 Team System Extensibility Kit for Beta 2". What's the difference between the two VSIP VS 2005 dow ...Show All
.NET Development Where is mscorcfg.msc(beta 2)?
I've installed dotnetfx from vwd.img and now I don't know where to find mscorcfg utility.I'm using windows xp(sp2) What's wrong with configuration utilities looks like they are trying to "shed some pounds" from the framework download (since Java is about half the size) i believe that my mscorcfg came with .NET 1.1 which was a critical hotfix for SP2 via WinUpdate - there does not appear to be one associated with ...Show All
Visual Studio VS2005 Registration Benefits - not allowed access to Registration Benefit Portal
I just registered my copy of VS2005 Standard Edition that I received at the VS2005 Launch. One of the benefits of registering is free icons, components, etc. When I try to go to the Registration Benefit Portal to download them I get a page stating that the page is missing or I lack authorization. Is there a trick to this -Chris I encountered this same problem yesterday when I registered my copy of Microsoft Visual Studio 2005 Team Su ...Show All
Visual Studio 2008 (Pre-release) Jan CTP
Does jan CTP have xaml design mode improvements http://www.microsoft.com/downloads/details.aspx FamilyId=5A0AE4CD-DC79-4B12-8A05-B6195F89FFA2&displaylang=en Yes it does. We've been kind of busy this week and so we haven't quite got things ready to post. The major improvement is in the Grid design time. We'll post more details towards the end of the week mark ...Show All
.NET Development Cutom Errors refuse to turn off
I have been trying to turn off custom errors in my remote server's config file without success. The contents of the config file (named precisely like the .exe) are as follows: < xml version="1.0" encoding="utf-8" > <configuration> <system.runtime.remoting> <customErrors mode="Off"/> </system.runtime.remoting> </configuration> This was created and referenced with . ...Show All
Visual Studio Local mode and good instructional material
I am using VS 2005 (VB) strictly for client/server winform applications. I need a good report writer and Reporting Services seems to be it. However, I have noticed that the books that are available (at least the ones I've seen) kind of skimp on what to do and how to do it when it comes to writing reports in local mode. It seems that SSRS was writtein primarily as a web or network solution and that writing applications locally is kind of an after ...Show All
SQL Server Report Builder MDX on filter
Please interpret this MDX statement generated by Report Builder for me. I am not sure why it is returning all years in cube when I just want 2005: SELECT { ( Extract( filter( { [Accounting Date].[MDY Date].Levels(1).Members * { [Accounting Date].[Date].[Calendar] } }, ( ( [Accounting Date].[MDY Date].CurrentMember.membervalue >= "09/01/2005" ) AND ( [Accounting Date].[MDY Date].CurrentMember.membervalue <= "09/30/200 ...Show All
SQL Server SQL Server Express Security?
We are releasing an application built on SQL Server Express in the next few months. Our clients are mostly small companies with little technical knowledge, and they will be using our application on desktop computers where everyone likely logs in as the same user. As such, my thinking is that we setup SQL Server Express as in SQL Server Authentication mode. This way they could select an Administrator password upon first installa ...Show All
.NET Development list files sorted by date
this must be easy, but I can't see how to do it. I can list the files I want (see code below) but they are listed in name order. Obviously I could sort them manually afterwards, but that sounds like hard work, any ideas anyone Thanks, Ade ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dim dir As DirectoryInfo = New DirectoryInfo(m_strDirectory & "\Export ...Show All
Smart Device Development debugging an Interop Assembly
How do I debug an Interop Assembly On Windows Mobile 5, I'm running C# code, which makes a call (through COM) to a C++ object, and when it loads the DLL, it always says, "No Symbols loaded." Answered Similar post on Smart Devices Native C++ Forums http://forums.microsoft.com/MSDN/showpost.aspx postid=276886&siteid=1 Regards Gaurav ...Show All
.NET Development MS Access
if set a break point before i open the MS ACess Db it open fine. However if I remove the break point i get this error System.TypeInitializationException was unhandled Message="The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception." Source="System.Transactions" TypeName="System.Transactions.Diagnostics.DiagnosticTrace" StackTrace: at System.Transactions.Transaction.ge ...Show All
Visual Studio VSS2005 - "not a valid SourceSafe physical database file" problem
I recently changed from using VSS6 to VSS2005 and have started noticing the following error message when running analyze: The file E\DATA\\ is not a valid SourceSafe physical database file. It must be renamed to a file with an extension or moved to another directory outside the database. I get this no matter what flags I pass to the analyze utility - it seems as it finds the problem but never fixes it. FWIW the above error message was from ...Show All
