If compiling and running a project or website with a report view component generates the error Method not found: 'Void Microsoft.Reporting.WebForms.ReportViewer.Reset()' or 'Reset' is not a member of 'Microsoft.Reporting.WebForms.ReportViewer':
Download a fresh ReportViewer:
http://www.microsoft.com/downloads/details.aspx?FamilyId=E7D661BA-DC95-4EB3-8916-3E31340DDC2C&displaylang=en
Tuesday, December 23, 2008
ReportViewer.Reset()
Monday, December 22, 2008
Insert Error Using ObjectDatasource and TableAdapter
Using an ObjectDataSource bound to a FormView, when calling the Insert method, the error "ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'methodname' that has parameters:...etc" This error is caused because TableAdapter is tacking the ID field to the end of the calling parameters even though it is not specified in the
To avoid this problem, the ID field must be bound on the page and editable.
Or the ID field should not be on the page at all. In my particular case, this was the problem, since I did not want my users to edit the primary key of course, but I wanted it visible in a label field. Removing the label field, made the error go away.
More observations on this error can be found at http://weblogs.asp.net/bradygaster/archive/2006/09/26/How-to-Bloody-Your-Forehead.aspx
Monday, October 27, 2008
RUNAS syntax
To open a new command window for a different profile, the syntax is:
runas /netonly /user:domain\user "cmd"
or
runas /noprofile /user:domain\user "cmd"
These should prompt for your password and then open a DOS command window in the context of the specified user.
Friday, August 15, 2008
TimeTracker Stater Kit setup
Installing the TimeTracker starter kit required additional steps. Here are all the steps:
- Download and execute time.vsi
- In Visual Studio 2005, select FileNewWeb Site, then select the Time Tracker Starter Kit. (Use File System for Location)
- On local SQL server, create a new database named TimeTracker.
- Run the program C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe.
(Note: You want to run this first so that the next procedure will not generate errors) - Run the procedure timetracker-add.sql (found in the App_Data section in the project) on the database (be sure to select TimeTracker in the database list).
- Change the web.config file in the application to point to the database. Note: There are two connection strings (aspnet_staterKits_TimeTracker and LocalSqlServer)
- Create the three roles Consultant,ProjectManager,ProjectAdministrator. In Visual Studio, select from the top menu Website|ASP.NET Configuration. In Web Stie Admin Tool use Security|Create or Manage Roles
- Run the application and use the Create New User link from the opening login page.
Monday, May 5, 2008
Active Sync
To suppress the ACtive Sync "New Partnership" dialog everytimt the device is set into the cradle, create a .reg file with the contents:
REGEDIT4[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services]"GuestOnly"=dword:00000001
Run the reg file by double clicking it.
http://msdn.microsoft.com/en-us/library/aa911568.aspx
Wednesday, April 23, 2008
Debug problems with Visual Studio 2006
If the debug mode will not hit the breakpoints for a smart device application, the message will be "The breakpoint will not currently be hit. the specified module has not been loaded."
Reinstall the compact Framework 2 on the development PC.
NETCFSetupv2.msi
Thursday, April 3, 2008
'Sys' is undefined error
When loading an Ajax enabled page, you may get the error "'Sys' is undefined." This forum link gives many suggesstions for fixing it.
http://forums.asp.net/t/1040236.aspx?PageIndex=11
Tuesday, March 25, 2008
Update Compact Framework Apps with Web Service
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
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.
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
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