KevinBurton's Q&A profile
.NET Development How to access router's webpage interface and restart it?
I want to write a program for restarting router. I’ll try to describe the process of restarting a router: Start the browser. Enter router’s IP. Inset password. Click on “Apply” (menu panel) button and wait for 30 seconds countdown , for this period of time the web page should be opened for restart process to complete. Close the browser. The program should do all this of course in background (without opening browsers) . How this can be done and what tools should I use: webbrowser Control, HttpWebRequest or DOM technology Thanks for help and suggestions. LOL, using firefox’s DOM inspector, I’ve looked into this “Apply” button, it has a huge tree with parameters and attributes but one of them was: On ...Show All
.NET Development Problem in accessing functions in a DLL
Hi All, I have a strange problem... I have VS2005 on WinXP and am making a Windows Project.When I ran the project I got an error "Unable to find an entry point name "foo" in dll "foo.dll". However the dll is present in Windows\System32 directory and the Path also references the directory So I added a reference to the dll in the System32 folder but it showed an error that "A reference to ....dll cannot be added.Please make sure that the file is accessible, and that it is a valid assembly or COM component". Next I ran "tlbimp foo.dll" from VS2005 command prompt.I got an error "The input file 'foo.dll' is not a valid type library.So I ran "regsvr32 foo.dll" and I got an erro ...Show All
Visual Studio Supporting custom tags in Sandcastle
I posted a blog on supporting custom tags in Sandcastle at http://blogs.msdn.com/sandcastle/archive/2006/11/22/supporting-custom-tags-in-sandcastle.aspx Cheers. Anand.. ...Show All
Visual Studio Team System Is it possible to set recursion to false?
Currently when automation script is run, an item is duplicated and incremented in subsequent runs. Is it possible to set recursion to false Thanks Test consultant Hi, Can you describe what the script does, and the item that is being duplicated More information will be appreciated on this. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Windows Forms MSI is Not Creating Entry in Service Control Manager
I have created a Windows Service in C# using Visual Studio 2005 Standard Edition. Standard does not have a project template for services, so I followed these instructions to create the service programmatically. I then followed these instructions for adding service installers to my service. I want to deploy this service with an MSI, so I added a deployment project to my solution. I built the main assembly then built the deployment project. When I run the MSI, the assembly is copied to the system, but the service is not created in the Service Control Manager. If I manually run InstallUtil with the assembly, the service is created successfully. Do I need to add a custom action to install/uninstall to run installutil Can anyone point me to a ...Show All
.NET Development Brief BeginAccept() question
Hi, I noticed a new overloaded version of BeginAccept in the 2.0 framework, specifically: public IAsyncResult BeginAccept ( Socket acceptSocket, int receiveSize, AsyncCallback callback, Object state ) If I understand it correctly, BeginAccept can now be used to return the first "recieveSize" bytes sent to the socket once EndAccept is called from within the callback. Anyway, here's my question: normally BeginAccept is used only to return a connection to a socket, not to return data. Once connected you can use the asynchronous BeginReceive/EndReceive to read the stream, but since you aren't guaranteed the number of bytes received during any given call, you sometimes have to do multiple BeginReceive/EndReceive cal ...Show All
Visual Studio Express Editions Array Assistance
I have a couple of textboxes for user input. They will put in the number of answers to a specific question. For example TextBox1.Text they enter in 7 for "yes" TextBox2.Text they enter in 4 for "no" So I need to get the answer values into an array. Textbox1 value is "YES", Textbox2 values is "NO" So I need an array that would be "YES, YES, YES, YES, YES, YES, YES, NO, NO, NO, NO" Could someone point me in the right directions. Thank you I have to say I don't really understand what you are trying to do, however if you want an array to hold just the two "values" Yes and No then a boolean array might be sui ...Show All
Software Development for Windows Vista Subscription service and persistence service
I've implemented a custom subscription service that inherits from WorkflowSubscriptionService. I have a state machine workflow that's been published as a web service. In my workflow I have a CallExternalMethod activity that sends an e-mail message, and a HandleExternalMethod activity that listens for incoming e-mail. I'm using my subscription service to get the WorkflowInstanceId based on a message ID that I embed in the e-mail message. I've tested this and traced my workflow and everything works. When my workflow sends out the e-mail, it calls CreateSubscription on the subscription service. When the event is received, it calls DeleteSubscription. This would seem to be the correct behaviour. Then I added the SQL persistence service a ...Show All
SQL Server I can't view my reports!
I can browse my subfolders containing reports in Home, but Internet Explorer displays error message when I press a report. I can use Properties, History and the other tabs, but when I press "View" tab I can only see error message. I have to use external IP address (217.x.x.x/Reports) so I tried to set this IP in ReportManager\RSWebAppConfig file: <UI> <ReportServerUrl>http://217.x.x.x/ReportServer</ReportServerUrl> </UI> But when I try to use local IP address (10.x.x.x/Reports) in my local net, I can't connect to the report server. When I change this to <ReportServerUrl>http://10.x.x.x/ReportServer</ReportServerUrl> I can't view my reports from external host using external I ...Show All
Visual C# Sending XMPP Messages
Thank you all for your helpwith my last question. It was a really big help! Now I have a new one. While I am a big NEWB I need to send xmpp messages in my project. In C sharp, I am having a big issue with making session state or sending messages with xmpp. I need to have my application send xmpp messages. This is similar I believe to the send mail with SMTP I looked at that solution and it just doesnt work for me. I need to do some of the same things but using xmpp instead of SMTP Is it as simple as replacing the smtp in that code with xmpp Or do I need to do something different I want to establish a session, send a message, then close the session. All using xmpp and then within my c sharp application. Does any one know how to do th ...Show All
Windows Forms Scroll event not firing paint event
The paint event won't fire whenever I scroll the pane control, even though I call Invalidate(). I have tried calling Refresh in the event, but to no avail. Am I missing something here using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Reflection; using System.Text; using System.Windows.Forms; namespace TestApp { partial class Form1 : Form { /// <summary> /// Required designer variable. /// </summary> &nbs ...Show All
SQL Server Analysis Services 2005 Lock-up on Calculated Measures
AS 2005/VS 2005 is locking-up when I try to go to the calculated measures tab. It uses some CPU and I think a lot of I/O. My only way out is to close VS. Everything else is working. I looked at the XML and it looked OK to me (naive me). I have written out the xml and created another db/cube and the problem came along with the xml. I'm stuck. Tom OK, I did the previous post off the top of my head and as you must have figured out, you actually need to remove the data under the <MDXScript><Commands><Command><Text> Node to remove the calculation script. The other structure under the MDXScript node is the <CalculationProperties> - this is where translations ...Show All
SQL Server Error Importing SSIS Package
I can't import a package from the SSIS to the file system of my SQL Server Management Studio. Every time i've tried the following message appears. What should i do to correct this problem Any ideas =================================== Invalid access to memory location. (Exception from HRESULT: 0x800703E6) (Microsoft.SqlServer.ManagedDTS) ------------------------------ Program Location: at Microsoft.SqlServer.Dts.Runtime.Application.SaveToDtsServer(Package pPackage, IDTSEvents pEvents, String sPackagePath, String sServerName) at Microsoft.SqlServer.Dts.ObjectExplorerUI.ImportPackageAsAction.ImportPackage(ImportPackageAsForm dlg) Anything worked for me, but i believe tha the instalation of my sql was corrupted. So ...Show All
Windows Forms C# program on Windows XP Pro
Two users of an application I developed have told me that my program does not work properly. Controls are being screwed up, settings don't save, a whole lot of stuff is going wrong. The common link They both use Windows XP Professional. I believe Win XP Pro is the reason why something is wrong, and they both do have .NET Framework 2.0 on their OS, so something with Win XP Pro is causing problems. Why doesn't it work on Win XP Pro Settings problems didn't happen for both XP Pro users actually, but the only case that it did happen was on a Win XP Pro computer. Win 98 did not have settings problems. However, all Pro and 98 users had control problems. I still haven't recieved a response from them about screenshots... ...Show All
Visual Studio 2008 (Pre-release) Positioning a UserControl
I'm trying to position my UserControl on my form. To do so I have a method which picks a position for it. I've verified that my method is in fact returning unique positions, but all my user controls are rendered in the exact center of the window. The relevant code looks like this: MyControl ss = new MyControl (); System.Drawing. Rectangle ssRect = new System.Drawing. Rectangle (10,10,10,10 ); System.Drawing. Point newLoc = PositionPost(ssRect); this .Grid.Children.Add(ss); Canvas .SetLeft(ss, newLoc.X); Canvas .SetTop(ss, newLoc.Y); "this" is my main window which has this hierarchy DocumentRoot --> Canvas --> Grid. I initially did not have a canvas on there at all, but could d ...Show All
