Show By Category

.NET Service (1) 1909 (1) ACTV (1) adidas (47) adizero (1) Admiral (9) Airness (3) Albania (3) Algeria (3) America Mineiro (1) Angola (1) Anta (2) Argentina (2) Armenia (1) Atletico Goianiense (1) Atletico Paranaense (1) Austria (2) Authentic fit (1) Auto Generate from Access (1) Avai FC (1) avoid (2) Bahia (1) Beijing Guoan (1) Belgium (4) Benin (1) Birmingham City (1) Bolivia (1) Boot Configuration Data missing (1) Bosnia (1) Botafogo (2) Botafogo SP (1) Botswana (2) Brazil (4) Brazilian brand (15) Bulgaria (2) Burkina Faso (2) Burrda (3) Bypass traverse checking (1) Cambodia (1) Cameroon (4) Ceara (1) CEWP (2) Chapecoense (2) Chile (3) China (9) Chinese Brand (4) Chongqing Lifan Dangdai (1) Club Deportivo Universidad Catolica (1) Club Universitario de Deportes (1) Clube de Remo (1) Colombia (6) Colombian Brand (1) Congo DR (1) Congo Rep (1) Copa America (3) Corinthians (1) Coritiba (1) Costa Rica (2) Cote d'Ivoire (3) Coventry City (1) Croatia (2) Crop IFRAME (1) Cruzeiro (2) Crystal Palace (4) css (3) Cuba (1) Cyprus (1) Czech Republic (2) Deleting large libraries (2) Denmark (2) design fault (2) Diadora (1) Dragao Premium (1) eagles (1) Ecuador (3) Ecuadorian Brand (3) Egypt (1) El Salvador (1) electrical (2) electrical problems (2) electrocuted (2) England (3) Errea (3) Espanyol (1) Ethiopia (1) Euro 16 (10) Excel 2010 (3) External Content Type (1) FBT (3) FC Porto (1) Fenerbahce (1) Figueirense (1) Finland (1) Fiorentina (1) Flamengo (1) Flickering (1) Fluminense (1) football (233) Fortuna Dusseldorf (1) France (2) futfanatics.net (1) Gabon (1) Germany (1) Ghana (2) Gogoalshop (2) Goias (1) Granada CF (1) Grand Sport (2) Greece (2) Green (1) Guangzhou Evergrande (1) Guinea (1) Guinea Bissau (1) Haiti (1) Heilongjiang Lava Spring (1) Honduras (1) Hong Kong (1) Hummel (1) Hungary (1) Iceland (3) Icone Sports (2) IE Developer Tools (1) India (1) Indian Brand (1) Internal Field Names (1) Italy (2) Jako (1) Jamaica (2) Japan (1) Javascript (6) Jersey (126) Jiangsu Suning FC (1) Joma (5) Kanxa (1) Kappa (3) Kelme (4) Kenya (1) kitchen extractor fan (3) Korea (1) Laos (1) Le Coq Sportif (1) leak (2) Legea (1) Levante (1) Li Ning (3) Local Security Policy (1) Login Problem (1) Lotto (4) Lupo (2) Macron (9) Mafro (3) Mali (3) Man Utd (1) Marathon Sports (6) Marseilles (1) masterpage (1) Meizhou Hakka (1) Mexico (5) Modena Volley (1) Montenegro (1) Morocco (3) Myanmar (1) N98 (1) Naija (1) Nakal (1) Namibia (1) Napoli (1) Netherlands (1) New Balance (2) Newcastle United (2) Niger (1) Nigeria (4) Nike (32) Nike Brasil (1) Nike Brazil (1) Nike China (12) Nike South Africa (1) North Macedonia (1) Norway (1) O'Neills (1) Oldham Athletic (1) Olympikus (1) Olympique Lyonnais (1) Page Viewer WebPart (1) Panama (2) Para (1) Paraguay (2) Penalty (1) Peru (6) Picture Manager (1) Poland (2) Ponte Preta (1) Portugal (2) Portuguesa RJ (1) problem (2) Puma (46) retro (1) review (111) Romai (2) Romania (1) RT Sports (1) Russia (4) Saeta (1) Sampaio Correa (1) Santarem (1) Santos (2) Sao Paulo FC (1) Sao Raimundo (1) scam (2) Score Draw (1) Search List with Count Displayed (1) Senegal (3) Serbia (1) Server Hardening (1) SESI Sao Paulo (1) Shandong Luneng (1) Shanghai Shenhua (1) Shanghai SIPG (1) SharePoint (61) SharePoint Connect to SQL (2) SharePoint Designer (3) Shenzhen FC (1) shirt (232) Sierra Leone (1) Singaporean Brand (2) Six5Six (1) Slovakia (2) Slovenia (1) Slow right click (1) Sondico (1) South Africa (1) Spain (3) SPS Services (2) Spurs (1) SQL Server 2008 (1) SSP User Profile behaviour (1) Super Bolla (2) Sweden (2) Switzerland (2) Taubate Funvic (1) Team GB (2) techfit (8) Thai Brand (3) Thailand (2) Togo (1) Topper (4) track top (13) Travels (1) Trinidad and Tobago (1) Tunisia (3) Turkiye (1) tyro (1) UAE (1) UB (3) UB Electric (3) Ucan (1) UE Llagostera (1) Uganda (1) Uhlsport (2) Ukraine (1) Umbro (18) Umbro Brazil (6) Under Armour (3) Upload Center (1) Uruguay (1) Vasco Da Gama (1) Venezuela (1) Vietnam (1) Villa Nova (1) Villarreal (1) Vitoria (1) volleyball (6) Vozao (1) Wales (1) Warrix (1) water (2) WebClient (4) WebDav (5) West Ham (2) Where to get buy Iceland football shirt in Reykjavik (1) Win 8 (2) Windows 10 (1) Windows Scheduled Task (1) wish list (1) Workflow (1) World Cup 14 (9) World Cup 18 (5) Wuhan Zall (1) Xinjiang Tianshan Leopard (1) Xtep (1) Yanbian Funde (1) Yemen (1) Zambia (1) Zhejiang Greentown (2) Zimbabwe (1)

Thursday, 28 November 2013

Some SharePoint 2010 css that just baffles me

Whilst trying to apply custom .css styles to a SharePoint 2010 site with a company colour scheme.  When it came to highlighting the current on hover list item.  See picture below.






I just could not find out how to fix the issue where sometimes it appears it is 1px height out therefore the inner cell overlaps the border that is governing the row as shown in the image above.  As you can see it works on some rows but not others as the row height is not constant.


I found the css class was


td.ms-vb-title div.s4-ctx:hover

{
border-color:transparent!important;
background-color:#E7EBD6!important;
}

The background colour and border colour was set accordingly.


The height property would govern the cell.  But setting it to any height would mean it would sometimes fit in some cells but not others.  Setting it to height:auto did not work either.  Umm. 


A rather cop out way was to turn the div.s4-ctx:hover or div.s4-ctx, s4-ctx-show height to 0px.

This meant the highlight shade won't show since the div been set to 0px height, only allowing the onmouseover arrow image to show. 

Friday, 15 November 2013

Creating a copy of your master page that suppresses left menu / quicklaunch

While trying to simply create a SharePoint 2010 master page for a site collection where they simply don't need the quick launch left menus.  This was a great simple guide on how to achieve this.

http://sharepointpromag.com/sharepoint/four-ways-add-or-remove-quick-launch-menu-control

The 4 options were all great.

However, what I ended up doing was a combination of Option 1 and 2.  Which could really be documented as an option 5 approach.

In the site, I disabled the quick launch (Option 1).  This result in it not showing but the area to the left is still a blank block of space.

Then I simply created a copy of the master page that I have been using and called it MyMaster_ForNoLeftMenu

I then also copied our main css file and added 

/* Suppress Left Menu space after turn off Quick Navigation and Tree view at site level settings*/
#s4-leftpanel {
  display:none;
}
.s4-ca {
  margin-left:0px!important;
}

Saved it as myCssNoLeftMenu.css in the Style Library library folder.

In the master page I simply changed the reference to the css registration to the css file with the left hide above

 <SharePoint:CSSRegistration name="/Style Library/css/myCssNoLeftMenu.css" after="corev4.css" runat="server"/>

Now to control this, simply set the site's master page to MyMaster_ForNoLeftMenu after disabling the need to show the quick launch in the site settings. 


Wednesday, 13 November 2013

Annoying File Opening issue with SharePoint Designer 2010

Really annoying feature or bug with SharePoint Designer 2010.  

Sometimes files not refreshing properly and not loading the latest copy saved in SharePoint and also displaying erroneous checked out/in status.

Loads of other people also found the same problem eg here

http://www.tompuleo.com/2009/04/sharepoint-designer-says-i-have-file.html

Found that even clearing the cache folders did not work.

C:\Documents and Settings\username\Application Data\Microsoft\Web Server Extensions\Cache

Win 7 

C:\Users\username\AppData\Local\Microsoft\WebsiteCache

Check in and Check out status still not working.  Latest saved file loads from SharePoint however, it seems like a Control->F5 should also be done by navigating to the folder of where the file is sitting in Designer 2010's navigation node.  At least the latest saved file seems to load.

Made sure all SharePoint Designer settings turned on the Site Collection Admin section.

But the problem does not seem to happen when it was installed on the Server that the Test SharePoint farm was sitting on... ummm

Tried adding SP2 for Designer 2010 to see whether it fixes it.  But still to no avail.  Check in and check out status still erroneous.

Sunday, 10 November 2013

Clearing very large libraries the slow and hard way, but it works and site still accessible

Here is another gotcha that recently Konged us big time.

We had to delete a library that had nearly 90000 items.  To clear it from the 2nd layer recycle bin, it proved to be impossible partly because it always timed out because in our live WFE server, the IIS pool was also set to recycle frequently in order to clear the memory.

Therefore, the alternative was to restore the library.  Then in the site content manager, clear 1000 items at a time.  Then clear the recycle bin and delete 200 at a time.  Well it works and some repetitive stress syndrome started to take shape after a whole weekend spent repeating this admin task.  

NB..  Clearing the items like this at least does not result in the site being down because of the large transactional lock that happens during a big library clearance.  

Friday, 1 November 2013

Information Management Policy Bug before SP3

The information management policy on SharePoint 2007 libraries is a very useful feature.

However, there is a strange bug that has been confirmed by MS Engineers.  If you have more than 1 library yes ONE library in a site collection that has an expiry policy that has a different time span and needs to invoke a SharePoint Designer Workflow when the expiration is due.  It does not work for the second library.

Great what a surprise.  If we need it to work for more than one library, we have to develop a custom .Net component that re-iterate through the library, scan a document's last modified date to see if it is greater than say 6 months.  Then if it is older than 6 months with code fire a workflow that is on the list done in SharePoint Designer.  

However, this is confirm fixed if you have SP3.

Why can't things be easier.  ;-)

Recursive Trans-actional Issue with Workflows that Start on Create and On Modify

In SharePoint Designer if you have a multi-step workflow that fires on creation and on modified on a library. When user initially uploads, they sometimes get an error message. You will find the workflow has fired expectedly behind the scene. It happens occasionally but when it happens it persists, user can return to site and continue and the workflow has fired.

User sees an error message is "The file XXX has been modified by XXX".

Research into this with MS Engineer and the cause was identified as a “Recursive” workflow. It appears that “Item Created/Added” and “Item Modified” events are triggered when the document is uploaded and properties are set. Therefore, the workflow will be invoked twice causing SharePoint some trouble in handling them.  Umm.

The solution was to modify the workflow in SharePoint designer and have a Pause for Duration action at the start of the workflow. It can alleviate the likelihood of the workflow crashing because they are trying to run at the same time after the user uploads - triggering the Add event and when user enters and saves some additional properties for the document in the form and hit OK.

Error Output embedded into file when downloading from SharePoint

Now in SharePoint 2007 there is a strange error.  If user does not have read permission on the main site but only on the library, when they download a .csv file, an error output stream is appended to the download file.  When user opens it in Notepad or Excel it shows the error stream's XML it after the data.

Shown like below is the error that gets shown.  MS Engineers confirms this feature.  Seems to have been fixed for Sharepoint 2010.



<html>
    <head>
        <title>Runtime Error</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

            <h2> <i>Runtime Error</i> </h2></span>

            <font face="Arial Helvetica Geneva SunSans-Regular sans-serif ">

            <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could however be viewed by browsers running on the local server machine.
            <br><br>

            <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

&lt;!-- Web.Config Configuration File --&gt;

&lt;configuration&gt;
    &lt;system.web&gt;
        &lt;customErrors mode=&quot;Off&quot;/&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application's &lt;customErrors&gt; configuration tag to point to a custom error page URL.<br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

&lt;!-- Web.Config Configuration File --&gt;

&lt;configuration&gt;
    &lt;system.web&gt;
        &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;</pre></code>

                  </td>
               </tr>
            </table>

            <br>

    </body>
</html>

Index Dat file 16 meg Gotcha

We had a batch program that copied files using webDav to SharePoint locations.  Sometimes it would completely die and hay we get to hear all the noise.

It turns out its a feature of the webDav process running with the WebClient Services.  It builds a file called Index.dat in the 
C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5 directory

It grows everytime more files are written to location and guess what there is an upper limit of 16 meg for the file.  Therefore, if its over that, the mechanisms crashes and you have to reset the file to get going again.

The following actions need to be performed by a Server Admin. 

1.  Login to the server where the batch program runs from.  Login with the account that the job runs under.  It caches something with the account logged in used to re-start it that suppresses any challenge and response prompt after reactivation.

2.  Open a Cmd Prompt window then run

3.  Run the following command.

net stop webclient 

net stop mrxdav 

4. Then backup the Index.dat file located in C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5

5. Then delete the Index.dat file located in C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5

6.  Run the following command.
net start mrxdav 

net start webclient 

7. Then quick test, On Run command box navigate to the webDav location eg \\xxx.com\test\Shared

Voila Voila, the noise starts dying.

Updated, seems like Win Server 2008 with IE10 and beyond may not suffer this issue anymore. The file names have changed too and the index.dat file is called WebcacheV01.dat.

C:\user\username\AppData\Local\Microsoft\Windows\WebCache\WebcacheV01.dat

There does not seem to be a file size limit to this either. http://www.sevenforums.com/browsers-mail/311407-ie10-uses-webcachev01-dat-vs-index-dat-files-how-clear-delete.html

Workflow to copy attachments from one list to another fails

SharePoint Designer 2007 Workflow hangs when attachment field is attempted to copy over from source to a destination list.  

Tried it in a SharePoint Designer 2007 workflow.  

Been told and confirm it is a feature of SharePoint 2007 by MS Engineer who can replicate and see the system message that attachments cannot be individually copied with SharePoint Designer Workflow.

NB.. So it won't let you just copy the attachments of the list item to another.  Umm and I have told the feature is still the same in SharePoint 2010.

The only way is for a custom .NET programmed solution to achieve the fype of functionality.