SQL Servant's Q&A profile
Visual Studio VS2005 fails to build solution
I'm having a strange problem where the VS2005 Beta 2 IDE fails to build my projects. The setup is at follow: 1 Solution with 2 projects all located in the same folder. The two project share files as one is targetting regular .Net 2.0 and the other CF 2.0. When I compile I get the following error message: C:\WINNT\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets(2274,9): error MSB3021: Unable to copy file "obj\Release\NipoSoftware.Synchronization.WinCE.dll" to "bin\Release\NipoSoftware.Synchronization.WinCE.dll". Could not find file 'obj\Release\NipoSoftware.Synchronization.WinCE.dll'. However if I build the same solution using ...Show All
Visual Studio Team System Load of property 'FxCopInputAssembly' failed. The 'FxCop Input Assembly' must be under the project folder.
Why am i seeing this warning. Load of property 'FxCopInputAssembly' failed. The 'FxCop Input Assembly' must be under the project folder. 4 of them. Please see a separate thread in this forum on the same subject for more information. http://forums.microsoft.com/msdn/ShowPost.aspx PostID=2386 Michael Fanning VSTS Development ...Show All
.NET Development the performance of DataTable.Merge() in ADO.NET 2.0
Dear Sirs, I have see ideas at http://msdn.microsoft.com/msdnmag/issues/05/11/DataPoints/default.aspx and I have a question about the performance of DataTable.Merge(). It seems in ADO.NET 2.0 this method executes with increasing time when DataTable has more data rows, while merging about 10 rows each time. The table I used as follow, DataSet ds=new DataSet(); DataRow dr; ds.Tables.Add("BigTable"); ds.Tables[0].Columns.Add("ID", Typ ...Show All
Windows Forms No Touch Deployment for files other than assemblies?
Hi, I've got a simple vb.net windows form app. that consists of two forms and a chm help file. I want to deploy it over the web. My first form is my exe that gets my app. running. The second form is a dll that the first form references. Both of these work fine from a link on my web page to the exe. My p ...Show All
SQL Server Metadata driven SSIS
I am looking for some pointers on Metadata driven SSIS. Specifically, how to automate creation of a large number of packages in SSIS using metadata. I am looking at this as a solution to deploy multiple packages on multiple servers. Any other ideas on this would be highly appreciated. Thanks Vishal Verma By the way, I think what Suresh may be talking about here is that we're doing some work to identify and promulgate best practices around metadata for IS that will be released as either a KB article or whitepaper. That is supposed to be available around the time ...Show All
Smart Device Development Help! DllNotFound, PInvoke problem
Hi, My project was given a dll, that we are going to deploy in a PocketPC project using .NET Compact Framework 2.0 and Visual Studios 8. To be able to use the dll, I've created a wrapper class called DataStream (seen below). namespace mobileTest { class DataStream { IntPtr hDevice; IntPtr hStream; [DllImport(" AduHid.dll ", EntryPoint = "WriteAduDevice", CallingConvention = CallingConvention.Winapi)] static extern unsafe int WriteAduDevice(IntPtr hDevice, string lpBuffer, uint nNumberOfBytesToWrite, IntPtr lpNumberOfBytesWritten, ...Show All
.NET Development Exception in the listener thread
Hi. I handle following exception. Is any one sow this one Thanks. Exception in the listener thread of listener KTLogViewerMessageDispatchListener. The listener will not receive any messages from now on. =>Unknown error (0x274d) Stack: Server stack trace: at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket() at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machineAndPort) at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders ...Show All
.NET Development Who's using .Net?
I am just starting using VB.Net and loving it. But can anyone point to an example of an application created using .Net It seems as if Microsoft doesn't make many apps with it. I am trying to show coworkers some examples. Thanks, Chris Its true that a lot of companies use .NET internally. But why doesnt MS use .NET for public apps All ms apps are native code with managed wrappers (if any). I think the real question is why should we use .NET for comercial apps when microsoft wont Does .NET training cost them a lot ...Show All
.NET Development Encrypting the app.config file
My application will use the DataProtectionConfigurationProvider to encrypt my app.config file. I can encrypt the file from within my applicaiton, but I would like to be able to encrypt it outside the application so that the file is encrypted when it is deployed. I know that you can encrypt web.config files with aspnet_regiis.exe. Is there a tool that can encrypt app.config files as well Eric No there is currently no tool available to encrypt your app.config automagically...well at least to my knowledge so don't quote me on that. The difference between app.config for desktop apps and web.config for web a ...Show All
Visual C# Future C# string optimization directions
This is a topic of academic interest to me. Are there any plans to optimize code patterns such as: string results = ...; bool foundSomething = results.ToLower().Contains( "something" ) ) Here, I'm making a case-insensitive search and it seems that ToLower() is an unnecessary use of CPU cycles and memory accesses. One possible solution, which isn't very extensible, is for ToLower() to do a lazy-copy: it will first make a reference to the input string and add a "use-lower-case" bit. Contains() uses this bit to do the case-insensitive compare on the original string. Brian ...Show All
Visual C# NullReferenceException: Object reference not set to an instance of an object
First time to test web appliction. I do not know how to handle this error. [NullReferenceException: Object reference not set to an instance of an object.] in line: 32 using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace WebApplication4 { /// <summary> /// Summary description for WebForm1. /// </summary> public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.TextBox TextBox1; protected System.Web.UI. ...Show All
Visual Studio 2008 (Pre-release) When willbe available the next CTP ?
When will be available the next CTP... It's already necesary...! I hope that it could have more controls unless the DateTimePicker, the idea of a nullable datetimepicker could be very interesting. And, Do you know if when WPF be released will change the name of the properties ...maybe like 'Content' because this will be a very big problems if it change, current code could not work...! Grettings...! -- Miguel Ortiz Falcon michaelof@hotmail.com Wow -- quick demand for a new CTP :-) We don't have a date to announce for the next CTP -- but you'll notice a pattern of one every few months :-) However, I'd like to set expec ...Show All
.NET Development FileSystemWatcher Service doesnot detect changes when folder containing the file is deleted.
I am using the FileSystemWatcher Service to monitor xml files within sub folders in a root folder. The problem that I am having is that when I delete the folder within the root folder which contains the xml file, the delete event does not seem to be fired. It works fine when I delete the xml file itself. here is the code. Please let me know what I am doing wrong. watchfolder.Path=WEBDest; watchfolder.IncludeSubdirectories = true ; watchfolder.Filter="*.xml"; //watchfolder.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite //| NotifyFilters.FileName | NotifyFilters.DirectoryName | NotifyFilters.Siz ...Show All
Visual C++ cannot convert parameter 1 from 'wchar_t' to 'const void
Hello Everyone, I have a code which was written in WIN 32 and I upgraded it to .NET everything went fine, except this passing of parameters .. the function looks something like this... sha_hash( const void * data_ptr, /* data to be hashed */ int data_length, void * buffer_ptr, /* hash buffer ( 20 bytes ) */ int buffer_length = SHA_HASH_LENGTH, void * prefix_ptr = NULL, /* for hmac */ int prefix_length = 0 ); In WIN 32 i can pass something like this sha_hash(char password, strlen(password), unsigned char passwords); // this worked fine no problem but here if I do the same thing....doesn ...Show All
Visual Basic How to Run a VBScript after Application Setup?
Hi, I have created a setup file for my application using VS2003, my application requires to run a VBScript files automatically after the setup finishes. How VBScript can be added to my setup program Thanks for the help. Open your setup project, right click on the project & choose 'View -> Custom Actions'. On the Custom Action, right click on 'Commit' and choose 'Add Custom Action' & select the vbscript you would like to execute. For more info on custom actions, look here http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vbconcustomactions.asp Hope th ...Show All
