Answer Questions
kkennedy1008 Get problem with deploy .Net framework
I deploy my project by follow these steps: - Create a Setup project - ............. - From the Property Pages dialog of my Setup project, click Prerequisites - In the Prerequisites dialog box, under the Choose which prerequisites to install list, select .NET Framework 2.0 . I check Create setup programe to install Prerequisites and choose Download Prerequisites from the same location as my application . - Back to Property Pages dialog, click OK - In the Solution Explorer, right-click the setup project name, and click Build. I see there are two files setup.exe and myProject.msi ; folder dotnetfx with dotnetfx.exe in folde ...Show All
Guostong Advice re transactions across multiple SqlConnections...
hi, i have a data access layer where each object (maps to a table in the db) wraps up all db work in its own SqlConnection. I am looking for a way to implement transactions across multiple objects (and therefore multiple SqlConnections) and am unsure of the best direction. All SqlConnections point to the same (MSSQL 2005) db. I have read that I can use the new TransactionScope but this appears to use MSDTC which I would prefer not to do if possible. Thanks in advance, Simon. Sigol, Alas, it's a know issue with the TransactionScope. Even if you are connected to the same SQL 2005 server, it will escalate to MSDTC for any new SqlConnection you open. Short of passing references to an op ...Show All
Depick Data Reader and multiple rows
I am trying to populate various labels with data held in a access DB. I have teh connection and all that sorted, what I am having an issue with is getting the correct data in the correct label. For instance: tblActivity has a field called activity name, it contains the rows Canoeing, Tennis, Surfing. Using the code below I can get the information into the reader but ever label displays the first record. Dim activitycost As String = "SELECT * FROM tblActivity" Dim command2 As New System.Data.OleDb.OleDbCommand(activitycost, connect) command2.Connection.Open() Dim rdactivity As System.Data.OleDb.OleDbDataReader = command2.ExecuteReader() If rdactivity.HasRows Then rdactivity.Read() Me.Activity1Label.Tex ...Show All
Stephen B COM interop to unmanaged OO COBOL component returns 0x8002003
I am receiving 0x8002003 COM exception when I try to access a public property in an unmanaged COM component written in OO COBOL (Fujitsu NetCOBOL - not their DotNET product. NetCOBOL is a full OO implementation and creates COM components that function correctly. I have dropped them on ASP pages as well as used them on the Windows desktop) The component has a property defined as 8192 bytes (for compatibility with COM BString). I need to set this property, invoke a method called "FIB" (Fill in the blanks), then access the property to see what happened. I'm using C# Express so I don't have the SDK tools like TLBIMP.exe. Fortunately, I don't seem to need them as the IDE has generated an interop Assembly for me and when I loo ...Show All
katgreen searching question ?
hay all... i tired looking for method that allows me to search for a SPECIFIED file i know that, there is a SearchOption enum but realy i cant find any method can use it .. plz help me Note : sorry about my bad language and grammar. thanx :D The documentation for SearchOption links to classes that use it. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=981482&SiteID=1 for an example of using SearchOption You question has nothing specific to do with the C# Language. Moving from the Visual C# Language form to the Base Class Library forum. ...Show All
Bumper Importing access database (.mdb) to mysql
Hi I have a complete database which is written in access and which I would to convert to mysql. In my program I could like to use JDBC driver to integrate with mysql database. Does anyone know how this can be accomplished Dan I'm not sure if I fully understand your question, but Access can only operate through ODBC, although you can use JDBC with ODBC if, for example, you have a Java app. You didn't really indicate what you're using to develop the app although I assume it's a .NET desktop or web app. On the other hand, if you just want to export the data from Access to MySQL you can create linked tables in Access to corresponding tables in MySQL using ODBC ...Show All
sticksnap Controling the Order of Xml Serialization
I have an object which serializes fine to xml, but when I deserialize back to an object I need to ensure that certain elements deserialize before their dependant siblings. The schema that I'm using doesn't define a specific order, so sometimes it comes in different order ie: <RootNode> <DependantNode/> <Non-DependantNode/> </RootNode> or <RootNode> <Non-DependantNode/> <DependantNode/> </RootNode> Is there a way to tell the serializer to only process a certain field after it has processed another Or do I need to modify the Xml before deserializing Thanks for any help, Matt Bell How are you defining the object T ...Show All
Diggdude Failure in updating records for webpage when uploaded into IIS.
whenever we upload the webpage onto the iis server, we cannot update/insert into the Microsoft ACCESS database whenever we want. it always show an error page. However, when we run the webpage from visual studio, there's no problem updating/inserting. What are the possible cause for this Does the problem lies with the coding, database setting or iis setting and is there anyway we can solve it You will need to provide a little bit more information: 1) Error message that is being generated 2) Authentication level that your web application is configured for (Anonymous Basic Integrated Windows NT ) 3) Whether the web application is configured for impersonation hi what i mean is that i am runnin ...Show All
markzollo Error when running DirectX app in VB.Net
I installed the latest version of DirectX SDK...I am using VS2005 (VB.Net) and is working through a tutorial using directX...However, whenever I run the tutorial I get the following error message: LoaderLock was detected Message: DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3D\1.0.900.0__31bf3856ad364e35\Microsoft.DirectX.Direct3D.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. Any ideas how to correct this " Open the Managed Debugging Assistants tree node and uncheck Loader Lock" Hi there, I couldn't find the Managed Debugging Assistant that you mentioned. Cou ...Show All
Predator14567 reading a dataset!
dear All please excuse me if I use the wrong terminology as i am brand new to the world of IT. I have created a dataset ds and read an xml schema into it. here is my xml <myroot> <prec number="1"> <equation id=1> <x></x> <y></y> </equation> <equation id=2> <x></x> <y></y> </equation> </prec1> <prec number="2"> <equation id=1> <x></x> <y></y> </equation> <equation id=2> <x></x> <y></y> </equation> <equation id=3> & ...Show All
Joe0532 What components end up in the compiled EXE ?
If I have a program that references 3 dll's that I made, is there any indication of those DLL's in the final, single, EXE after compilation I want to be able to find out what components make up a RUNNING exe program, but if all that information disappears on compilation, I won't be able to find out. Any ideas The referenced DLLs are not merged with the exe regardless of the namespace. If you want to construct a single .exe containing all referenced assemblies then you can use ILMERGE from Microsoft to do it. Even using ILMERGE you will still only create a .exe with all your own DLLs in it, it will still refer to other DLLs that are part of the BCL. dll means dynamic link library. Because it is loaded from a differen ...Show All
Atleta Memory leak in SerialPort.Read?
Hi. I communicate with the serial port on my ”PDA/smart device” to another device (custom circuit board). The PDA needs to send data at least once a second to the hardware just to confirm that there is a connection; If not the hardware shuts down. The PDA also receives information from the device witch is displayed. The problem is that when the PDA receivea data, the application starts to leak memory. After 30 minutes to an hour the garbage collection procedure takes so much time that the communication halts for several seconds, witch in turn causes a timeout. Could there be a problem in the SerialPort.Receive() or in the garbage collector. Most likely I have done something wrong… Here is a simplified ...Show All
Kayda_SQL c# SQL POCKET PC
Hi, I want to develop an application in c# (cSharp) that create a database and popolate it with some information. In my mobile device I have SQL Mobile Edition... I want a brief tutorial or example to start. thank you very much Thanx You may want to start with the below links: http://msdn2.microsoft.com/en-us/sql/aa336364.aspx http://msdn2.microsoft.com/en-us/sql/bb219480.aspx ...Show All
VBTeacher Get the IP address of all the PC in a workgroup
I am making an application in vb.net. In that i need to get the list of the IP addresses of all the PCs that are running in the Workgroup. So how can i get that list by coding Thanks in advance First You can get computer list of Computers on your network suing P/Invoke and netapi32.dll functions and then you can loop through all computer names and use Dns class to get IP Address of each! Here is way how to get computer names of all available computers on the Network: http://www.codeproject.com/cs/internet/ListNetworkComputers.asp I hope this will work! Best Regards, thanks dude It works perfectly ...Show All
Dave987654321 DateTime class thread unsafe?
Hello, Recently I was trying to find out the solution about some weird behaviour of System.DateTime instances. I'm creating local DateTime variable inside method scope, then assigning an appropriate value, and substracting some from it. After that I get an "un-representable datetime" exception which is the most weird thing as initial, temporary and the last values are dumped and ok, except the subtraction didn't change the left value (because of exception) or it changes to NULL - depending on syntax being used (a -= b; or a = a - b;) . Another weird thing is - that SqlDataReader.GetDateTime() method sometimes, rarely, doesn't change the left side value, and gives no exception also! I tried to read one mo ...Show All
