This link describes a method for automatically having Compact Framework applications update themselves on a device through a web service.
http://visualstudiomagazine.com/features/article.aspx?editorialsid=1323
Tuesday, March 25, 2008
Update Compact Framework Apps with Web Service
Labels:
CF Compact Framework Web Service
Monday, March 24, 2008
Running CMD.EXE as Local system account
It can be useful to run the command shell under the Local System account. For example, a service that runs on the local system account needs a certificate installed; this could be performed by opening a cmd window as local system.
Create a .cmd file with the following contents:
sc delete testsvc
sc create testsvc binpath= "cmd /K start" type= own type= interact
sc start testsvc
http://blogs.msdn.com/adioltean/articles/271063.aspx
Labels:
cmd local system account launch
COM objects and ASP
Creating a spreadsheet from an ASP page requires referencing Excel as a COM object on the hosting IIS server. To format the page of the spreadsheet, Excel has to have printers installed, but this can be a problem when called from ASP.
The workaround is to setup printers for the SYSTEM account (which is the account that ASP runs under).
- Ensure that the user you are currently logged into on the server has the desired printers installed.
- Launch the Registry Editor (Regedit.exe).
- Select the following key: HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\Current Version\Devices - From the Registry menu, click Export Registry File.
- In the File Name text box, type c:\Devices.reg.
- Select the following key: HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\Current Version\PrinterPorts - From the Registry menu, click Export Registry File.
- In the File Name text box, type c:\PrinterPorts.reg.
- Select the following key: HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\Current Version\Windows - From the Registry menu, click Export Registry File.
- In the File Name text box, type c:\Windows.reg.
- From the Start button, select Run. Open Devices.reg in Notepad by typing Notepad Devices.reg in Run dialog box.
- Replace the text HKEY_CURRENT_USER with HKEY_USERS\.DEFAULT
- Save the file. Then import it into the registry by double-clicking the file in Windows Explorer.
- Repeat steps 13 through 15 for PrinterPorts.reg and Windows.reg
http://support.microsoft.com/kb/184291
Labels:
ASP system account printer
Subscribe to:
Posts (Atom)