Answer Questions
Eljdee1 c# to x86 code
Hi Mike, how do you generated the x86 code in one of your following blog http://blogs.msdn.com/jmstall/archive/2005/09/08/il_vs_native_offset_0.aspx Thank you for your help, Visual Studio will show you the native code for jitted C# methods. (It won't however show you the IL). ICorDebug exposes the native addresses of jitted code, so any managed debugger could show that information. Vance Morrison has an excellent blog with further details and a walkthrough: http://blogs.msdn.com/vancem/archive/2006/02/20/535807.aspx ...Show All
killghost Problem to install VS.net 2.0
Hi friends i have a problem to install VS.NET 2.0 in XP professional Service Pack 2 when i start the installation,It gives error that Suite integration toolkit executable has encountered a problem. Plz help me I have seen and i install internet explorer 6 but still i cant install VS.NET. I have searched many artical for this but got no resutl. pleaze give me right solution or guide me. thanks in advance I don't see where you get Internet Explorer 6 but just: Make sure that you install all the latest updates Download and install the Windows Installer: http://www.microsoft.com/downloads/details.aspx FamilyID=889482fc-5f56-4a38-b838-de776fd4138c&DisplayLang=en Download and install the .NET Fram ...Show All
th3Nu11 base-method bindings incorrect when updating a referenced assembly
I have detected some strange behaviour on overriding methods. Hopefully this is by design because if not this could be a major bug in .NET! First of all, I am developing a framework containing multiple assemblies. This framework contains several base classes that developers can descent from. When I update the framework (when fixing a bug) I used to tell customers just to delete the old assemblies and replace them with the new versions I had send them. Sometimes this did not solve the problem. Customers sometimes needed to recompile their entire project against my updated framework assemblies before the bugs disappeared. I now have discovered what causes this strange behaviour. Let me show a small code example: Version 1 of Step ...Show All
Sweed RSAProtectedConfiguration Provider Use In Windows Forms Apps
Hi folks, I've been developing two enterprise apps for deployment to selected users within the company. Both of the applications have sections of their App.Config files encrypted using the RSAProtectedConfigurationProvider. It all works fine. The problem is this: These apps will be deployed to run from the network, and will not live on the user's machine. This is also true of the App.config files. What this means is that I need to be able to create and export an RSA key container to be imported on each authorized user's machine which will be used to decrypt the encrypted sections of App.config. During development, the default .NET key has been used. Once the new key has been imported, I need a way to tell the RSAProtectedC ...Show All
Toan C# Computer Names on Network netapi32.dll NetServerEnum
How can I detect the machines on the network using C#.net (.net framework 1.1) I want to capture the desktops remotely for monitoring. Also I'd like to install and run applications remotely. How can I accomplish the above Could you illustrate your solution Please provide me useful links or resources . Hi Sreerad, Aaah, You are trying to to something Big . Q) How can I detect machines on the network A) Try this code to dump this information to a text file using DOS command Process process = new Process(); process.StartInfo.FileName = "cmd"; process.StartInfo.Arguments = "/C net view >test.txt"; process.StartInfo.RedirectStandardOutput = true; process.StartIn ...Show All
nordboh USB COM port error
Dear experts, I am building an application to operate a USB modem, I am currently using VB.NET Studio 2005 and .NET runtime version 2.0. The working: Use a WMI query "SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA ""Win32_PnPEntity""" to monitor the device insertion event on USB port. Use another WMI query "SELECT * FROM __InstanceDeletionEvent WITHIN 1 WHERE TargetInstance ISA ""Win32_PnPEntity""" to monitor the device removal event on USB port. When the insertion event fired, create a new SYSTEM.IO.PORTS.SERIALPORT class as an communication interface to allow users to operate the modem. When the removal event fired, close and dispos ...Show All
R3dD0g Database secure login to program
Hi, I am creating a VB.Net program and know basic VB programming. The program will at first ask you to login. I want an admin who can change his password and also add users. I am not sure how to do this. I know how to access SQL databases but not how to make the program check the database each time a user inputs a login and them direct him to his account or how he can change his password without being able to access that of others. If anyone could give me a word of advice thats easy to understand I would be very grateful. ok. Can you explain exactly what you dont understand so we can help you better look at the SQLConnection, SQLCommand and perhaps SqlDataAdapter classes: http://msdn2.microsoft ...Show All
MMCompton OleDbException was unhandled by the user code in a website of VWD 2005 Express
Hi all, I executed a website (named "AccDataSource" with the Order.aspx, Order.aspx.vb, Product.vb in App_Code, and Halloween.mdf in App_Data - see the attached items below) in my VWD 2005 Express via the local host. I got no error or warning, but during debugging the following appeared: "OleDbException was unhandled by the user code - The Microsoft Jet database engine cannot find the input table or query 'Product'. Make sure it exists and that its name is spelled correctly " pointing to the code line "ddlProducts.DataBind()". /////////--Order.aspx.vb--///////////////////// Imports System.Data Partial Class Order Inherits System.Web.UI.Page Private SelectedProduct As Product ...Show All
EnigMa_AnGeL how to not include base class in shema
Hello I have three classes A,B,C. B derves from A and C derives from B. I only want to include A and C in the wsdl so that the client does not see B. I tried to use the [ XmlType (IncludeInSchema = false )] on B but then C wont be included either. Even adding [ XmlType (IncludeInSchema = true )] to C wont include C. How can this be done I do not want to include B and B:s properties should not be seen in C either. Thanks Elena, Marking the base classes with [ XmlType (IncludeInSchema = false )] will prevent those classes to be added in the wsdl. So, it is not exactly the same as CLR inheritance in the sense that you can "hide" the inheritance not including the base clases in the wsdl. Ho ...Show All
Moskie Cryptography
Can we decode the Hash that is generated by MACTripleDes Actually i want to send an image from client to server in the Encrypted smallest possible size. Is there any other method to do that A hash is a secure checksum of data, it cannot be "decoded". You're probably looking at encryption and compression. Compressing first will generally give you a smaller final size. Check out the System.IO.Compression namespace for built-in methods of compressing data. Check out the System.Security.Cryptography.CryptoStream for example of encrypting/decrypting data. ...Show All
dr.acv Numeric NullValue in DataSet schema designer
Hi, I've just ported an application from v1.1 to v2.0 of the .NET framework. The application contains a strongly typed DataSet that it uses as an internal database, this DataSet is serialised to file using the DataSet's.WriteXml() method. This file is used as the applications file type. Users of the application have various xml files created using different versions of the application. The most up to date files, created using the recent versioned application, contain more tags/fields than older files created on older versions of the application. Prior to porting over to v2.0 the missing tags in older files where filled using the column's NullValue property. This occured for all data types. For example if column ...Show All
gon_no1 WebService Error --- Object reference not set to an instance of an object
hi, I am currently developing a window application utilizing webservice. the whole things run correctly, however when I run the window application on some computer, It comes out this error : System.NullReferenceException --- Object reference not set to an instance of an object it is obviously the window application cannot regconize the webserive. but it runs correctly on other computer with the same OS(windowXP SP2), what is the reason can anyone tell me it will be greatly appreciated for your reponse. My window application is developed on .Net Framework1.1, VisualStudio2003. MS SQL Server2000. Dave thank you, following this is the error stack trace: I googled that probably this is derive ...Show All
Hanspeter Project failing on 64bit
I have a c# Vista project, actually started with Expression and so of course uses WinFX, that works fine on Win32. It crashes immediatly on x64 Vista. So I installed VC2005 on the x64 system and it builds fine but crashes immedialty if I try to debug it. "Error while trying to run project. Unable to start program myapp.exe" So I tried going to "configuration manager and setting the processor to X64 and rebuild. I get these warnings: "Referenced assembly PresentaitonCore.dll targets a diffrence processor" "Referenced assembly MSCoreLib.dll targets a diffrence processor" I'm thinking maybe these two dll files are 32 bit only and/or the OS doesn't have an update for them or I need to install a winfx ...Show All
Goh Wah Excel and SQL Server
How do I read an excel spreadsheet in vb.net and insert the records from the spreadsheet into a SQL database Two questions: 1. Where would I find the documentation for HDR and IMEX etc 2. HDR=Yes isn't working for me. I can't get the first row from Excel with the column names. Any idea what might be wrong NoSpam_Glider_Guider@Yahoo.com.NoSpam The HDR argument will determine whether the first row in the Worksheet is used as column names in your DataSet/DataTable. If the value is YES then the column names will correspond to those found in the first row of the Excel Worksheet or Range. If the value is NO then the column names for your DataSet/DataTable will default to F1, F2, F3, etc. ...Show All
hazz Requirement on XSLT- Checkboxlist, XML and XSLT.
Hi, This is related to the Checkboxlist, XML and XSLT. I have a requirement where the controls are dynamically generated from an XML. This is my sample XML file: < Question Name = " Check " TypeMode = " Check " Text = " What’s ur tech " Value = "" Type = " DropDownList " > < answer ></ answer > < answer > Yes </ answer > < answer > No </ answer > </ Question > < Question Name = " Check " TypeMode = " Check " Text = " Please select one or more Technologies " Value = "" Type = " CheckBoxList " > < answer ...Show All
