<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Adventures in SPWonderland. - SharePoint 2010</title>
    <link>http://blogs.flexnetconsult.co.uk/colinbyrne/</link>
    <description>Taking apart and putting back together</description>
    <language>en-us</language>
    <copyright>Colin Byrne</copyright>
    <lastBuildDate>Sat, 17 Jul 2010 18:30:04 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>webparts@flexnetconsult.co.uk</managingEditor>
    <webMaster>webparts@flexnetconsult.co.uk</webMaster>
    <item>
      <trackback:ping>http://blogs.flexnetconsult.co.uk/colinbyrne/Trackback.aspx?guid=25ce755a-61f2-4d4c-9a45-36a4874de89c</trackback:ping>
      <pingback:server>http://blogs.flexnetconsult.co.uk/colinbyrne/pingback.aspx</pingback:server>
      <pingback:target>http://blogs.flexnetconsult.co.uk/colinbyrne/PermaLink,guid,25ce755a-61f2-4d4c-9a45-36a4874de89c.aspx</pingback:target>
      <dc:creator>Colin Byrne</dc:creator>
      <wfw:comment>http://blogs.flexnetconsult.co.uk/colinbyrne/CommentView,guid,25ce755a-61f2-4d4c-9a45-36a4874de89c.aspx</wfw:comment>
      <wfw:commentRss>http://blogs.flexnetconsult.co.uk/colinbyrne/SyndicationService.asmx/GetEntryCommentsRss?guid=25ce755a-61f2-4d4c-9a45-36a4874de89c</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <span lang="EN-GB">
          <p>
            <font size="2">
            </font> 
</p>
          <p>
When using PerformancePoint Designer in SharePoint 2010 and trying to add a new item
say a SQL Server connection you might get the error 'An Unexpected Error Occured.
An error has been logged for the Administrator'
</p>
          <p>
If you check the Event log on your client machine you should find a more detailed
but equally cryptic error.
</p>
          <p>
            <font size="1">An unexpected error occurred. Error 15568.</font>
          </p>
          <p>
            <font size="1">Exception details:</font>
          </p>
          <p>
            <font size="1">Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are
no addresses available for this application.</font>
          </p>
          <p>
            <font size="1">at Microsoft.SharePoint.SPRoundRobinServiceLoadBalancer.BeginOperation()</font>
          </p>
          <p>
            <font size="1">at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.GetBalancerContext()</font>
          </p>
          <p>
            <font size="1">at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.ExecuteOnChannel(CodeBlock
codeBlock)</font>
          </p>
          <p>
            <font size="1">
            </font> 
</p>
          <p>
            <font size="2">First check in Central Administration check you have a PerformancePoint
Services application created.</font>
          </p>
          <p>
My problem was that although the services application was created the service instance
itself was not running. Goto Central Admin - System Settings - Manage Services on
Server and make sure the PerformancePoint service is started or start it youself.
</p>
          <p>
Why you are not given the option in the Services App to do this automatically
is a mystery to me. 
</p>
          <p>
 
</p>
          <p>
 
</p>
          <p>
 
</p>
        </span>
        <img width="0" height="0" src="http://blogs.flexnetconsult.co.uk/colinbyrne/aggbug.ashx?id=25ce755a-61f2-4d4c-9a45-36a4874de89c" />
      </body>
      <title>SPEndpointAddressNotFoundException error in Dashboard Designer</title>
      <guid isPermaLink="false">http://blogs.flexnetconsult.co.uk/colinbyrne/PermaLink,guid,25ce755a-61f2-4d4c-9a45-36a4874de89c.aspx</guid>
      <link>http://blogs.flexnetconsult.co.uk/colinbyrne/2010/07/17/SPEndpointAddressNotFoundExceptionErrorInDashboardDesigner.aspx</link>
      <pubDate>Sat, 17 Jul 2010 18:30:04 GMT</pubDate>
      <description>&lt;span lang=EN-GB&gt; 
&lt;p&gt;
&lt;font size=2&gt;&lt;/font&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
When using PerformancePoint Designer in SharePoint 2010 and trying to add a new item
say a SQL Server connection you might get the error 'An Unexpected Error Occured.
An error has been logged for the Administrator'
&lt;/p&gt;
&lt;p&gt;
If you check the Event log on your client machine you should find a more detailed
but equally cryptic error.
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;An unexpected error occurred. Error 15568.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;Exception details:&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are no
addresses available for this application.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;at Microsoft.SharePoint.SPRoundRobinServiceLoadBalancer.BeginOperation()&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.GetBalancerContext()&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.ExecuteOnChannel(CodeBlock
codeBlock)&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=1&gt;&lt;/font&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=2&gt;First check in Central Administration check you have a PerformancePoint
Services application created.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
My problem was that although the services application was created the service instance
itself was not running. Goto Central Admin - System Settings - Manage Services on
Server and make sure the PerformancePoint service is started or start it youself.
&lt;/p&gt;
&lt;p&gt;
Why you are not given the option in&amp;nbsp;the Services App to do this automatically
is a mystery to me. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/span&gt;&lt;img width="0" height="0" src="http://blogs.flexnetconsult.co.uk/colinbyrne/aggbug.ashx?id=25ce755a-61f2-4d4c-9a45-36a4874de89c" /&gt;</description>
      <comments>http://blogs.flexnetconsult.co.uk/colinbyrne/CommentView,guid,25ce755a-61f2-4d4c-9a45-36a4874de89c.aspx</comments>
      <category>SharePoint 2010</category>
    </item>
    <item>
      <trackback:ping>http://blogs.flexnetconsult.co.uk/colinbyrne/Trackback.aspx?guid=343879a8-c784-4d93-a1ea-38f68756acbf</trackback:ping>
      <pingback:server>http://blogs.flexnetconsult.co.uk/colinbyrne/pingback.aspx</pingback:server>
      <pingback:target>http://blogs.flexnetconsult.co.uk/colinbyrne/PermaLink,guid,343879a8-c784-4d93-a1ea-38f68756acbf.aspx</pingback:target>
      <dc:creator>Colin Byrne</dc:creator>
      <wfw:comment>http://blogs.flexnetconsult.co.uk/colinbyrne/CommentView,guid,343879a8-c784-4d93-a1ea-38f68756acbf.aspx</wfw:comment>
      <wfw:commentRss>http://blogs.flexnetconsult.co.uk/colinbyrne/SyndicationService.asmx/GetEntryCommentsRss?guid=343879a8-c784-4d93-a1ea-38f68756acbf</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
 
</p>
        <p>
Currently when generating a class with SPMetal from a site that has spaces in it
</p>
        <p>
SPMetal.exe  /web:"http://flxdev2010:19000/PWA/Test Plan" /namespace:ProjectSite
/code:ProjectSite.cs
</p>
        <p>
It will give
</p>
        <p>
          <font color="#ff0000">Error the web at 'http://flxdev2010:19000/PWA/Test Plan' could
not be found</font>
        </p>
        <p>
Oh dear, a schoolboy error.
</p>
        <p>
Now you could use stsadm to dump out the site, delete and reimport, yikes. Or you
can just rename the Url as ServerRelativeUrl is read/write (any outside links
point to the Url will not be fixed up!)
</p>
        <p>
Using a quick console app 
</p>
        <p>
          <br />
            using (<span style="COLOR: #2b91af">SPSite</span> site = <span style="COLOR: blue">new</span> <span style="COLOR: #2b91af">SPSite</span>("<span style="COLOR: #a31515">http://flxdev2010:19000/PWA/Test Plan"</span>))
</p>
        <p>
            using( <span style="COLOR: #2b91af">SPWeb</span> web = site.OpenWeb())
</p>
        <p>
            {<br />
               <span style="COLOR: blue">string</span> s = web.ServerRelativeUrl;<br />
               web.ServerRelativeUrl = <span style="COLOR: #a31515">"/PWA/TestPlan"</span>;<br />
               web.Update();
</p>
        <p>
            }
</p>
        <p>
or that new fangled 4 year old PowerShell thingy
</p>
        <p>
          <span class="content">
            <span style="MARGIN-LEFT: 0px !important" class="block">
              <code class="functions">
                <font color="#996666">Start-SPAssignment</font>
              </code>
              <code class="color1">
                <font color="#996666">-Global</font>
              </code>
            </span>
          </span>
        </p>
        <div class="line alt2">
          <span class="content">
            <span style="MARGIN-LEFT: 0px !important" class="block">
              <code class="variable">
                <font color="#996666">$web</font>
              </code>
              <font color="#996666">
                <code class="plain">= </code>
                <code class="functions">Get-SPWeb</code>
              </font>
              <code class="string">
                <font color="#996666">"</font>
                <a href="http://server/sites/web">
                  <font color="#6699cc">http://flxdev2010:19000/PWA/Test
Plan</font>
                </a>
                <font color="#996666">"</font>
              </code>
            </span>
          </span>
        </div>
        <div class="line alt1">
          <span class="content">
            <span style="MARGIN-LEFT: 0px !important" class="block">
              <font color="#996666">
                <code class="variable">$web</code>
                <code class="plain">.Title
= </code>
                <code class="string">"/PWA/TestPlan"</code>
              </font>
            </span>
          </span>
        </div>
        <div class="line alt2">
          <span class="content">
            <span style="MARGIN-LEFT: 0px !important" class="block">
              <font color="#996666">
                <code class="variable">$web</code>
                <code class="plain">.Update() </code>
              </font>
            </span>
          </span>
        </div>
        <div class="line alt1">
          <span class="content">
            <span style="MARGIN-LEFT: 0px !important" class="block">
              <code class="functions">
                <font color="#996666">Stop-SPAssignment</font>
              </code>
              <code class="color1">
                <font color="#996666">-Global</font>
              </code>
            </span>
          </span>
        </div>
        <p>
SPMetal.exe  /web:"http://flxdev2010:19000/PWA/TestPlan" /namespace:ProjectSite
/code:ProjectSite.cs
</p>
        <p>
now works.
</p>
        <p>
you can change it back once you have the definition.
</p>
        <p>
 
</p>
        <img width="0" height="0" src="http://blogs.flexnetconsult.co.uk/colinbyrne/aggbug.ashx?id=343879a8-c784-4d93-a1ea-38f68756acbf" />
      </body>
      <title>SPMetal doesn't like spaces</title>
      <guid isPermaLink="false">http://blogs.flexnetconsult.co.uk/colinbyrne/PermaLink,guid,343879a8-c784-4d93-a1ea-38f68756acbf.aspx</guid>
      <link>http://blogs.flexnetconsult.co.uk/colinbyrne/2010/07/13/SPMetalDoesntLikeSpaces.aspx</link>
      <pubDate>Tue, 13 Jul 2010 21:28:32 GMT</pubDate>
      <description>&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Currently when generating a class with SPMetal from a site that has spaces in&amp;nbsp;it
&lt;/p&gt;
&lt;p&gt;
SPMetal.exe&amp;nbsp; /web:"http://flxdev2010:19000/PWA/Test Plan" /namespace:ProjectSite
/code:ProjectSite.cs
&lt;/p&gt;
&lt;p&gt;
It will give
&lt;/p&gt;
&lt;p&gt;
&lt;font color=#ff0000&gt;Error the web at 'http://flxdev2010:19000/PWA/Test Plan' could
not be found&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
Oh dear, a&amp;nbsp;schoolboy error.
&lt;/p&gt;
&lt;p&gt;
Now you could use stsadm to dump out the site, delete and reimport, yikes. Or you
can just rename the Url&amp;nbsp;as ServerRelativeUrl is read/write (any outside links
point to the Url will not be fixed up!)
&lt;/p&gt;
&lt;p&gt;
Using a quick console app 
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;using (&lt;span style="COLOR: #2b91af"&gt;SPSite&lt;/span&gt;&amp;nbsp;site&amp;nbsp;=&amp;nbsp;&lt;span style="COLOR: blue"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="COLOR: #2b91af"&gt;SPSite&lt;/span&gt;("&lt;span style="COLOR: #a31515"&gt;http://flxdev2010:19000/PWA/Test&amp;nbsp;Plan"&lt;/span&gt;))
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;using(&amp;nbsp;&lt;span style="COLOR: #2b91af"&gt;SPWeb&lt;/span&gt;&amp;nbsp;web&amp;nbsp;=&amp;nbsp;site.OpenWeb())
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="COLOR: blue"&gt;string&lt;/span&gt;&amp;nbsp;s&amp;nbsp;=&amp;nbsp;web.ServerRelativeUrl;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;web.ServerRelativeUrl&amp;nbsp;=&amp;nbsp;&lt;span style="COLOR: #a31515"&gt;"/PWA/TestPlan"&lt;/span&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;web.Update();
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&lt;/p&gt;
&lt;p&gt;
or that new fangled&amp;nbsp;4 year old PowerShell thingy
&lt;/p&gt;
&lt;p&gt;
&lt;span class=content&gt;&lt;span style="MARGIN-LEFT: 0px !important" class=block&gt;&lt;code class=functions&gt;&lt;font color=#996666&gt;Start-SPAssignment&lt;/font&gt;&lt;/code&gt; &lt;code class=color1&gt;&lt;font color=#996666&gt;-Global&lt;/font&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;div class="line alt2"&gt;&lt;span class=content&gt;&lt;span style="MARGIN-LEFT: 0px !important" class=block&gt;&lt;code class=variable&gt;&lt;font color=#996666&gt;$web&lt;/font&gt;&lt;/code&gt; &lt;font color=#996666&gt;&lt;code class=plain&gt;= &lt;/code&gt;&lt;code class=functions&gt;Get-SPWeb&lt;/code&gt;&lt;/font&gt; &lt;code class=string&gt;&lt;font color=#996666&gt;"&lt;/font&gt;&lt;a href="http://server/sites/web"&gt;&lt;font color=#6699cc&gt;http://flxdev2010:19000/PWA/Test
Plan&lt;/font&gt;&lt;/a&gt;&lt;font color=#996666&gt;"&lt;/font&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class="line alt1"&gt;&lt;span class=content&gt;&lt;span style="MARGIN-LEFT: 0px !important" class=block&gt;&lt;font color=#996666&gt;&lt;code class=variable&gt;$web&lt;/code&gt;&lt;code class=plain&gt;.Title
= &lt;/code&gt;&lt;code class=string&gt;"/PWA/TestPlan"&lt;/code&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class="line alt2"&gt;&lt;span class=content&gt;&lt;span style="MARGIN-LEFT: 0px !important" class=block&gt;&lt;font color=#996666&gt;&lt;code class=variable&gt;$web&lt;/code&gt;&lt;code class=plain&gt;.Update() &lt;/code&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class="line alt1"&gt;&lt;span class=content&gt;&lt;span style="MARGIN-LEFT: 0px !important" class=block&gt;&lt;code class=functions&gt;&lt;font color=#996666&gt;Stop-SPAssignment&lt;/font&gt;&lt;/code&gt; &lt;code class=color1&gt;&lt;font color=#996666&gt;-Global&lt;/font&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;p&gt;
SPMetal.exe&amp;nbsp; /web:"http://flxdev2010:19000/PWA/TestPlan" /namespace:ProjectSite
/code:ProjectSite.cs
&lt;/p&gt;
&lt;p&gt;
now works.
&lt;/p&gt;
&lt;p&gt;
you can change it back once you have the definition.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blogs.flexnetconsult.co.uk/colinbyrne/aggbug.ashx?id=343879a8-c784-4d93-a1ea-38f68756acbf" /&gt;</description>
      <comments>http://blogs.flexnetconsult.co.uk/colinbyrne/CommentView,guid,343879a8-c784-4d93-a1ea-38f68756acbf.aspx</comments>
      <category>SharePoint 2010</category>
    </item>
  </channel>
</rss>