Answer Questions
e2e How do I open an existing Excel file and display the information in a form using VB.NET
Hi, Take a look at this link. http://support.microsoft.com/kb/301982/EN-US/ Hope it helps... cheers, Paul June A. Domag http://support.microsoft.com/default.aspx scid=kb;en-us;311731 Try this - I don't know exactly what it is you are after, but this is a good start. ...Show All
nongnu_best Protecting Assemblies
I'm building an n-tier application with data access, application and UI layers in separate projects and hence separate assemblies. MyProjectUI.dll MyProjectApp.dll MyProjectDataAccess.dll etc... The application will eventually be publicly available for download and installed on end-users machines. How can I protect my middle tier and DAL assemblies from unauthorised access so that a 'clever' user cannot add a reference to o ...Show All
The Big Kahuna Remote DLL referencing
Hello All, How can i reference a dll on the server.. i am not talking about web services of course. A pure DLL residing on the server, how can I reference it Hi, The only way to achieve this would be to use DCOM by registering your .NET DLL for COM Interop on the server. //Get type reference Type srvType = Type.GetTypeFromProgID("Some.Prog.Id", "some.host.ip"); //Get remote object reference dcomt ...Show All
Mike Emerson Delay on first call to web service
As a learning experience, I've written a Windows Forms app which accesses the xmethods StockQuote web service: http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl (I'm using .NET 2.0 and Visual Studio 2005.) The (synchronous) calls to the getQuote method of the service take place in the DoWork handler of a BackgroundWorker. It takes 10 seconds or more for the first call to getQuote to complete; all subsequen ...Show All
Dolllar Dude Framework 2.0 breaks interop app
VBScript code calls C# class library objects published to COM with ComVisible attribute. It works fine only when 1.1 runtime is installed. After installing 2.0, script breaks with 'unknown exception' when returning from CLR (property or (in other place) method is called, both returning managed object) Class library is compiled against 1.1 and 2.0 runtime (it doesn't matter) Both script and class library can be even debugged an ...Show All
Mesia Unable to connect to Access database
Hi, I just installed VS 2005 team suite and was unable to access the Northwind database through add a connection wizard. The message I got when attempting to connect to it through Jet or ODBC was Unable to add data connection. Could not load type Microsoft.VisualStudio.Shell.InterOp.IVsProjectDataConnection from assembly MicrosoftVisualStudio.Shell.Interop.8.0, Version=8.0.0.0, culture=neutral, PublicKeyToken= etc.' I did not set up admin rights ...Show All
Jamie Eckman Can one computer run both Framework 1.1 and 2?
i have VS 2003 which seems to only run .net Framework 1.1. and i have installed VS express 2005 which needs Framework 2. BUT i want to be able to run both version of software (for a while). Can both Framework 1.1 and 2 be running on the same computer (ver. 2 installed, but things did not seem to work right until i uninstalled ver. 1.1). Thanks. i will try re-installing Framework 1.1 and see what happens. ...Show All
Freelancer SSLStream data out of order
I am upgrading my FTP server to use SSL. I can successfully negotiate an SSL command channel in response to AUTH. I do synchronous I/O here, and all is fine. When the data channel is protected it immediately begins life as SSL. I use the same asynchronous I/O model for both SSL and non SSL modes, casting either SSLStream to a Stream, or casting the NetworkStream to a Stream to do the I/O. But when the data channel is SSL the data is arrivin ...Show All
A_Man of Time and Decision XYLoP System.IO.IOException was unhandled
I am facing a strange problem. I have just 2 lines of code - File . Create ( @"C:\test.test" ); File . Delete ( @"C:\test.test" ); When I execute I get the following error and am not able to tackle this problem. Any help will be appreciated- System.IO.IOException was unhandled Message="The process cannot access the file 'C:\\test.test1' because it is being used by another process." Source="mscorlib" StackTrace: &nb ...Show All
Jibu DataSet.Merge and records duplicated...
I have a problem with my datasets merging. I created new windows application and used wizard to add a typized dataset connected to my datasource and datagrid, bindingsource, bindingnavigator on my windows form. On the click event of SaveItem of BindingNavigator I edited the default code with this (C#): private void anagraficaBindingNavigatorSaveItem_Click( object sender, EventArgs e) { ProvaDataSet_ds tmpDS= new ProvaDa ...Show All
tech2hardikjoshi Default Printer settings
I'm logged in to a terminal server with user having administrative previleges. I created a user named 'dub1'. This user can not set any printer as its default printer neither the option for setting a printer as default while a new printer is being installed is displayed. The user created doesnot have any problem for printing from applications like notepad, but since it can not set a printer as default printer, it creats a problem while trying ...Show All
Harrives Error: Unable to open shim database
I get this kind of events logged in the eventlog: Source: .Net Runtime Type: Error Unable to open shim database version registry key - v2.0.50727.00000. Is this 'normal' behaviour or is there a misconfiguration. I have this messages on Windows 2003 Server, on SqlServer2005 boxes as well on TFS app tier and Terminal Server running VS2005. Strange thing is: everythings seems to work OK... Rene I got it too ...Show All
mgi1100 I expect a client cert will return after starting System.Net.HttpListener in "Negotiate" mode
I want to write a HttpListener requires browser to submit its client cert before response. When start following code, the browser prompts for password only and nothing is returned in the server side statement .GetClientCertificate() . Instead, the response headers("Authorization") has a long base64 string [Negotiate TlRMTVNTUAADA...]. I suspect it is the client cert that I want. However, I fail to create the cert from it. ...Show All
Rajnish Technical difference between COM and CLR
Hi Guys, I wanted to know the technical differences between COM and CLR in terms of it's memory management. I had been working on VB component development and would like to know if the memory management remains the same or it has changes completely. Waiting for a reply. Thanks in Advance. It changes completely since the CLR provides a garbage collected environment where most of the memory management work is tak ...Show All
webxtasy Problem: How to draw text into bitmap?
Hi, I need to draw text into the bitmap. Resulting text should be "smooth" (antialiased) and international scripts should be handled properly. In addition, it should be fast. You might think, "That is simple, isn't it " Well, it is not! There are at least two ways to do it: 1. Graphics.DrawString and 2. TextRenderer.DrawText. Problem is that I cannot reach my targets with these two guys (who wou ...Show All
