Jeff Putz's Q&A profile
Visual Studio error MSB3021 Un able to copy .....
hi when i try to build my solution in vs2005 . i get this error from time to time Compile complete -- 0 errors, 0 warnings C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2313,9): error MSB3021: Unable to copy file "obj\Debug\Config.dll" to "bin\Debug\Config.dll". The process cannot access the file 'bin\Debug\Config.dll' because it is being used by another process. Done building project "Config.csproj" -- FAILED. as chack this file i can see the only process using it is Vs2005 D:\download\Handle>handle config.dll Handle v3.11 Copyright (C) 1997-2005 Mark Russinovich Sysinternals - www.sysinternals.com devenv.exe pid: 1612 7F8: C:\Documents and Settings\AmitK\Local Settings\Applica ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scrolling a 2D Background
New tutorial on scrolling a 2D background on my site XNADevelopment. This is the quick and dirty approach. It covers creating the project, adding images to the project and scrolling those images horizontally in a continuous loop. I've posted the tutorial and the source code if you're interested. So far, I'm SUPER impressed with XNA development and just how easy it has been. The support from the XNA developers in the forums here has just been outstanding. These guys are really going over and above helping out all of us XNA newbies as we struggle to fly and learn the ropes. I'm also just amazed at the variety and number of tutorials being put up each day by sites in the community. If you haven't been to these sites yet, I highly recommend th ...Show All
Visual Studio 2008 (Pre-release) Stream Based Data Processing using LINQ
I have been very excited about the new Object Query support in LINQ especially so when I realized that it implemented Lazy Evaluation since this is essential to implementing stream based processing however I am now running into an old problem that I have had with templates from 2.0 onwards and which has preented me using them extensiveloy in my work. This is the problem with doing simple arithmetic with a templated object. I notice that in the code expansion for a simple object query (Wes Dyers Blog - How Linq to Objects Queries Work) He shows the innerworkngs of a query as expanding to the following. using System; using System.Collections.Generic; delegate R Func<A,R>(A arg0); static class Program { static void ...Show All
.NET Development converting output from transformNode to byte array
Hello, Can someone tell me why solution 1 works, but solution 2 does NOT work; it results in truncated data. There has to be an easier way than soution 1. The goal is to get the string output from transformNode into a byte array. Thanks. Solution 1 (works, but seems like a round about way): Dim ReportDef() As Byte Dim ReportStr As String ReportStr = dom.transformNode(xsl) Using sw As StreamWriter = New StreamWriter( "c:\temp\TestOut.xml" ) sw.Write(ReportStr) sw.Close() End Using Dim Stream As System.IO.FileStream Stream = System.IO.File.OpenRead( "c:/temp/TestOut.xml" ) ReDim ReportDef(Stream.Length) Stream.Read(ReportDef, 0, Stream.Length) Stream.Cl ...Show All
Visual Studio Team System Performance Analysis in debug mode
Hi, i have a solution with 7 projects, one .exe project and 6 .dll projects. I want to profile info on one of the .dll project. I can do it in "release mode". My question: Is it possible to collect profiling (instrumentation) info in "debug mode" If possible, how can i do it When i try to do it, i receive the error message: "Assembly was not found. Please check your Application installation" Thanks. Abongs Ian, Thanks for your answer. I stil have a problem with profiling instrumentation in debug mode. Now i receive the error message: "PRF0025: No data was collected." after the solution was close. I thing i will follow your advice <spending time on areas that are not really perform ...Show All
.NET Development Question for DataTables Replation in a DataSet?
Can anyone explain what the relations in DataSet do and what it for I have run the code below with and without the relation snippet, and I see not different. Can you tell me what the relation in a DataSet doing protected void Page_Load( object sender, EventArgs e) { //1. Db Connection string myConnString = "Data Source=localhost;Initial Catalog=Northwind;Integrated Security= SSPI " ; SqlConnection myConn = new SqlConnection (myConnString); myConn.Open(); //2. DataSet DataSet ds = new DataSet (); //3. Adapter command and fillin dataSet //--1). Customer SQL Adapter-- string sSQL = "Select CustomerID, Phone From Customers Where CustomerID ='VINET'" ; SqlDa ...Show All
Visual Basic how can i do with " in vb
how can I do with " in vb , I want replace " to & email:huangzhixing@hteb.com wolfr wrote: is this what you need replace(some_freakin_string, ControlChars.Quote & ControlChars.Quote, "&") Why to use ControlChars.Quote twice , you must use it once only. BTW, Using String.Replace() function is better that Replace() function, e.g. : Me.Text = Me.Text.Replace(ControlChars.Quote, "&") ...Show All
Visual Studio Team System How to add my custom rules into Visual Studio 2005
Visual Studio 2005 has integrated the FxCop. you can see the rules in vs2005 following the steps. Using Visual Studio, create a new C# ClassLibrary project. In Solution Explorer , right-click the project and choose Properties In the Project Properties window, choose the Code Analysis tab . and then you can see the rules that the vs2005 provides. Now I want to add some custom rues into . please tell me what should I do If possible, Please give the step by step tips. Thanks. I have added my customed rule's dll into the folder:"C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules". and then I restart my vs2005,but I can' t to see my custom rules on the Code Analysis tab . ...Show All
Visual Studio 2008 (Pre-release) How-to skin application?
Hello, I am looking into the subject and have to say, that I feel a bit disoriented... :( My goal is to build the main application and allow our partners to develop skins that can be distributed/sold to product users. Obviously, we would like to make it hack-proof, so that "outsiders" cannot modify skins/develop new skins. Solution that comes to mind would be to have signed assemblies that would contain ResourceDictionaries (with optional related code), so that application could load those assemblies at run-time, validate them, and apply templates. I would guess that it is something easy to do, but I have unfortunate feeling that I am becoming almost sure that this scenario is not supported by WPF (I refuse t ...Show All
.NET Development Copying Files useing C#
I am writeing a small program to copy specific files from one directory to another when they click a button in the program. how do i do this also if the file already exsists I want to overwrite the file in the desination directory File.Copy(@"C:\MyFile.Txt", @"C:\MyOtherDir\MyFile.Txt"); //To copy to a different file name is also possible File.Copy(@"C:\MyFile.Txt", @"C:\MyOtherDir\MyNewFileName.Txt"); Hop this helps... ...Show All
.NET Development !!!!!!!!!!!!!! .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3)
Hi all I have got a very big problem !! I have a Windows Service Application (Multithreaded) which runs since about 6 month very fine. It is developed in C# VS 2005. Now, I guess after some Windows Updates, the service does not work at all !! After starting it, it stops after about 10 seconds. It does not stop always at the same time, sometimes 10 sec. sometimes 30 sec. In the EventViewer I got messages like: ".NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3)" I have the same problem on Windows XP and Windows Server 2003. What is wrong What do I have to do to fix the problem I also already tried to uninstall Security Updates (Framework) and I installed VS SP1. Thanks very very much ...Show All
.NET Development No connection could be made because the target machine actively refused it
Hi I am trying to send a mail from my application and am getting the following error Exception Type: System.Net.Sockets.SocketException Exception Message: No connection could be made because the target machine actively refused it Exception Source: System Exception Target Site: Connect ---- Stack Trace ---- System.Net.Sockets.Socket.Connect(remoteEP As EndPoint) (unknown file): N 00309 BossWare.Mail.SmtpTcpClient.Connect(hostName As String, port As Int32) (unknown file): N 00101 BossWare.Mail.SmtpClientConnection.Connect(connectionArgs As IConnectionArgs) (unknown file): N 00255 Any help will be great Thanks You get this error when your try to connect to a computer o ...Show All
.NET Development Selecting / Update records - Concurrancy
I'm new to Visual Studio 2005 (Visual Basic). I'm an Oracle guy but I do allot of development in MS Access. I don't want to use ADO.NET's generic behaviour for record locking, etc. What I'd really like to do is to have the same behaviour as Access has where if a user changes a field, the database locks the record. I was wondering if you had any sample code that would allow me to set up a form that has a combo box on the top of the form where the user selects a record. Then the database fetches the row and displays the data on the screen. If the user changes the data, the form locks the record. What's the best way to accomplish this I've heard that this can be accomplished using transaction control but I haven't found any form / ...Show All
Visual Studio Express Editions Treeview Collapse?
Thought I'd start a new thread for this, Here is what I have in the collapse treeview Private Sub TreeView1_BeforeCollapse(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeCollapse e.Node.ImageIndex = 0 e.Node.SelectedImageIndex = 0 End Sub I load the treeview no problem, C and D drive have the drive icons, if I click plus next to drive C, I get all the folders on drive C (with folder closed icons) If I click the + next to a folder I get the open icon folder, and all the pictures with (picture icons) appear in the Listview. So far So Good. The Problem When I the close the pics folder the icon changes to a drive icon if I then open another folder the pictures tha ...Show All
SQL Server AS2005? PeriodsToDate - How to release hand break?
Hi Yukon Gurus! I have a simple query with periods to date --Sample 1 WITH member [Date].[Calendar].[Column 1] as AGGREGATE ({ PeriodsToDate ([Date].[Calendar].[Calendar Year], [Date].[Calendar].[Month].&[2004]& )}, [Measures]. CurrentMember ) SET [RowSet0] AS {[Customer].[Customer].[All Customers]. children } SET [RowSet1] AS topcount ([RowSet0],100,([Date].[Calendar].[Column 1],[Measures].[Internet Sales Amount])) SELECT {[Date].[Calendar].[Column 1]} ON COLUMNS , CROSSJOIN ({[Customer].[Customer].[All Customers],[RowSet1]},{[Measures].[Internet Sales Amount]}) ON ROWS FROM [Adventure Works] It takes almost 40 seconds on my 3,0 Ghz bo ...Show All
