Simply map a network drive to: \\YourMachineName\c$\windows\assembly
You must be an Admin for that.
If you want to use LINQ in VB.NET and if the project was upgraded from .NET 2.0 to a newer version please make sure to set
"Option infer" on under compile options. Otherwise you might no be able to use the methods of System.Linq.Enumerable methods like count, average etc.
You might also need the following namespaces depending on your current task:
Imports System.Linq
Imports System.Data.Linq
Imports System.Xml.Linq The rest of the configuration tasks can be found here: http://msdn.microsoft.com/de-de/library/bb546156.aspx
If you work in an international team there may occur problems with the Locale property of datasets.
The error may also occur when running the application: "Cannot add a DataRelation or constraint that has different Locale..."
Often you can not fix this within visual studio but there is a simple way to fix it with notepad:
Search and replace the string "msdata:Locale="de-CH" (example for German-Switzerland) with an empty string using notepad. Simply open the xsd file with notepad.
Make sure to create a backup before. If you have a versioning tool this should be no problem anyway.
Today I needed to strong name an existing third party assembly in order to use it for SharePoint (GAC). I found a great solution from "DoubleJ" at
http://sadeveloper.net/forums/p/1195/5115.aspxI copied it here in order to make sure I does not get lost:
"From a VS.NET command prompt, enter the following:
1. Generate a KeyFile
sn -k keyPair.snk
2. Obtain the MSIL for the provided assembly
ildasm providedAssembly.dll /out:providedAssembly.il
3. Rename/move the original assembly
ren providedAssembly.dll providedAssembly.dll.orig
4. Create a new assembly from the MSIL output and your assembly KeyFile
ilasm providedAssembly.il /dll /key= keyPair.snk
Viola! You now have a strong named assembly."
In order to make sure a button in a WebPart (for example to export data to excel) can be clicked more than once add the following to the OnClientClick event:
buttonExportToExcel.OnClientClick = "_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;";
If you get no results with CONTAINS and wildcard search in MOSS make sure you don't forget the " in the query. The MSDN documentation does not include them.
wrong: select title, author, rank from scope() where CONTAINS (defaultproperties, 'sharep*') order by rank desc
correct: select title, author, rank from scope() where CONTAINS (defaultproperties, '"sharep*"') order by rank desc
I recommend
http://www.codeplex.com/SPSearchBench for testing.
In SharePoint/MOSS server search crawl log you may see "Content for this URL is excluded by the server because a no-index attribute" apear for pages that you would like to be indexed.
What to check in this case:
- Rules
- Robots.txt file
- Page Source (robots meta)
- Page library advanced settings
- 'Site Settings' - 'Search Visibility' under 'Site Administration'
- and last but not least: Make sure you can access the page with the user that you definied as robots/crawler user. See central administration:
/ssp/admin/_layouts/contentaccessaccount.aspx
(log on to your site with this user)
Hint fot German users: The error message in German is "Der Inhalt für diese URL wird wegen eines Nichtindexattributs vom Server ausgeschlossen".
Step 1: Generate a SQL script including data by using
SQL Server Database Publishing Wizard:
The wizard is integrated in Visual Studio Server Manager. Alternate download for older versions:
http://www.microsoft.com/Downloads/details.aspx?displaylang=en&FamilyID=56e5b1c5-bf17-42e0-a410-371a838e570aStep 2: Use
SQLCMD.exe to execute the file.
Normally you can't use the query analyzer because it would throw an exception of type System.OutOfMemoryException:
sqlcmd -S servername -d TargetDBName -i C:\SQLFileGeneratedByDBPubWizard.sql -o C:\DBImportLog.txtHave a look at the log file to see what's going on.
If you can not execute sqlcmd on the target machine you might for example want to write a command line tool that executes the sql commands in smaller blocks.
Exporting a page library in MOSS can be quite tricky. One great alternative ist to use SPIEFolder (
http://www.codeplex.com/SPIEFolder) that can export the files quite fast to a file system folder of your choice as follows.
Example command:
SPIEFolder.exe
http://win2003-moss1/DE/MediaMessageImport Seiten C:\OutputTest export
The files can then easily be reimported for instance via web browser (upload files).
Unfortunately there is no "save list as template" option in MOSS for page libraries. A simple work around is to use the /_layouts/savetmpl.aspx page and add the query string value for list manually. This might finally look something like this:
http://win2003-moss1/DE/MMImport/_layouts/savetmpl.aspx?List=%7B19216C57%2D1B09%2D4CDB%2DB766%2DF0289E3D28F5%7D
I had very high CPU usage for explorer.exe today on a web server running Windows Server 2008. Task manager showed that it was running under the Administrator Account.
I did not log off the last time I worked on this machine and it seams that explorer.exe bug out meanwhile. Thus the solution for now is logging of and log on again. If I find out more or if the problem reoccurs I will post that here.
I
recently had an
issue with a
Delay Activity not firing after I
updated the GAC from Visual Studio 2008.
I
finally found a MS KB
that helped me:
"A
workflow does not resume automatically when a
delay activity is triggered in
Windows SharePoint Services 3.0"
http://support.microsoft.com/kb/953630/en-usSolution for my project:
Restart the Service "Windows SharePoint Services Timer" after an update.P.S. The same trick also helps to solve the "System.IO.FileNotFoundException" issue that can occur when installing a wsp with a feature receiver.