Goober Foober's Q&A profile
SQL Server Using SQL Server 2005 Public Keys in VB.Net
I'm creating an asymmetric key in SQL Server: CREATE ASYMMETRIC KEY MY_KEY WITH ALGORITHM = RSA_512 ENCRYPTION BY PASSWORD = 'password1@' I'm then taking the public key... SELECT public_key FROM sys.asymmetric_keys WHERE [name] = 'MY_KEY' I'm trying to import this into VB.Net using RSACryptoServiceProvider. Dim RSA As New Security.Cryptography.RSACryptoServiceProvider(512) RSA.ImportCspBlob(KeyBlobByteArray) I have to add the following line to get it to not give me errors. (Why ) But the data looks right when I look at the exponet and modulus of the parameters th ...Show All
Visual Studio Express Editions Managing exceptions in a backgroundworker
Hi, I'm using a backgroundworker (in VSE2005 for C#) and have the following problem : In the 'dowork' method I have a try/catch that handles exceptions that might occur and then rethrow them for the 'workcompleted' method have a proper error state. The problem is that when an exception occurs, I get an unhandled exception error message pointing to the 'throw ex;' in the catch block (see code below), because of course ex is not being handled, at least not right there. The problem is that in order to test for the error status of you background _dowork method in your 'workcompleted' method you rely on the RunWorkerCompletedEventArgs ...Show All
Visual C++ I am use visual c++ about 3 years. I found MFC is hard to learn. I want to return to pure c++. Is anybody likes as me?
I am use visual c++ about 3 years. I found MFC is hard to learn. I want to return to pure c++. Is anybody likes as me Yes, I feel the same as the original poster. I wonder if it ever occured to Microsoft that most of us have to develop projects to make a living and don't have the time anymore to invest months into studying new languages, new frameworks and new paradigms In our company we made the decision to continue using C++ and MFC. Frankly we're just using MSVC 8 in order to have easy access to native 64 bit compilation. Other than that, you could take all C# and .Net and whatnot and trash it. ...Show All
Visual Studio Team System Setup cannot access Reporting Server
Hi there, i'm trying to install the Team Foundation Server. When setup asked me to enter a user for the Report Server. I created a user TFSReport and added him to Administrator-group and all the sql-groups. I opened the Report-Server Configuration and configured it so that the TFSReport-User controls the service (works without any errors). Near to the end of the setup, i get the following error, that setup cannot access the SQL Report server. I should ensure that it is installed, that it runs and that i can access it. Any idea Thanks in advance, David I think I narrowed the problem down. The command that ...Show All
Visual Studio Express Editions Package and Deployment problem
Dear Guys, I am a new VB Programmer. I have developed a saimple database application using some activeX controls. Now I want to distribute my application to some of clients or friends who don't have Visual Basic or other activeX control files are not installed. So I went through Package and Deployment tool and Build a setup file for installation. I am using Windows Xp platform to package the application. Now when I run the setup file on my friends computer on which windows 98 is installed it doesn't. I says "Some of the files on your system are outdated. You need to restart to update the files. Do you want to restart the c ...Show All
Software Development for Windows Vista IfElse try to call bool method but errors
I wish to use the IfElse to call a boolean method and based on its result branch to the corresponding sequence. Using the System.Workflow.Activities.CodeCondition i'm trying to call a bool method but continue to get this error: Error 1 'bool UPAC.Workflow.Rules.APRModifier.code_CheckAPRProgramLimit(object, System.EventArgs)' has the wrong return type I read somewhere on this forum that an IfElse could call a boolean method but to no avail so far. Am i'm trying to make it do something it can't or alternatives Thanks Tom hello i think u r using fx 2.o in this codecondition take default return type ...Show All
Visual Studio How do you Edit a Tracepoint in VS 2005?
How do you Edit a Tracepoint in VS 2005 Clicking on it deletes the tracepoint... I note for the record that if your cursor is beyond the end of the tracepointed statement, that seleting "When Hit" will do nothing. This is confusing - and maybe even a bug - because when the cursor is BEFORE the tracepointed statement, the right click displays the "Insert..." context menu vs. the edit an existing menu. ...Show All
Visual Studio Debugger Hangs Delay Notification
The problem happens while debugging when I try look at the details of "this". It happens every time. In the "Locals" pane I try to expand the entry "this" by clicking on the "+". I get an internal error after which Visual Studio won't do anything else and pops up a dialog named "Delay Notification" when ever I try to interact with it. I must use task manager to exit it. I was having the same problem when I first installed Visual Studio Beta 2. I found there were some assemblies left behind from Beta 1 and I manually removed them. It didn't fix the problem, so I uninstalled Beta 2 and then ran the clean up tool to make sure there weren't ...Show All
Visual C# Cryptography
System.Web.Security; string value = "3131" in a web app. this function FormsAuthentication.HashPasswordForStoringInConfigFile ( value , "sha1") encryptes into a fantastic string of more than 20 meaningless characters.. I tried the same thing in windows application and it doesn't work. System.Security.Cryptography doesn't have something like that... anyone out there knows and equivalent to this function Yes, you can use System.Web.Security in your WindowsForms project. You just have to add a reference to System.Web to your project ;) HTH. Bye. PS: BTW, System.Web.Security is a namesp ...Show All
Visual Studio 2008 (Pre-release) Knowntypes from configuration
Hi I have been trying to setup known types using the app.config file. According to the intellisense I'm not suppose to use the 'declaredtype' element, which is contrary to the winfx help. Where can I find a working sample for this Thanks Hello, I've come across a nice set of samples. One of them might be useful. Check this link: http://www.idesign.net/idesign/DesktopDefault.aspx tabindex=-1&tabid=19&download=175 or go to http://www.idesign.net/idesign/DesktopDefault.aspx and navigate do 'Download' section. emkatu ...Show All
Visual Studio Team System TF30144 error when creating a project from another domain
Hi I am struggling with a setup which consists of TFS single deployed on domain X and Team Foundation Client (and Visual Studio) on domain Y. X and Y does not know about each other since they are on diffrent nets and the DNS servers are not connected. My first problem, which I solved, was that TFS setup (or possibly SharePoint Services or SQL Server) uses computer names in configuration files. Thus, Team Explorer did not work correctly (red crosses on the documents and reports folders etc..) since computer names couldn't be looked up from domain Y. This was solved by adding the IP computer name mapping in the Windows 'hosts' file. &nbs ...Show All
Visual Basic Class Library Project Event
I am creating a class library (.dll) and i want to specify an event for when the class is loaded. I want to execute somthing for example "msgbox("Loaded")" almost like a form loaded event. Is this possible / how do I do it You can create a static constructor for the type and raise a static event.You can create a static constructor for the type and raise a static event ...Show All
Smart Device Development define xml-file & path
Hi there I just created a sample Project (.net CF for Windows Mobile 5.0 PocketPC) where I bind a XML to a DataGrid, and now I have the following problem: I dont know how to define the file-path in the Code, it will come a FileNotFoundException My definitions i tried: xmlFileName =" \\..\\..\\AccountingData.xml " ; xsdFileName =" \\..\\..\\AccountingData.xsd " ; ...="D: \\ VisualStudio Projects \\ Mobile\PocketAccaunting \\ PocketAccaunting\\ AccountingData.xml " ...="D: \\ VisualStudio Projects \\ Mobile\PocketAccaunting \\ PocketAccaunting\\ AccountingData.xsd " ...Show All
.NET Development Using FTP-Class with username and password
Hello, I am developer using vb.net 2005. I want to upload a local file to my ftp account, but vs keeps on telling me, that I couldn't connect to the server. Here is my code: Dim requestStream As Stream = Nothing Dim fileStream As FileStream = Nothing Dim uploadResponse As FtpWebResponse = Nothing Dim strFTPAdresse As String = "ftp://server.com/test.txt" Dim strDatei As String = "C:\test.txt" Try Dim uploadRequest As FtpWebRequest = WebRequest.Create(strFTPAdresse) ' uploadRequest.AuthenticationLevel = Security.AuthenticationLevel. uploadRequest.Credentials = New Networ ...Show All
Visual Studio Enable/Disable property OnValueChanging/OnValueChanged
Is it possible to disable one property in properties grid when another property takes a specific value For example: a Class atribute has 2 properties, DataType and TextSize. I want to enable the property TextSize only when the DataType "String" is selected I have overridden " OnValueChanging/OnValueChanged" methods , but I don't know how to disable the properties on the grid. Thanks Pedro This type of dynamic property grid behavior requires a custom PropertyDescriptor class. In this class, you can override properties such as IsReadOnly to customize the behavior of the propert ...Show All
