ankh776's Q&A profile
.NET Development Can't run app from a network drive
I made a VB.NET console app that reads data from an SQL server and does processing on that. I want to put that app on my network drive so that it can be put on the scheduler to be run every day. (The application needs to be on the network drive only). Now when i run the exe while its on the netork i can the following exception. Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. I opened the project properties. Clicked on the security tab and checked the "Enable clickonce security settings" checkbox and clicked on the "This is ...Show All
Visual C# Books Recommendation Required
Hello which is the best C# Book avaliable now-a-days for learning the core of C# Programming. Which books C# team will prefer for others to read. Jesse Liberty's Programming C# I have is third edition which is pretty good for getting caught up on syntax. . . but the killer book is Juval Lowy's Programming .NET Components, Second Edition THIS BOOK IS A MUST OWN!!!! ...Show All
Windows Forms datagridview newbie help
Hi, I have this DataGridView in Visual C++. I have a Context Menu open on right clicking any row. I want the DataGridView to select the row that I right click on. I can't seem to find my way through the function jungle. DataGrid has a Select( int row ) method to selecting a row but it seems DataGridView only has private functions for doing ...Show All
Visual Studio Team System I wish I could help
I've been through hell and back with a single server install of Team Foundation Server. I call it hell, bill gates calls it "Microsoft Innovation". I believe this is the last osbstacle. Can anyone give me some guidance on how to get around this problem stsadm.exe non-zero return value -2130246810 I experienced this error as well when I installed TFS yesterday on a single server topology. But after I granted the set up account domain\TFSSETUP and domain\TFSSERVICE as dbcreator and securityadmin roles on SQL Server 2005. It works ok now. ...Show All
Visual C# Simple Database connection
How do I make a simple database connection to sql server 2005 express and how do I find out/set the database name In the System.Data.SqlClient namespace you will find the SqlConnection class. Use the Database property to get the connected database name, here is a example: SqlConnection dbConn = new SqlConnection("Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"); MessageBox.Show( dbConn.Database ); Here is a good list with example: Connecting and Retrieving Data in ADO.NET Using the .NET Framework Data Provider for SQL Server Connecting to Data Sources Wor ...Show All
Visual Studio Express Editions What is cout?
It may sound silly but what is cout I am a newbie and I just ask out of curiosity because I see it a lot lately.Is it useful You bet!Imagine that once in a while I always have a question,thus we do C++ in the university,plus the forums I visit so as to help myself get out of this mess.Thanx for the help BTW! ...Show All
Visual Basic Problem with Me.close
Hi, I'm just moving from VB6 and have a big problem with the Me.close() function. Here is my example : The default start form is a splash screen ; name it Splash.vb which as the same function than the Microsoft Word one, for example. After a few seconds, I want to close it and load the main form, just name it Choices.vb . The problem is, when I put the Me.close() function in the Splash.vb form, it just closes the program. Of course, I have put the Choices.show just before Me.close ; so I see briefly the main form, the the program closes. To bypass this problem temporally, I changed the Me.close by Me.hide, but this is not a good solution of ...Show All
Visual Studio Available: Syntax coloring for .ReportTemplate (T4) files (contribution)
Hello. This time Modelisoft has created, a syntax coloring editor feature for the .ReportTemplate files that are generated in the Debugging solution. (and more generally for the T3 files) It enables the C# transformation code to be visually distinguised from the Template content. We think that this (again very simple) tool might be as helpfull to others that it is to us. You can find it at http://www.modelisoft.com/ColorizedT3.aspx Enjoy it ! Valerie. Hello Jean-Marc, It seems like there are some problems with your website is there a direct link to the colorizer like there is for DSLDm2Dd.zip & ...Show All
Visual Studio Clickonce and ReportViewer
When user try to run the winform application I deployed using clickonce thru http, they keep getting an error saying “could not load file Microsoft.ReportViewer.ProcessingObjectModel”. Within the application, I do import the namespace Microsoft.Reporting.Winforms to support local hosted report parameters. I make sure both assemblies (Microsoft.ReportViewer.Common and Microsoft.ReportViewer.WinForms) are included, even as local copies. The application runs fine where the VS2005 is installed. Now after searching this forum, I tried to copy the ProcessingObjectModel dll and add that to project reference. User is gett ...Show All
Visual Studio 2008 (Pre-release) Getting Started sample not getting service.exe
Hi, Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on. My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory. I got the console based sample going but I really want this IIS based samples to work as well. Any help woul ...Show All
Visual Studio Team System Visual Studio Team System - Requirements
Morning, I've seen online documentation on VSTS and note how it is supposed to help the development lifecycle from "Requirements" phase to Deployment. This is taken from the Microsoft website. Problem is, there doesn't seem any elaboration on the requirements phase: How does VSTS help with requirements Is it practical for program designers (who often don't have much coding experience) Does it help map workflow This is kinda a hard sell to my company, but I'd like to give Microsoft the benefit of the doubt. You can use work item tracking in Team Foundation Server to track requirements. Alt ...Show All
Visual C++ Please HElp With LPCWSTR
Hi.. Belive me when i say that i looked all over the internet for this and no clearifing result.. i try to use mciSendString function to play a file.. probem is that it has parameter LPCWSTR.. :(( .. i use WIN32 console application.. so i must read the path from the console.. CODE: int _tmain(int argc, _TCHAR* argv[]) { int error=0; wstring path; wchar_t* str2=L"play MediaFile"; error=mciSendString(path.c_str(),NULL, 0, NULL); mciSendString(str2,NULL, 0, NULL); } i want my wstring to be read from teh console.. something like cin>>path; ... anyway i cant find anyway to read the string from console and then pas ...Show All
Visual C++ Help: EDITED: Compiling error
Hi, I am just beginner and need your help. I got the following error. Please help me~~ Thank you in advance. --------------------Configuration: SOS - Win32 Debug-------------------- Compiling... PortThread.cpp C:\SosNT\PortThread.cpp(117) : error C2664: 'void __cdecl CPortDialog::MessageDisplay(DISPLAY_TYPE,const char *,...)' : cannot convert parameter 1 from 'char [1]' to 'DISPLAY_TYPE' There is no context in which this conversion is possible C:\SosNT\PortThread.cpp(122) : error C2664: 'void __cdecl CPortDialog::MessageDisplay(DISPLAY_TYPE,const char *,...)' : cannot convert parameter 1 from 'char ...Show All
Visual Studio How to register an Add-in
How do I register an Add-in if I create it manually and not by using the "Visual Studio Add-in Wizard" Let me rephrase my question... I want to use an existing Add-in (I have the dll file and the .AddIn file)... what should I do next in order to be able to see the Add-in in the Add-in Manager BTW, I am using Visual Studio 2005 on Windows XP. Thanks, Sami. Go to Visual Studio -> Tools -> Options -> Environment -> Add-in / Macros Security and add the path to the two files in Add-in File Paths. Now you should be able to see the Add ...Show All
Windows Forms System.ArgumentOutOfRangeException: Index was out of range in datagrid
I have a filled datagrid and i want to pull the product id's which is the first column Dim dgi As DataGridItem For Each dgi In DataGrid1.Items Dim productId As Integer = Convert.ToInt32(DataGrid1.DataKeys(dgi.ItemIndex)) 'do stuff Next but i get the error Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Source Error: Line 252: For Each dgi In DataGrid1.Items Line 253: Line 254: Dim productId As Integer = Convert.ToInt32(DataGrid1.DataKeys(dgi.ItemIndex) ...Show All
