Shane Eckel's Q&A profile
Visual C# c# a function if my service terminate by the task manager
hy there I have made a windows service in c# now you can not stop or pauze/resume the service but you can stop the service in the windows task manager. i want that if a user try to terminate my process(service) in the windows task manager that hi or she fill in a password end if its not good then that my service will continuo working or if its good then that my service will stop i cant figuring out wat i should do i'm sorry that my english is not so good. greetzz tim When task manager terminates a process it does not gracefully ask the process to close gracefully, it terminates it with extreme prejudice and does not give it a c ...Show All
Visual C++ Timing Question
Hello, I've asked this question before but for some reason or another, my post was deleted. So I decided to try and repost something similar.Anyway, for a long time I've been wondering if it's possible to do certain actions in a loop every once in a while like so: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { while (condition) { Threa ...Show All
Visual Studio Team System Missing database updates when running a Web Test
When recording my Web Test I do some actions which add some posts to my database. After the recording the updates are as expected. But then when I run my Web Test it doesn’t perform any updates at all. I also added the Web Test into a Load Test, but still it won’t do any updates. Might there be some special settings in the test tool in order to allow database updates There is nothing special you should need to do. If you submit a request that should do an update and it does not, then that is an error. Are you receiving any error messages What is the status of the page that is returned ...Show All
.NET Development Creating 64-bit applications on 32-bit platform using Visual Studio 2005
Hello, How can I create 64-bit apps on x86 processor Do I need a x64 or IA64 machine to do that I have installed VS 2005 and the .NET Framework on x86 machine. I have my 32-bit apps ready. How do I proceed Any suggestions will be appreciated. Thanks! Sonia. Any dot net application(vb 2005 or c#) which is compiled for anycpu (the default) will be a 64bit application when run on an x64 or IA64 computer ...Show All
Visual Basic VB The usual sql update data row problem
Hello everyone! Ive seen many differnent answers and solutions for this question, but mine is a little different... What I have is 2 different variables (1 string & 1 integer)... I want to place those two variables as data in an existing datarow in my sql db. I can add them as another row no problem... but i have a row of data already partially filled and want to add these two values into the two NULL parts of that existing data row... Any suggestions or hints (actual code would be nicer) would be greatly appreciated. Im actually starting to get this VB programming down- sorta. I think yo ...Show All
.NET Development Newbie .NET question
Hi there, I have thought of the following scenario and am wondering if somebody could clear it up for me Given two servers, one being a webserver and one being an appserver, using C# if you tried to pass a string from the webserver to an appserver what would happen As I understand it, a string, being a class, would be instantiated on the webserver and therefore be stored on the webserver heap. When the appserver tries to access this string would it just fall over or would it actually reference the heap on the webserver Or does something recognise that this information is being sent across a network and therefore clones the string ...Show All
SQL Server Data Source / ODBC error
Hi all, My replication of those SQL 2000 servers gave errors: Data source (11): General Network Error. Check your network documentation... and ODBC (08S01): Communication link failure. The replication was across the WAN. I don't know where to start to troubleshoot this problem. Please help! Thanks in advance. John Communication link failure means some network or communication problem between the Publisher/Distributor and Subscriber. Check the connection between them. Try connecting to the other servers from each of the servers and ensure that you are able to connect and then retry the Sync. Also note for any firewalls ...Show All
SQL Server "The statement did not return a result set" error on SPs with exec
I'm trying to modify our application to use the SQL Server 2005 JDBC driver. After making the appropriate changes most stuff seems to work OK, except for any stored procedures that contain an exec statement and return a result set. When the stored procedure is called with executeQuery it throws a SQLServerException with the error "The statement did not return a result set". Other query SPs that don't have an exec work just fine. It doesn't matter if the exec is calling another SP, or if it's executing a constructed SQL string. Also, this worked OK with the DataDirect JDBC drivers that we used to use. I'm running this on Windows XP ...Show All
Visual Studio Team System 403 Forbidden Error.
Hello, I created a web test, then a load test and in that load test I got more than 1000 403 errors, when I see the details, all are files that actually exist and I am admin on my PC. Thanks Thanks for the reply. You are right I was getting this error when I tried to run test with 25 users and when I reduced it to 5 it started working without any error. I have one more doubt can we run a test for the site which are already on live for ex. msn.com, google.com, etc ...Show All
SQL Server Select date year below 1950 not valid?
i am doing a select statement, the .sdf database file has dates from 1910 to 2020 Dim fullcurrent_date As Date = New Date(1950, 10, 2) Dim sqlstr As String = "SELECT * FROM table WHERE Start_Month <= '" & fullcurrent_date & "'" it seems to work alright, but if i were to initialize the Date as Dim fullcurrent_date As Date = New Date(1949, 10, 2) it doesn't seem to work, is there a limit somewhere as long the year is below 1950 the select statement seems to be having problem searching for that line. Thanks That simply has to fail, here's why: 1. You have date as string in query. 2. That means DateT ...Show All
SQL Server Change the order of columns
By mistake I misplaced the order of my primary keys in some tables and I just dont find the way to move them to the top of each table. This must be something easy. and its ugly to see primary keys on the foot. Thanks, very easy. The problem was that I always make my tables in the Diagram view. and there is no posibility to do that. Only in the table view. So easy answer. ...Show All
Windows Forms Major flaw when deploying to multiple clients
I've spent days researching this with no results. My problem is basically the same as this post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=108636&SiteID=1 ), which did not receive any responses. This seems like fundamental problem with deploying ClickOnce apps to multiple clients. The issue is that when the app is deployed part of the deployment process will be changing the deployment URL in the app manifest to whatever that particular client will be using. This requires resigning the manifest, which requires making the certificate available to the client, which is a MAJOR problem! So the question is, how can the app b ...Show All
Visual Studio Tools for Office ActionsPane does not show up...please helps...
Dear Experts, I just follow "Visual Studio 2005 Tools for Office Hands on Labs for Word 2003" from MSDN....I tested alright, have no problem at all and also have no errors at all...BUT WHY.. ..When I did "Save As" i.e. Cached.doc, then I open the "Cached.doc" my actions pane wont shown up and also the check boxes, list boxes on the word document file wont shown up either....is it because abug coming from VS 2005 software... ...or something else.. Please help me... Thanks, Jennifer Hi, I did checked it...it is fine... and I will learn easy from codes... Thanks, Jennifer ...Show All
Windows Forms Display an image in Datagridview from Access
I'm trying to display an Image stored in an Access Database as a OLE-Object in a DataGridView but I get an error message doing so. Can anybody help me find a solution to this problem Greetings Bruder ...Show All
Visual Studio Team System Release Candidate in January?
Jeff Beehler's posted in his blog that we could expect a release candidate build of TFS in January. Can anyone comment on how solid that is.... can we really expect it in January We are still finalizing what the date of the RC will be. We have had a goal to get it out in Jan but that is not a guarantee. There are a few things we are basing our date on: We are finishing up another big chunk of work to improve the setup experience. Specifically to address issues surrounding getting TFS and Sharepoint configured to work together properly. We are finalizing the tools and instruc ...Show All
