Cross's Q&A profile
Visual C# file.exists does not check file on a network
Hi friends am using VS2005 and C# .i have method which accepts a file path and if its valid it reads text from that file and display it in textbox (am doing this asp.net page). this works fine with files on my machine but when i pass a network drive file path File.exists always return .F. !!! why and how can i read files from a mapped drive Yes my user account has full rights read/write files from those mapped drives . Thanks for ur advice. ...Show All
Visual C# cant run first web service
Hi friends i created a small web sevice application (VS 2005 beta2). it has one class with only one web method that returns "hello world" i also created a asp page where i am calling abv method. my build went thru fine without any error but when running this solution it prompting me to enter login and password .even though i specified correct details finally i get "You are not authorized to view this page" any ideas. am running on win ...Show All
.NET Development Edit And Continue
Hello, How can E&C be activated on a x64 windows box against a x86 application thanks Edit and continue works on my machine for an application compiled as x86. I am running vs 2005 team system. The option for edit and continue is the tools menu -> options --> Debugging -> edit and continue. Make sure the edit and continue check box is checked. ...Show All
SQL Server SSIS erros relating to maintenance plan creation
I've been searching everywhere for a solution to this problem and no answers exist anywhere. When I try to create a new maintenance plan I get the following error. I've been told it may be related to SSIS but nobody has a solution. How do I fix this issue so I can create a maintenance plan. Exception has been thrown by the target of an invocation. (mscorlib) ADDITIONAL INFORMATION: An OLE DB error 0x80004005 (Client unable to establish ...Show All
Visual Basic disable windows keypreview
Hello, is there any way to disable to keypreview function of Windows XP in Visual Basic2005 Express thnx What do you mean with keypreview There is a keypreview property on the form. Is this what you mean If it is globally for all windows you need to look at installing a keyboard hook. http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx ...Show All
.NET Development AuthenticateAsServer Method
hi there I have a problem implementing "AuthenticateAsServer" method. X509Certificate2 cert = new X509Certificate2("C:\\certnew.cer"); SslStream mySSLStream = new SslStream(myclient.GetStream); mySSLStream.AuthenticateAsServer(cert, True, SslProtocols.Ssl2 || SslProtocols.Ssl3 || SslProtocols.Tls, true ); As it is obvious the certification is invalid (missing private key). does anyone know how to export a pfx file or something ...Show All
.NET Development emitting non-static properties with PropertyBuilder
hi - if i compile the following c#: class ReflectTest { private static string firstName; public string FirstName { get { return ReflectTest .firstName; } set { ReflectTest .firstName = value ; } } } then IL for the property looks like: .property instance string FirstName() { .get instance string TestReflection.ReflectTest::get_FirstName() .set instance void TestRefl ...Show All
Visual Studio 2008 (Pre-release) 3 Questions on Custom Controls
Hello, I'm composing a custom control. Initially I was trying to use UserControl as a base class. Since UserControl doesn't allow to add more than 1 child (using AddChild) I created a Grid, added it as a child for my UC (simply using an aliased property), private Panel Container { get { if (Content is null) { Grid g = new Grid(); AddChild(g); } return (Grid)Content; } } and  ...Show All
Windows Forms Active desktop
i want to set html page as an active desktop using C# is there any API that can help me in doing this like SystemParameterInfo! SystemParameterInfo only can set *.bmp file as a desktop wallpaper thx for ur interest thx crouchie but i&n ...Show All
SQL Server 2000 Client Connectivity .msi?
Does anyone know if there's a msi or msp package around anywhere for just SQL client connectivity to SQL 2000 Preferably SP3a or 4 Thanks, MB Yeah, I know MDAC is included with the OS, but this app actually requires the full SQL Client. I might be able to get away with the SNAC, but is there any way to configure that to use named pipes vs. TCP/IP ...Show All
SQL Server Remote synchronise from PDA to SQL Server 2005
What is the best way to synch with a very large database (e.g. 40,000 products in Inventory Master) in connection oriented way and also offline mode for remote synchronizing the Data from PDA to SQL Server 2005. Kindly provide us some of the best practices on this concept. Thanks ...Show All
SQL Server unable to display images dynamically using parameters in expressions
Hi, I have two parameters. i pass two paths of two different images to two parameters. I have two image controls in page header and for both i give the parameters in the expression for the value respectively. inspite of giving this both the image controls displays any one of the image. thanks in advance ...Show All
Visual C# IRDA with C#
Hi experts, I am interested in finding out if I can create application to connect my PC to a IR device using Visual Studio .Net 2003 with the C# language If that is possible that you refer me to the appropriate links Thanks CH The .NET Compact Framework has classes that support InfraRed Connectivity. Take a look here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_evtuv/ ...Show All
Visual Studio Team System Workspace folder mapping bug?
I have a directory at C:\Projects\Foo\Src\Runtime\EncryptionLib\UnitTests that I branched to location $/Foo/Branches/Developer/hillr/Exp_UnitTests. I then try to cloak $/Foo/Src/Runtime/EncryptionLib/UnitTest and then map $/Foo/Branches/Developer/hillr/Exp_UnitTests/UnitTests to C:\Project\Foo\Src\Runtime\EncryptionLib\UnitTests. VSTS gets confused. When I edit files in the UnitTests dir in this worksapce they are rea ...Show All
Visual Basic Tableadapter error handling
I have a sinking feeling I'm not going to like the answer to this one. In short, I'm inserting a large number of rows into a database. I want to ignore any primary key violation errors (discard the row) and continue the tableAdapter.Update operation. Is there a way to do this I am using a strongly typed dataset in VS2005. Thanks, Bob ...omg Coach24 I soooooo owe you a beer... Thanks for posting this! ...Show All
