Whenever you see this error message
“Cannot open [Windows service name] on computer “
you need to run the VB.Net code as an “Administrator”. There are 2 solutions available.
Solution 1: Modifying “app.manifest”
- Go to project and select “(Project Name) properties…”
- Click on “View UAC Settings”
- Find the code “<requestedExecutionLevel level=”asInvoker” uiAccess=”false” />”
- Replace the code with “<requestedExecutionLevel level=”requireAdministrator” uiAccess=”false” />”
- You will be able to run your sample code now.
- Later, when the code is compiled to executable (exe), this VB.Net application will also run as “Administrator”.
Solution 2: Running Visual Studio as an “Administrator”
Step 1: Find Visual Studio IDE in program files, for my machine it is located at “C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE”
Step 2: Right click on “vbexpress.exe” and select “Properties”
Step 3: Click on “Compatibility”, then check on “Run this program as an administrator” , then click “OK”
Step 4: Run the program and it will run as administrator.
Step 1: DO NOT connect USB cable or connect modem to PC/server.
Step 2: Install the USB driver first by clicking on ‘run’. USB driver can be downloaded from here — http://www.mobitek.my/download/USB Drivers/USB Driver for MOBITEK S80.zip
Step 3: Click on ‘next’.
Step 4: Check the ‘I accept the terms in the License Agreement’ and click on ‘Next’.
Step 5: Choose the installation folder or path, then click on ‘Next’.
Step 6: Click on ‘Install’.
Step 7: Make sure to restart the machine or computer in order to use the installed driver.
Step 8: After computer is restarted, connect the modem to the computer. In device manager, the connected modem is listed as ‘Sierra Wireless AT Command Port (UMTS)’. In this example, the modem is connected to COM port number 29.
Step by step guide on how to change COM Port number
Step 1: Open device manager, and expand ‘Ports (COM & LPT). I will use MobiGATE SG-B-8-U for this example
Step 2: Select the COM Port you want to change, right click and click on ‘Properties’
Step 3: Click on ‘Port Settings’ tab
Step 4: Click on ‘Advanced’
Step 5: Select the COM Port that is not in use. I will select COM Port 26 for this example.
Step 6: Click on ‘OK’. The COM Port is changed now.