john k's Q&A profile
SQL Server Asp.Net not finding the SQLServer for setting up Security problem
I have just reciently installed and started upgrading the last beta code to this beta and am having a problem conecting to my sqlinstance with the WebSite Configuration Tool. The error indicates it is looking for a file in the app_data directory. (empty), but everthing else points to SQLServer (express) as being the issue. I have run aspnet_regsql.exe (both on my default instance of sql (a sql2kas) and the beta2 instance that shipped with VS. Both created datasases and eveyting looked good inside the db's. However when I click the "Securtiy tab" I get a message "Unable to connect to SQL Server Database." When I go to The Provide ...Show All
Visual Studio Team System TeamFoundationServerFactory.GetFactory
I downloaded the VS Studio Team System Extensiblity Kit and I am using the TeamFoundationServerFactory .GetServer method to get the team foundation server. I am getting an error accessing registry key because I suspect the teamfoundationserver did not have the permissions to access the registry. Even when I try to pass in the default credentials using the following code, I am still getting the registry key error: System.Net. ICredentials teamFoundationCredential = System.Net. CredentialCache .DefaultCredentials; TeamFoundationServer tfs = TeamFoundationServerFactory .GetServer(server, teamFoundationCredential); I would reall ...Show All
Visual C++ build won't generate an 'exe' file for my simple console app (non-CLR)
In the Visual Studio 2003 days, I could generate a simple console application and build a .exe file. For some reason in VS 2005, I can't seem to generate an exe. Instead, I get manifest files. Can you tell me how to get the exe to be created I build without errors, there is just no exe generated. -su Could you post you build log Also, are you sure you don't have the .exe any where on you machine Thans, Ayman Shoukry VC++ Team ...Show All
Windows Forms Hooking mouse events of a program from my app
Hi experts, I should write an app it should hook the mouse events not from entire desktop,it should hook them from an app which I know its main window title(i.e media player) this is my code but it doesn't work Code: [DllImport("user32.dll")] public static extern IntPtr SetWindowsHookEx(int param,HookEventHandler hookHandler,IntPtr handle,int thread); public delegate voi ...Show All
Visual Basic are there any examples i can follow?
I have created a form in vb.net, where the user supplies thier name, thier email address, and thier comments. I want to create an email message and send the information the user supplies to me when the user clicks the submit button on the VB form. How do I do this, making the process as automated for the user as possible Are there examples somewhere that I can study i have specified the username/password but i am getting the following error codes the error mesage: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown b ...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 the full beta SDK install (2.0.50215)...haven't installed the final release, yet (from 10/27/05) conceivably, you should be able to copy the mscorcfg.msc file from one machine to another (elimin ...Show All
Visual Studio Express Editions Debugger & Forms Designer in Beta 2 fails
I was using C# Express Beta 1 for long time, today I installed C# Express Beta 2 but after that I can not create WindowsForms project or open WinForms/Project Settings/Resources When I try to create new WinForms project I get warning as follows Package "Visual studio Settings and Project Designers package" has failed to load properly ( GUID = xxxxx) .... Would you like to disable loading of this package in future ..... <Yes> <No> Ignoring this, Now when I try to open WinForm class (From newly created project) I get following error Could not load type " Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable2 " from ass ...Show All
Visual C# Why should we have to declare the delegate in both places
In delegate I am a newbie. I want's to ask why we have to declare delegate in both places where we are making and where we are calling it e.g in this tutorial http://www.eggheadcafe.com/articles/20040313.asp why i have to declare delegate string NotifyDaddy(DaddysCar car, decimal damageAmount); in both palces No, do not have to declare the delegate in both classes. The declaration in "DaddysCar" is completely useless. #edit, lol I was too late ;) ...Show All
Windows Forms How to determine if DataGridView rows are accessible?
Is there a 100% accurate way to determine if cells of a DataGridView are accessible before trying to access them I have master/detail DataGridViews bound to a dataset. My code, which tries to access cells of the detail grid during SelectionChanges of the master grid sometimes throws NullReferenceExceptions saying the detail grid columns don't exist. I want to prevent this from happening. I have tried the overly complicated condition below to block access to the detail grid's AuthorID column, when doing so would throw the exception, but it still fails. Also, I would rather not resort to wrapping try/catch b ...Show All
SQL Server Secure .NET 1.1 application from users
Hi all. I am developing an distributed VB.NET 1.1 application with a TripleDES capable socket layer for communication with my server app. I need to secure the distributed app from the users within the organization I am developing it for (a franchise). I do not wish to store any encryption keys in the source code as these would be obvious to any seasoned hacker through decompilation of my binaries (even with obfuscation). I have decided to use the windows DPAPI (under machine storage mode) to secure manually entered (at installation) encryption layer keys in the registry. The salt values for this DPAPI mode also need to be secured, ...Show All
Visual Studio Team System Project Creation Failed: Retrieving MSF methodology failed
When I create a new project, I get the following error: Time: 04/26/2005 01:29:28.162 Module: Engine Event Description: Project creation failed Exception Type: Microsoft.VisualStudio.ELead.Common.Exceptions.ELeadException Exception Message: Retrieving MSF methodology failed Stack Trace: at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.DownloadAndExtractTemplate(Int32 methodologyIndex) at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.TryCreateProject(ILogHandler logHandler, String& completionMessage) -- Inner Exception -- Excepti ...Show All
Windows Forms pass control as byref function argument
Hi, Can I pass a contrl as a function argument "by reference" in C# I want to make changes to that control in another class's function and want it to be reflected in the actual control, without returning any values. for example, in ProjectA ClassA I have a control checkedlistbox. In ProjectB, I have a class ClassB and a function FuncB. From Cla ...Show All
Windows Forms Filtering Parent row values based upon existing child value
Hello everyone, here's my situation: I have two tables: PURCHASE and PURCHASE_LINE with a one to many relationship between PURCHASE and PURCHASE_LINE. I also have two data grids--one for each table. Both datagrids are bound to the same DataViewManager. Here's my problem: I want the user to be able to filter by items on a purchase, meaning only purchases that contain a certain item in the PURCHASE_LINE table will be displayed. I tried doing this by setting the RowFilter for the PURCHASE_LINE table but this will still allow all purchases to be displayed. I'm at a loss of what to do and any help would be much appreciated! ...Show All
Windows Forms Refreshing a data source
I've added a BindingSource control to my form, and set its DataSource to my project data source. When I add fields to a view in the SQL Server 2000 database behind the data source, I can't get the new fields to appear in the view, even if I refresh the data source. I can refresh the server in Server Explorer and it updates the new fields, but I still can't get the data source to pass the new fields through to the form. How can I get the data source to refresh I would have to look at the project and Remote Desktop is not behaving nice and i don't feel like logging the user off to get rdc to work. Thank ...Show All
.NET Development How to Hide original IP while using HttpWebRequest/Proxy support
Hello friends, I am developing Windows Application and using HttpWebRequest. My requirement is, While sending a request to a URL, I want to hide my IP address, or I want that the requested URL gets some other IP from My request. Can anybody suggest how to do this Rgds, Kiran Suthar. SIR I ALSO WANT HIDE MY SYSTEM IP THROUGH PROGRAMMING PLS HELP ...Show All
