RichHamilton's Q&A profile
Visual Studio Unable to copy generated files using MSBuild Copy task
This is what I’m trying to do: Generate xml file with doc comments during build (using standard project setting in VS or the /doc param) Take that generated file and copy it to another location. Sounds simple enough. This is how I’m doing it: I’ve added the DocumentationFile tag to my Debug property group in the project file: < PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " > < DocumentationFile > bin\debug\MyProject.xml </ DocumentationFile > </ PropertyGroup > I’ve added a target containing a copy task to the project file: < Target Name = " AfterBuild " > < Copy Sourc ...Show All
SQL Server Receiving error when trying to backup master transaction log
Hello: in sql serve 2k5 sp1 - I have all the dbs including master's/msdb's recovery model set to full. I am running the following command to backup master --> BACKUP DATABASE Master TO DISK = N''F:\DTS\backups\Master\Current\Master_full.bak'' WITH INIT, NAME = N''Master_full'', NOSKIP, RESTART, STATS = 10, NOFORMAT' which works fine but when i run a backup command to backup and truncate the transaction log i get the following error message... BACKUP LOG Master TO DISK = N''F:\DTS\backups\Master\Current\Master_log.bak'' WITH INIT, NAME = N''Master_log'', NOSKIP, RESTART, STATS = 10, NOFORMAT' 00:00:00 Sql Severity 16 Sql Message ID 3013 Operator Emailed Operator Net sent Operator Paged Retries Attempted 0 Message ...Show All
Windows Forms Object Data Source and Control DataBindings Order
When I add an Object Data Source and expand the (DataBindings) in the property page, I can select a property to bind to the control. The properties from the class appear in random order. If I use a DataSet instead the properties are in alphabetic order. It would be great if both could show up on alphabetic order! The object's properties display in alphabetic order in the Data Sources pane, so someone at Microsoft clearly wrote code to do it. Please consider this a feature request. Meanwhile, how could I get the properties to display in alphabetic order I'm guessing that a TypeDescriptionProvider might do the trick. What are the options, and what would you recommend I know properties can be bound using Drag-and-Drop from the Data Sources ...Show All
Windows Networking Development how to make the port 23 to listen
hello i want to use port #23 to establish the connection with the remote telnet server. for this , in my system that corresponding Port (23) is not in listen state so, how to make it listen. Pls help me in this regard to proceed further.. Thanks in advance When connecting to a remote machine via telnet, you only need the destination port to be 23, the source port (ie. the port used on the local machine) may be anything (ie. doesnt not have to be 23). ...Show All
Visual Studio 2008 (Pre-release) Changing a Client's Endpoint Address on the fly
There's a sample in the SDK that demonstrates how clients can pass WS-Addressing reference parameters to a service. The client uses an EndpointAddressBuilder to assign an EndpointAddress back to the client's Endpoint.Address field. This works fine if it's done before the client sends the first message. If, however, we want to modify the Endpoint.Address in a similar way after the first message has been sent (e.g. because we want to include parameters in the second that we didn't want to include in the first message) this has no effect on the subsequently sent messages. What I did now is that I just recreated the Channel in my implementation that extends ClientBase, i.e. if I detect a change between Channel.RemoteAddress and Endpoint.Addre ...Show All
Visual Studio Team System Jumping to a location in the source thru VS 2003 doesn't work with 1.35
Hello, I have FxCop 1.35 and VS 2003. When click on a <location> link, get a "can not start microsoft visual studio" message. The $(file) /command $Edit.Goto$(Line) workaround helps. Previously i had 1.32 and it was the same story, but I expected it to go in 1.35. It didn't work when both 1.32 and 1.35 were side by side, still doesn't work when I deinstalled 1.32 Thanks, Oleg This should work. Can you provide more information regarding your setup Do you have any other version of Visual Studio installed What versions of the .NET Framework do you have installed Regards David ...Show All
Windows Forms Get updated data from axSpreadsheet
Hello, I am using a axSpreadsheet component in my Winforms application. How do I fetch data from cells which the user has entered at runtime For ex - I had programatically inserted data in cell A1 as - axSpreadsheet1.ActiveCell.get_Range("A1", "A1").Value2 = "Some Content"; On a button click I have the following code which gets me the data of cell A1 - axSpreadsheet1.ActiveCell.get_Range("A1", "A1").Text.ToString() However, if the user had entered some content in B1 at runtime, then axSpreadsheet1.ActiveCell.get_Range("B1", "B1").Text.ToString() returns me an empty string. How can I get the new/updated/modified data Thanks. ...Show All
Visual Studio Express Editions VIsual C++ Express; can't get Class Wizard to add functions, variables, etc
I'm a fairly experienced Visual C++ 4-6 user. I have the release version of Visual C++ 2005 Express, and am working on some new code to teach myself .NET. I cannot get the "Add function" and "Add variable" tools to come up. I've read the documentation, tried putting the customizeable icons for those functions on a toolbar, etc (they always stay greyed out). I go to the Class View, right click, etc, and have no luck. Can anyone help Or is Class Wizard disabled exept for the ability to add new classes Any chance MS will add MFC to the Express edition that would be great, but I guess they want me to buy the standard edition! Thanks, Tom ...Show All
Visual Studio Express Editions how to use a custom cursor (.cur)
I have made a .cur file and have embeded it in my.resources so I can easily acess it from in my code but I don't know the correct syntax. Whatever I try never works. Can someone please tell me the few lines of code I need to use my cursor I tried it and this error message came up. It is probely something basic, but is there possibly anything left out in the line: Dim Cur As Cursor = New Cursor( "c:\windows\cursors\pen_rm.cur" ) Thanks for trying! Error 1 Overload resolution failed because no accessible 'New' can be called with these arguments: 'Public Sub New(stream As System.IO.Stream)': Value of type '1-dimensional array of Byte' cannot be converted to 'System.IO.Stream'. 'Public ...Show All
Visual C# Application - Properties: An error occurred trying to load the page.
Hi All, I was doing a tutorial when i noticed that if I right clicked on my application and selected 'properties,' the properties menu gave me a strange error - 'An error occurred trying to load the page. Exception has been thrown by the target of an invocation.' I have taken a screenshot and placed it at http://members.iinet.net.au/~yimr/error.jpg I tried creating a new document and it still gives me the same error except if I try it in Visual Basic Express the properties page works. Does anybody know what is wrong I reinstalled Visual C# but it did not fix the problem Thx! Diamondplane Most likely something about that project has gotten out of wack, or the solution/project cannot be written t ...Show All
Software Development for Windows Vista XPSDrv Sample
i installed vista beta2 and WDK(build 5600), and then built XPSDrvSmpl. but when printing the windows test page to file, the result prn file has 0 byte. Good, can you "Print to file" from the application I got a spooler error everytime I tried to print to file from the application. But If I create a local port like c:\testport.xps, i can print to it without any problem. Anyway, I cannot select the "Print to file" check box. I have submitted another post regarding this problem. Please let me know your experience. Thank you, zoom ...Show All
.NET Development Using Internet From C#
Is it possible to use some .NET library to download a file from the internet automatically to a specified directory Let's say I have an excel chart on my website, and I want to download it to C:// Also, I want to be able to do the same with a web page, i.e., I want to go to www.mywebpage.com/index.html and download index.html to a certain folder by using .NET. Will this take a lot of complicated code Can I just use a .NET library, or must I use Win32 API or something like that After doing some thorough searching, I came across this article, http://www.developerfusion.co.uk/show/4637/2/, which explains some good stuff. This answers y web page question, but how do I do files ...Show All
SQL Server Custom Page Break
There are 3 groups in my report– grp1, grp2 and grp3, with grp1 at the top, grp2 in the middle and grp3 at the bottom. I need to insert a page break when the value of grp1 record becomes “abc”. Is this possible If so, I will really appreciate if someone can let me know how. Thanks in advance, Saurav ...Show All
Visual Studio Team System Installing TFS MSSCCI Provider
I have downloaded and tried to install the TFS MSSCCI provider and receive a message that I don't have team explorer installed. However, I can't install Team Explorer because the workstation is XP SP1 and we will not be rolling the SP2 update out for some months. The requirements on the provider explicitly state XP SP1. Has anyone been able to install this item on a machine with XP SP1 for use by Visual Studio .NET 2003 Hello, the readme states: ------------------------------------------------------------------------------- Tested Configuations ------------------------------------------------------------------------------- 1) Visual Studio .NET 2003 on Windows Server 2003 SP1/Windows XP ...Show All
SQL Server Invalid Character in Flat File or Turncate problem
My source is a csv flat file. Currently I use that same flat file on SQL 2000 and SQL 2005. On SQL 2000 it runs fine and it inserts that character as part of the string (varchar), however, it gives me truncate error on sql 2005. I already use the "Suggest Types...." and my Output columns have the correct lenght (specially that lehght of that column is only 30 char which is less than the default anyways). If I remove that character it runs fine for that column..... This is the values that I get in my flat file for the trouble coulmn is "ATTN: JON OLSEN a€“ CTRL8 " And the error that I get when running the SSIS is [Flat File Source OrderDetail [1]] Error: Data conversion failed. The data conversion for ...Show All
