Lifer's Q&A profile
.NET Development sign message SHA256withRSA
I need to sign message and use the SHA256withRSA algorithm for hashing. But when call the method rsaSignData of the class RSACryptoServiceProciver it doesn't work. But the code works with "SHA1". Is there a way to handle this with signature algorithm Hi Freddy, The RSACryptoServiceProvider class actually is a pretty thin wrapper around Windows' crypto implementation (like all of the *CryptoServiceProvider classes are). When you call SignData, RSACryptoServiceProvider is going to turn around and ask Windows to do the actual signing operation. However, Windows cannot use managed crypto algorithms, ...Show All
Visual Studio Tools for Office ClickOnce with VSTO - The application is improperly formatted.
Hi, I am trying to deploy a VSTO application using ClickOnce. I am getting the following warning in Visual Studio's Error List. Warning 1 Assembly 'VstoSmartTagDemo.dll.manifest' has mismatched identity 'VstoSmartTagDemo.manifest', expected filename: 'VstoSmartTagDemo.manifest.manifest'. C:\Programme\MSBuild\Microsoft.VisualStudio.OfficeTools.targets 0 0 Note that the status bar displays the message "Publish Succeeded". I notice that a file with an extension of ".manifest.manifest" is not being found. The extension seems a bit unusual, is this expected behaviour When I go the publish location and click on th ...Show All
Visual Studio 2008 (Pre-release) How can I eliminate the border and highlight of a button?
I tried specifying transparency on the BorderBursh property, which did eliminate the border but the highlight rect is still displayed. Hi Nick, You can ask general WPF questions in the WPF Forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=119&SiteID=1 Mean time, I think this post should help with the focus rect issue: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=419707&SiteID=1 chad ...Show All
Game Technologies: DirectX, XNA, XACT, etc. creating 3d worlds
Hi, a complete newbie question. Where is the best place to start for building 3d environments that I can walk through like a first person shooter I imagine the world would be made up of meshes. Should i be looking for an editor to create my world, but then how do I get it into directx tx Johnniemac If you are asking about building 3D engines, read this post before posting additional questions: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=77083&SiteID=1 If you are asking about doing 3D modeling, you might want to post your question on the GameDev.net Visual Arts forums ...Show All
Windows Forms Can I suppress ValueChanged?
In my .NET2 (C++) application I have NumericUpDown boxes. I use the ValueChanged event to trigger commands which are then stored in an undo list. When an undo is requested, I query the command for the previous value and place this back into the Value field of the control. Now this then triggers a ValueChanged event which puts a command in the undo list -- not what I want! I can avoid this by setting a flag to say "don't add commands when an event arrives", but I was wondering if there was a better way to reset the value without triggering the event. The undo value is by construction valid since it was retrieved from a validat ...Show All
Visual Basic Click-Once is not so simple...
ok, here's the problem: i'm using VB.NET 2005 beta 2 all working nicely. i've made an app, debugged it and it runs all nice from the normal exe. but when i went to publish it, it seemed to work all fine until the installation page opened. i try to launch it but it says the "application is improperly formatted". clearly it isn't because i have run the bin exe many times. now, not only does the publishing not work, but when i go back to run the normal bin exe i get another error, once which has never appreared before! it compiles fine, BUT i receive an error saying that the project can't be run: "application configuration is incorrect". s ...Show All
.NET Development How to apply changes from DataGridView to DataTable?
Hello, I got a simple problem. I created a new DataGridView control and bound a DataTable on it. The problem is that if I alter data in the DataGrid nothing is changed in the DataTable not even if I call DataTable.AcceptChanges(). I thought it should be simple task, but I just figured out some ways of changing data in combination with SQL-Databases. bye Hi. I Am using a datagridview where I am allowing user to Add, update and delete rows from the datagrid. Update and delete are working fine but when I am trying to add more than one row then the problems comes ...Show All
Windows Forms MenuItems
Hey, Is there a code like the one below that dose the same thing but for a MenuStrip item : ToolStrip3.Items.Add(newbutton) Thanks :) yes...identical: MenuStrip3 . Items . Add ( "TEST" ) or MenuStrip3 . . items . Add ( Text , image , Eventhandler ) ...Show All
Visual C++ Reverse Digits in C++
Dear C++ experts, I need help with this program: Write a complete C++ program that reverses the digits of a given positive integer. For example if the user enters a positive number 123456 , your program would print 654321. Kind Regards, Ahmed Mahdy This sounds like a homework assignment: you'll probably learn more and find people more willing to help you if you try to solve it yourself and then ask specific questions if you get stuck. ...Show All
Visual Studio Custom properties in PropertyGroup.
Dear Gurus, When I define some custome property like this in the build file . < PropertyGroup Condition="'$( CompileConfig )' == 'DEBUG'" > <Test></Test> </ PropertyGroup > It keeps giving me the following message, it's kind of annoying. Warning 3 The element ' PropertyGroup ' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'Test' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\Development\ DTMap \ DTMapMSBuild.proj ...Show All
Visual Studio VSS Lan Service working randomly
Hi, The Lan Booster service works randomly here. Sometimes everything is ok, and sometimes, for the very same operations, for the same database/project and on the same system, I get the following message: Unable to use SourceSafe LAN service, performance of SourceSafe operations will not be optimal. The service is running on the system hosting the database. Known problem I'm not very familiar with DFS, but I think that you're accessing the database with a "generic" path, something like \\domain\dfsroot\vss , isn't it If yes, VSS LAN service is not going to work. The client takes the databae path in the form \\server ...Show All
Windows Forms Accessing list of all controls for a form at design time
I am creating a modal custom UITypeEditor. Is it possible to walk back up the context tree and access all the controls that are on a form Is there a proper and not proper way to do this Any push in the right direction would help greatly! :) If you want all components on the form (that includes controls,  ...Show All
.NET Development .NET Remoting, IIS 6, and Error 405? Help!
I'm trying to get .net remoting set up in my application with server activated objects. Here's my server web.config: < xml version ="1.0" encoding ="utf-8" > < configuration > < system.runtime.remoting > < application > < service > < wellknown mode ="SingleCall"   ...Show All
Visual Studio Express Editions VB 2005 Express Beta 2 MyApplication Class Error
System is WinXP Pro, 512Mb Ram. No pre 2005 .Net software installed. I have searched through the postings here, reinstalled/repaired the Beta 2 installation etc. but have been unable to resolve the following issue - if someone could assist please... If I choose New Project from the File menu and select Windows Application a new project is created and it will run ok. If I double-click My Project and alter one of the Windows application property check boxes (such as Make single instance application) and try to run the application then a build error is raised - the error is "Protected type ...Show All
SQL Server JDBC Driver version to support SQL Server 2005 Database Mirroring
Hi We are in the development phase of a project, which has SQL Server 2005 as the database, and Java for the presentation / business logic / services tiers. We are looking to increase resilience of the database tier and are intending to patch to service pack 1 and use the database mirroring facility. The advantages are quick failover which is important for this application. To implement this, what version of JDBC driver do we require My concern is that although database mirroring is now supported in the database, we can't take advantage of it using Java Mark. I think answer is here: http://forums.mi ...Show All
