Sharepoint etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Sharepoint etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

28 Kasım 2014 Cuma

Recycle IIS application pool”: The local sharepoint server is not available "


The local Sharepoint server is not available 

Çözümü: Sql Database'inde bulunan  sharepoint_config ve sharepoint_admin database'lerine db_owner rolü verin. Sorunu çözmüş oluruz.

25 Şubat 2014 Salı

Secure Store Service(SSS)

Nedir bu SharePoint Secure Store Servisi ? (SSS)
Sharepoint Secure Store Servisi kullancı isimlerini ,şifrelerini ve kullanıcı yetkilerini güvenli olarak saklanmasını sağlar. Genellikle Business Connectivity Servisleri ,Excel Service Uygulamaları ve Visio Servis Uygulamaları ile bir dataya ulaşmak içinde kullanılır.
Neden ihtiyacımız Var ?

SharePoint Business Uygulamaları’nda Harici bir data kullanmak istediğimizde; Business Connectivity Servisi, Secure Store Servisle beraber kullanabiliriz. BCS ve SSS ‘i SharePoint Admin Center’dan rahatlıkla kontrol edebiliriz. Harici Data Kaynağı(External Data Source) ismi olarak Secure Store Target Uygulaması veya Target Uygulaması olarak adlandırılmıştır. BSC,Target Uygulaması ile bağlantı kurmanı sağlamakta böylece Secure Store Servisi, Referansları veya Dataları Harici Data Kaynağında tutmanı ve yönetmemizi sağlar.
Secure Store Servise Başlayalım mı ?
· Central Administration Sayfasını açalım.
· Manage Sevice on Server’i Tıklayalım.
· Secure Store Servisi Aktif Hale Getirelim yani Başlatalım(Start)
http://tech.just4sharing.com/uploads/SSS/sss_1.png
  • Secure Store Servis Uygulamsı Oluşturalım mı ?
· Sırasıyla Central Administration=>Manage Service Aplications
· Menu’den New Tıklayalaım. Secure Store Service’i Tıklayalım.
http://tech.just4sharing.com/uploads/SSS/sss_2.png
http://tech.just4sharing.com/uploads/SSS/sss_3.png
· Alanları dolduralım.
· Bazı Notlar:
Database ismini kendimiz verebiliriz. Çünkü oluşturduğumuz servis Sql Serverinizda Windows Authentication ile bağlanıp Yeni bir DataBase Kuracaktır.
İstersek Windows Authentication’da kullanmayabiliriz.(Kafanıza göre takılın)
Ama Sharepoint Default Server’ı öneriyorum sıkıntı ile karşılaşmamak için.
Security account olarak SP Admin kullanıcınızı Seçin.
http://tech.just4sharing.com/uploads/SSS/sss_4.png
http://tech.just4sharing.com/uploads/SSS/sss_6.png
· OK Tıklayın. Manage Service Application Sayfasına döneceksiniz.
· Service Uygulaması oluşturma işlemini tamalamış olacaksınız.
http://tech.just4sharing.com/uploads/SSS/sss_7.png
http://tech.just4sharing.com/uploads/SSS/sss_8.png
· Oluşturduğunuz Servis Uygulamsını Tıklayın. Burdaki gibi MySecureStore.
· İlk defa oluşturuyorsak Key(Anahtar) Oluşturmalıyız.
· Örnekteki gibi MySecureStore’ı tıkladıktan sonra SpMenude olan Genarate New Key’i tıklayıp...
· Uygulamamız için Anahtar oluşturuyoruz.
http://tech.just4sharing.com/uploads/SSS/sss_10.png
  • Bu şifre Ne İşe Yarıyor?
Secure Store uygulamasındaki kayıtlı bilginin ,içeriğinin şifrelenmesi(encrypting) için oluşturuyoruz. Sağlam bir şifre koyun unutmayacağınız olsun.
http://tech.just4sharing.com/uploads/SSS/sss_11.png
· Bu işlem bittikten sonra artık Target Application ekleyebiliriz.
  • Secure Store Target Application Oluşturalım mı ?                                                              ,
-Üstteki İşlemler yaptıktan sonra ve New Key olşturduktan sonra Boş bir Sayfa ile karşılaşacağız..(Üstteki Resim)
- Menu’den New Tıklıyoruz.
http://tech.just4sharing.com/uploads/SSS/sss_12.png

 Bazı Notlar:
· Target Applicaiton ID’si Değişmez.Yani EDİT edilemez . Unique’dir.
· E-mail Kendi Mailizi yazın.
· Target Application Type’da uygulama tipinizdir.
Individual: Seçili Bütün Sp kullanıcılarının Map edilebileceği tiptir.
Group: Grup Olarak Sp Kullanıcılarının Map edilebileceği tiptir.
Ticket: Taleple Sp Kullanıcılarının Map edilebileceği tiptir.
Restricted: Target Application’a kendine has ek authentication yürütme sağlanamsıdır.
Normal: Geleneksel method referansları authenticationdan sağlar.
· Sql Server Connectionla ilgilendiğimizden ve windows logon kullacılarını kullandığımızdan Group’u seçiyoruz.
· Aşağıdaki gibi Kullanıcı Grubunun ismini yazıyoruz..(Textbox’un altındaki insan iconuna bas kontrol et J)
http://tech.just4sharing.com/uploads/SSS/sss_14.png
· Ok dedikten sonra...
http://tech.just4sharing.com/uploads/SSS/sss_15.png
· Target Application ID Sütunundan Uygulamamızı Seçiyoruz check ediyoruz.(Yandaki kutuyu tıklayın)
· Menuden Set Credentials’ı Tıklıyoruz.
http://tech.just4sharing.com/uploads/SSS/sss_16.png
· Yukarıdaki gibi (Kendinize göre) Dolduruyoruz...
· Target Applicaiton’ı da böylece oluşturmuş olduk.
  • Oluşturdukta ne oldu ?
 Şimdi Office ve Visio’da Gidip Olşturduğumuz uygulamayla bağlatı kurup içindeki verilere ulaşabilirsiniz.

  •  Nasıl mı?

Örneğin Excel’i açın, yeni workbook yaratın.
Data Sekmesinin altında olan From Other Sources ‘ı tıklayın...
From Sql Server Seçin =>ServerName’i Yazin. Secure Service’i Windows Authetication’la kurulum yaptıysanız onunla başka ise Kullanıcı ismi ve parola..Yukarıdaki gibiyse Windows Authenticationı seçin tıklayın.PivotDatabase’inizi Seçin.Table SEÇİN.
Pivot tablo oluşturun.

25 Kasım 2013 Pazartesi

Sharepoint Central Administration & Web Applications Can't Connect?

If you had problems while you enter Central Administration or if you can't connect & can't Enter Your Site or Site Management


  • First Free Up your Ram 
       Go>Services >SqlServer Service >Restart it..

  • Then iis Reset
       Open CMD and write iisreset \noforce
       Wait until finish

  • Ok go Sp Product Configuration Wizard
       Start >All Programs >Microsoft SP Products >Sp Products Configuration          Wizard>Click
       Wait Until Wizard Finish..

  • After Finished 
       Again CMD>Type iisreset \noforce

Open your Central Administration it'll work... I hope:)

7 Kasım 2013 Perşembe

SharePoint Designer-The server could not complete your request

You can have this error while Open your site at Sharepoint Designer



This means:
  • Anonymous authentication is not configured for the problematic web application in IIS
         Fix: Enable Anonymous authentication in IIS
  • Server is running out of memory
    Fix: Free up memory on the server
How can we free up Memory

Open Task Manager Go Processes  You see Sql Servece(sqlservr.exe) use 19 gb ram of your machine that has 20 gb
So we must restart Sql Service

Go Server Manager=>Configuration=>Services=>Find Sql Server(MSSQLSERVER) service (restart it)=>Stop Service=>Start Again

Now You Solve the problem 

Open Designer and your Site or collection ...Thats all

24 Ekim 2013 Perşembe

Sharepoint Weather Condition Webpart Update By Using UpdatePanel


Html Code

<div class="havadurumu">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <img id="imgsrc" runat="server" width="60" /><span class="havadurumub"><asp:Literal ID="ltrderece" runat="server"></asp:Literal>
                °C</span>
            <br />
            <asp:DropDownList ID="drplist" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drplist_SelectedIndexChanged">
                <asp:ListItem Value="2344116" Text="İstanbul"></asp:ListItem>
                <asp:ListItem Value="2343732" Text="Ankara"></asp:ListItem>
                <asp:ListItem Value="2343733" Text="Antalya"></asp:ListItem>
                <asp:ListItem Value="2343859" Text="Çanakkale"></asp:ListItem>
                <asp:ListItem Value="2343977" Text="Erzurum"></asp:ListItem>
                <asp:ListItem Value="2344117" Text="İzmir"></asp:ListItem>
            </asp:DropDownList>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="drplist" EventName="SelectedIndexChanged"/>
        </Triggers>
    </asp:UpdatePanel>
 
</div>
---------------------------------------------------------------------------------------------

ASP.NET Code

  protected void Page_Load(object sender, EventArgs e)
        {
            raporcek();
        }

        protected void drplist_SelectedIndexChanged(object sender, EventArgs e)
        {
            raporcek();

        }

        private void raporcek()
        {
            try
            {
                string deger = drplist.SelectedValue.ToString();
                XmlTextReader txt = new XmlTextReader("http://weather.yahooapis.com/forecastrss?w=" + deger + "&u=c");
                while (txt.Read())
                {
                    if (txt.Name == "yweather:condition")
                    {
                        string a = txt.GetAttribute("temp");
                        ltrderece.Text = a;

                    }

                }
                string RSS = "http://weather.yahooapis.com/forecastrss?w=" + deger + "&u=c";
                //Change w value to get your location ...

                XmlDocument xDoc = new XmlDocument();
                xDoc.Load(RSS);

                XmlNodeList ItemList = xDoc.GetElementsByTagName("item");
                string Title = ItemList[0].SelectSingleNode("title").InnerText;
                string Description = ItemList[0].SelectSingleNode("description").InnerText;
                string[] resim = Description.Split('"');
                imgsrc.Src = resim[1].ToString();
            }
            catch
            {

            }
        }


So our page not postback,only "update panel" division change...
   

23 Ekim 2013 Çarşamba

SharePoint Webpart Forced Installation (Update)


  1. Remove Webpart from SP..  EnterCentral Administration(as admin)=>System Settings=>Farm Management=>Manage Farm Solutions=>Enter your Webpart"exaple.wsp"=>Retract Solution"=>Select from="All content Web applications"=>Click Ok

  2. Wait until retracting your solution and enter again your solution and Click "remove solution"

  3. Publish your solution in VS 2012 or 2010 to ex:"C:\Users\john\Documents"

  4. After removed your solution Open as Administrator "Sharepoint Management Shell"

  5. First you must add solution to SP server write this code to power shell

  6. Add-SPSolution -Literal "C:\Users\john\Documents\sptest1.wsp"
  7. Now forced install and publish it in to SP
  • Install-SPSolution -Identity  "sptest1.wsp" -WebApplication "http://yoursharepointsite.com" -GACDEployment -Force 
              Or 
  •  Install-SPSolution -Identity "sptest1.wsp" -GACDEployment -Force

FORCE BE WITH YOU...

SharePoint Webpart-Populate Users with Repeater



List<UserInfo> userList = new List<UserInfo>();
 
        protected void Page_Load(object sender, EventArgs e)
        {
            SPWeb web = SPContext.Current.Web;
            SPUserCollection U1 = web.Users; //include allusers and SiteUsers 
            SPUserCollection U2 = web.AllUsers;
            SPUserCollection U3 = web.SiteUsers;
            
            foreach (SPUser user in U2)
            {
                UserInfo cs = new UserInfo();
                cs.name = user.Name;
                cs.mail = user.Email;
 
                userList.Add(cs);
            }
 
            rptUsers.DataSource = userList;
            rptUsers.DataBind();
            
 
        }
    }
 
    class UserInfo
    {
        public string name { getset; }
        public string mail { getset; }
 
    }

Kolay Gelsin...