Thursday, May 7, 2009
Code snippets do not appear in Visual Studio
2. Change the language to XML.
3. Add [System]:\Program Files\Microsoft Visual Studio 8\Xml\1033\Snippets\Windows SharePoint Services Workflow to your snippets.
Wednesday, May 6, 2009
Could not access the Search service. SharePoint Configuration Wizard Step 5
1. On the Start menu, click Run. In the Open box, type regedit and thenclick OK.
2. In the Registry Editor, navigate to the following subkey, and then deleteit:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web ServerExtensions\12.0\WSS\Services\Microsoft.SharePoint. Search.Administration.SPSearchService
3. Run the SharePoint Products and Technologies Configuration Wizard again.
Tuesday, April 28, 2009
View GAC Content
Monday, April 20, 2009
ManagementObjectSearcher Access Is Denied
- Open the Computer Management Microsoft Management Console
(MMC) snap-in. - Expand Services and Applications, and then select WMI Control.
- Right-click WMI Control, and then click Properties.
- In the WMI Control Properties dialog box, click the Security tab.
- Expand Root, select CIMV2, and then click Security.
- In the Security dialog box, click Advanced.
- In the Access Control Settings dialog box, click Add. Select localMachineName\ASPNET, and then click OK.
- In the Permission Entry dialog box, make sure that Apply Onto is set to This namespace and subnamespaces.
- Make sure that the Allow 'Enable Account' and Allow 'Remote Enable' check boxes are selected.
- Click OK in each dialog box until you return to the WMI Control Properties dialog box.
- Repeat steps 5 through 10 for other WMI namespaces that
your application will access. - Restart IIS. To do this, run
IISRESET from the command line.
Tuesday, February 17, 2009
A solution to "An unexpected error has occurred" in WSS v3
Debugging SharePoint can be problematic at times, it does like to hide debugging information from you. The bain of my life recently has been “An unexpected error has occurred” with nothing written to log files, trace or the event log.
Normally I can debug the problem with a little commenting & narrowing down of the problem, but today I have managed to get rid of that error screen completely.
The solution is to change a single entry in web.config, by modifying the line…
<SafeMode MaxControls=“200“ CallStack=“false“…
to…
<SafeMode MaxControls=“200“ CallStack=“true“…
You will also need to set custom errors to 'Off' .
<customErrors mode=“Off“/>
You will no longer see the “An unexpected error has occurred” error page and instead you get a lovely ’standard ASP.Net error page’ with the stack trace and everything…development has got that little bit easier!!
Monday, February 9, 2009
Event 10016: The application-specific permission settings do not grant Local Launch permission for the COM Server application
- Go to Start - Run, and type regedit, and press enter
- Locate and then click the following registry subkey:
HKEY_CLASSES_ROOT\CLSID\CLSID value
Note In this subkey, “CLSID value” is a placeholder for the CLSID information that appears in the event error. I.e. in case of Sharepoint, the CLSID would be {61738644-F196-11D0-9953-00C04FD919C1}, - Double-click on AppID in the right pane, .
A dialog box appears. Leave this box open - Go to Start - Run, and type dcomcnfg, and press enter
- In the Component Services window, go to Component Services, go to Computers, go to My Computer, and then click DCOM Config.
- In the details pane, locate the program by using the friendly name, then choose Properties by right clicking on it
- At the Security tab, in the Launch and Activation Permissions area, click Customize, and then click the Edit button.
- Add the Local Service or Network Service account by clicking the Add button, typing the user’s account name (Local Service or Network Service, this depends on whats in your event error), and then clicking OK.
- Select the account name you just added, click to select the Allow check boxes for the following items:
• Local Launch
• Remote Launch
• Local Activation
• Remote Activation - Click OK two times and quit the registry editor
Wednesday, February 4, 2009
Save and retrive the value in ViewState object before the PostBack
ViewState["SomeVar"] = txtFirstName.text;
//Retrieve the value from ViewState object after the PostBack
String strFirstName = ViewState["SomeVar"].ToString();
