Answer Questions
Condorito Can't start the exe file if compiled in Release mode
I have a project for .net 2.0. There is a problem - I can start exe file if it was compiled in Debug mode, but can't start it if compiled in Release. There are no error messages or exceptions. The process shows for a second in Task Manager and disappears. But if I start release version from Visual Studio using F5 (start debug), it works ok. I've experimented with compile options and realised that I can't start exe file if Debug Mode is not "full" (i.e. pdbonly or none) or Optimize = true. I also tried to start exe file under WinDbg (windows native debugger). It shows that dlls are loading and then some exceptions occuring: ... ModLoad: 79060000 790b3000 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll ModLoad: 7a44000 ...Show All
Kardath delete and update code at the same button cause concurrency violation !!!
hi although the user for the application and the access database is one user i write the code for delete and save at the same time that gives exception says "concurrency violation the delete command affected 0 of expected rows" and i resolve this by merging a fresh copy of the table to it but also the concurrency violation occurs !!!! can any one help me this i want to stop all of concurrency violation happens at many positons of the application although the user for the access database is one user thanks in advance No that didn't work. any other ideas I also tried to place the Update calls in another buttons click event handler, incase it was a timing issue as you suggested. no go. I have also checke ...Show All
Perry Choy how to update multiple tables
hi, i want to update two tables(one referencing other). i used oledbadapter and the query i used to select table was SELECT student.student_id, student.name, student.branch, student.[year], student.college_id, college.college_name, college.location, student.event1, student.event2, student.event3, student.event4, student.event5 FROM (college INNER JOIN student ON college.college_id = student.college_id) Only the ...Show All
Syed Mazhar Hasan error: c101008d
Hi all, I have the following minor but annoying error whenever I build my application for the first time after modifying its code . "Error 2 general error c101008d: Failed to write the updated manifest to the resource of file ".\Debug\eConsole.exe". The process cannot access the file because it is being used by another process. mt.exe " The building is fine for the second time. In other words, whenever I modify the code, I have to build it twice because the first time always generates the above error. This is true for both debuga and release versions. This is not a big deal, but just a bit annoying. Could anyone offer some tip to fix this Thanks, hz Nikhil, I have just gone through all the p ...Show All
Chris128 HELP : URGENT : How to get the list of printers on the web server?
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the local Administrators group on the server Workstation is on the same domain Logged into the workstation as the same domain user, which is also in the local Administrators group on the workstation I'm having what seems like a strange problem. I have an ASP.NET 2.0 (C#) application that is running on my Windows Server 2003 web server. In this application, I have an .aspx page that tries to get the list of printers on the web server (using code-behind). When I run the application using IE on the server, it works fine and I get a list of the prin ...Show All
Jamie Thomson MailSlots FileStream receiving a zero length message
After creating a mailslot using CreateMailSlot and attaching a FileStream to the SafeFileHandle. Once this operation is completed the receive handler gets a 0 length packet. After reviewing some rotor2 code when the FileStream contructor is called the GetFileType is called, for a MailSlot it is FILE_TYPE_UNKNOWN thus it calls some sync code. If the file type is FILE_TYPE_PIPE then it does not call the sync code, shouldn't Mailslots do the same thing and not call this sync function This is causing problems with older C++ code that does not expect this sync code.. m_SendHandle = MailSlotCommon.CreateFile(remoteSlotName, FileAccess.Write, FileShare.Read, IntPtr.Zero, FileMode.Open, MailSlotCommon.EFileAttributes.nothing, IntPtr.Zero); ...Show All
Lucas Pasquali Code Access Security
Hello All. I'm starting work on a Windows Forms application -- still in the design stages -- and I'm at the point of laying out the security considerations. The anticipated deployment scenarios are: 1) Distribute the .msi package via Web or removable media 2a) Deploy to a single client machine, or 2b) Deploy to a LAN, either client/server or peer-to-peer. My security question pertains to the LAN deployment scenario. Now, I'm making the assumption that a standard user on a LAN will very likely be running under the "LocalIntranet" permission set, which forbids calls to unmanaged code. However, the Application.Exit() method requires permission to call unmanaged code. Now, as I see it, I can do one of several th ...Show All
kfsoft stopping connections
Hi. I've done this before but for some reason I cannot figure where I am going wrong. When I start listening to a port, I want to stop listening to it, even if there are no connections. When listening, it is listening in another thread. I have 2 buttons, Start service, and stop service: Start Service: Creates a new thread, and it runs the method to Listen to the communication Starts this thread Stop Service: if the Socket Client is non null, then it stops the client tcp listener. null's the client socket. //this is where the exception is thrown straight away "A blocking operation was interrupted by a call to WSACancelBlockingCall" if the tcp client is not null then it stops the tcp c ...Show All
RobZeilinga converting 3 Access Queries to 1 statement to use with ASP
I have 3 access queries that get the user details and compare them. I now need to transfer this information to a web page connecting directly to the database. could anyone please help me on this. These are my queries at the moment. User1 and User2 point to the same tables, the only difference is the username. Compare uses these two queries to show the functions user1 has that user2 does not. User1: SELECT SUPER_STAFF.INGRES_USERNAME, SUPER_STAFF.FORENAME, SUPER_STAFF.SURNAME, SUPER_USER_ACCESS.FUNCTION_CODE, SUPER_FUNCTION_CODE.FUNCTION_DESCRIPTION FROM SUPER_FUNCTION_CODE RIGHT JOIN (SUPER_STAFF LEFT JOIN SUPER_USER_ACCESS ON SUPER_STAFF.INGRES_USERNAME = SUPER_USER_ACCESS.INGRES_USERNAME) ON SUPER_FUNCTION_CODE.FUNCTION_C ...Show All
Timmy0614 Error: Could not update; currently locked by user...
To all, I created an application in Visual Studio 2005 using C++ that transfers data from an SQL Server 2000 database to an Access 2003 database. During this transfer, particularly when alot of records are selected, I get the error: Could not update; currently locked by user 'admin' on machine 'GSANTIN' I know I am the only one accessing the Access database. The error occurs whether the Access database is on our network or on the C drive. Let me describe the data transferred. The smallest transfer would involve the analytical data from one wafer. There are 4 tables appended in the transfer. The first table, Lot, will add only one record to the table. The second table, Statistics, adds one record. The third table, Site, adds a ...Show All
Argenta RegEx with Text File
Hi All, I have to read a text file that's follow bellow: int#string#string int#string#string int#string#string ... I would like me read this using RegEx and StreamReader classes. I want to use RegEx to create a format validator. ,and StreamReader in order to do my code clearer. Thanks for all in advance. --JORDI-- I'm guessing you are asking for a Regular Expression to validate this how about something like this. with grouping: ^(\d )#([^#])#([^#])$ without grouping: ^\d #[^#]#[^#]$ This will help you understand what this regex means. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconRegularExpressionsLanguageElements.asp Here i ...Show All
BAS-CRM cannot get web application service
When I try to add a new SqlDataSource and click 'Configure...' I get an error message "cannot get web application service" and then it won't let me click 'New Connection' to setup the connection string. Any thoughts Thanks in advance. Saved me some looking around, thanks Thanks , yaa it really works !! Thanks a lot !! thanks to all of u it's works when we just restarts the vwd......thanks again Thanks for that. I tried your suggestion and it worked. Thanks Paul I had a similar problem with SQLExpress (I was working through the examples in "Begining ASP.NET 2.0" - Wrox), using Visual Web Developer Express. My ...Show All
VitCon how to add more than one namespace reference to root?
When I am building an XmlWriter I can use the following to create the root node. xw.WriteStartElement( "svg" , " http://www.w3.org/2000/svg " ); How can I add another namespace reference to the root node eg xmlns:xlink= h ttp://www.w3.org/1999/xlink Alternatively, is there xsl syntax that could do this via a transform Thanks, Tad See: http://windowssdk.msdn.microsoft.com/en-us/library/73z46xs1.aspx xw.WriteAttributeString("xmlns","xlink", null ," h ttp://www.w3.org/1999/xlink "); Martin and Sergey, Thank you both so much for helping me out. Tad You can write out the namespace declaration as an attribute a ...Show All
SeanC problem in starting windows service.
I'm trying to write into a data base using windows application for that i made a class who uses an insert query to insert data in to a mdb file. i simple wrote a class and called its public function (SetDataBase()) to insert data in to the database. I called this function in OnStart() function of a windows service. and then complied it. it compiled successfully the service project was also install successfully but when i tried to start that service the following error occur --------------------------- Microsoft Management Console --------------------------- Could not start the MyNewService service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the prob ...Show All
Vyatsek Embarrassing Problem with inserting record...!
Hi How can I insert record R1 to Person Table Record: R1 ID: 28 Person_Id: 28 Name: Sara Family: Iranmanesh Table: Person ID: Autonumber Person_Id: number Name: Char[30] Family: Char[40] Note: This table belongs to an mdb file. Regards, Elham I sense some redundancy in your schema. What’s the difference between ID and Person_Id It looks like R1.ID and R1.Person_ID are the same DECLARE @PersonID int DECLARE @Name Char(30) DECLARE @Family Char(40) SET @PersonID = (SELECT Person_ID from Table1 WHERE ID = 28), @Name = (SELECT Name from Table1 WHERE ID = 28), @Family = (SELECT Family from ...Show All
