<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Yaz Bunu &#124; Mustafa Alkan</title>
	<atom:link href="http://yazbunu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yazbunu.wordpress.com</link>
	<description>Paylaşmak parantezine alıp sadeleştirmek hayatı /Mustafa Alkan&#62;</description>
	<lastBuildDate>Tue, 02 Aug 2011 11:32:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yazbunu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yaz Bunu &#124; Mustafa Alkan</title>
		<link>http://yazbunu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yazbunu.wordpress.com/osd.xml" title="Yaz Bunu &#124; Mustafa Alkan" />
	<atom:link rel='hub' href='http://yazbunu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Web Deploy hatası \ (503) Server Unavailable</title>
		<link>http://yazbunu.wordpress.com/2011/05/11/web-deploy-hatasi-503-server-unavailable/</link>
		<comments>http://yazbunu.wordpress.com/2011/05/11/web-deploy-hatasi-503-server-unavailable/#comments</comments>
		<pubDate>Wed, 11 May 2011 17:56:18 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2011/05/11/web-deploy-hatasi-503-server-unavailable/</guid>
		<description><![CDATA[Önceki yazılardan olan Web deployment konusundan sonra sıkça mail aldığım ve sıkça karşılaşılan bir hata olan; &#160; The response header &#8216;MSDeploy.Response&#8217; was &#8221; but &#8216;v1&#8242; was expected.The remote server returned an error: (503) Server Unavailable &#160; hatasına kısaca açıklık getirmek istiyorum. Bu hatanın sebebi deployment servisinin bir şekilde durması ve bu nedenle gelen publish isteklerini [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=420&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Önceki yazılardan olan <a title="yazbunu mustafa alkan" href="https://yazbunu.wordpress.com/2011/04/27/visual-studio-2010-web-deploy-konfigurasyonlari/" target="_blank">Web deployment</a> konusundan sonra sıkça mail aldığım ve sıkça karşılaşılan bir hata olan;</p>
<blockquote><p><strong></strong>&nbsp;</p>
<p><strong>The response header &#8216;MSDeploy.Response&#8217; was &#8221; but &#8216;v1&#8242; was expected.The remote server returned an error: (503) Server Unavailable</strong></p>
<p><strong></strong>&nbsp;</p>
</blockquote>
<p>hatasına kısaca açıklık getirmek istiyorum. Bu hatanın sebebi deployment servisinin bir şekilde durması ve bu nedenle gelen publish isteklerini cevaplamamasıdır.</p>
<p>Çözümüyse command prompt ekranında;</p>
<p><strong>-net start msdepsvc </strong></p>
<p>komutuyla servisi calıştırmaktır.</p>
<p>&nbsp;</p>
<p><a href="http://yazbunu.files.wordpress.com/2011/05/image_thumb_55860458.jpg"><IMG style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image_thumb_55860458" border="0" alt="image_thumb_55860458" src="/Users/mustafaa.ATPTECH/AppData/Local/Temp/WindowsLiveWriter-429641856/supfilesBC9B299/image_thumb_55860458_thumb[1].jpg" width="584" height="173"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/420/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=420&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2011/05/11/web-deploy-hatasi-503-server-unavailable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Studio 2010, Web Deploy Konfigurasyonları</title>
		<link>http://yazbunu.wordpress.com/2011/04/27/visual-studio-2010-web-deploy-konfigurasyonlari/</link>
		<comments>http://yazbunu.wordpress.com/2011/04/27/visual-studio-2010-web-deploy-konfigurasyonlari/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 06:16:47 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[iis7]]></category>
		<category><![CDATA[internet information server]]></category>
		<category><![CDATA[visual studio 2010]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2011/04/27/visual-studio-2010-web-deploy-konfigurasyonlari/</guid>
		<description><![CDATA[Profil bazlı web deployment imkanı Visual Studio 2010 un en büyük getirilerinden. Bu aşamayı kullanabilmek için IIS kurulu web sunucunuzun yapılandırmasına bağlı olarak izlemeniz gereken birkaç farklı senaryo mevcut. Bu senaryoları tüm detaylarıyla anlatan bağlantıları paylaşalım; &#160; Automating Deployment with Microsoft Web Deploy This is the twenty-eighth in a series of blog posts I’m doing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=418&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Profil bazlı web deployment imkanı Visual Studio 2010 un en büyük getirilerinden. Bu aşamayı kullanabilmek için IIS kurulu web sunucunuzun yapılandırmasına bağlı olarak izlemeniz gereken birkaç farklı senaryo mevcut. </p>
<p>Bu senaryoları tüm detaylarıyla anlatan bağlantıları paylaşalım;</p>
<p>&nbsp;</p>
<p><strong>Automating Deployment with Microsoft Web Deploy </strong><br />
<blockquote>
<p>This is the twenty-eighth in a series of blog posts I’m doing on the VS 2010 and .NET 4 release.
<p>This blog post continues a series of posts I’m doing that cover the new improvements we made around web deployment.&nbsp; In my first post in the deployment series I provided an overview of the new VS 2010 Web Deployment features.
<p><a title="yazbunu" href="http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx" rel="nofollow" target="_blank">http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx</a></p>
</blockquote>
<p><strong>Configuring Remote Administration and Feature Delegation in IIS 7 </strong><br />
<blockquote>
<p>IIS 7 (IIS 7.0 on Windows Server® 2008 or IIS 7.5 on Windows Server 2008 R2) provides administrators and developers with a new configuration system that is accessible, extensible and distributable. The new XML-based format allows for easy configuration of the modules and features available in IIS 7. It also enables granular control of the locations at which settings for individual features can be configured (for example, at the server level in the applicationHost.config file, or at a site or an application level in a Web.config file).
<p><a title="http://learn.iis.net/page.aspx/159/configuring-remote-administration-and-feature-delegation-in-iis-7/" href="http://learn.iis.net/page.aspx/159/configuring-remote-administration-and-feature-delegation-in-iis-7/" rel="nofollow" target="_blank">http://learn.iis.net/page.aspx/159/configuring-remote-administration-and-feature-delegation-in-iis-7/</a></p>
</blockquote>
<p><strong>Configure the Web Deployment Handler </strong><br />
<blockquote>
<p>This guide provides a basic overview of the steps to configure the Web Deployment handler on your hosted server and test that a user can deploy applications to a Web site. This setup will be using the information in this document to install the Web Deployment Tool onto a new server and configure recommended settings.
<p><a title="http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/" href="http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/" rel="nofollow" target="_blank">http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/</a></p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/418/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=418&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2011/04/27/visual-studio-2010-web-deploy-konfigurasyonlari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>
	</item>
		<item>
		<title>Crm 2011 Early Bound Programlama Hatası &#8211; Unable to cast object of type &#8216;Microsoft.Xrm.Sdk.Entity&#8217;</title>
		<link>http://yazbunu.wordpress.com/2011/04/26/crm-2011-early-bound-programlama-hatasi-unable-to-cast-object-of-type-microsoft-xrm-sdk-entity/</link>
		<comments>http://yazbunu.wordpress.com/2011/04/26/crm-2011-early-bound-programlama-hatasi-unable-to-cast-object-of-type-microsoft-xrm-sdk-entity/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 21:59:43 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[dynamics crm]]></category>
		<category><![CDATA[dynamics crm sdk]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[crm 2011]]></category>
		<category><![CDATA[crm 2011 sdk]]></category>
		<category><![CDATA[xrm]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2011/04/26/crm-2011-early-bound-programlama-hatasi-unable-to-cast-object-of-type-microsoft-xrm-sdk-entity/</guid>
		<description><![CDATA[Crm 2011 sdksının sunduğu programla yapılarından biri Early Bound olarak adlandırılmakta ve CrmSvcUtil aracını kullanarak Organizasyonun obje olarak bir çıktısının alınması temeline dayanmaktadır. Bu biçimde bir kullanım esnasında çıktısını aldığınız organizasyon varlıkları (Entity) üzerinde benim örneğimde olacağı üzere linq sorgularında cast hatası almanız olası ve çözülmesi çok basit, basit olduğu kadar da ince bir detayda [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=417&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Crm 2011 sdksının sunduğu programla yapılarından biri Early Bound olarak adlandırılmakta ve CrmSvcUtil aracını kullanarak Organizasyonun obje olarak bir çıktısının alınması temeline dayanmaktadır.</p>
<p>Bu biçimde bir kullanım esnasında çıktısını aldığınız organizasyon varlıkları (Entity) üzerinde benim örneğimde olacağı üzere linq sorgularında cast hatası almanız olası ve çözülmesi çok basit, basit olduğu kadar da ince bir detayda gizli. Nedir bu detay ;</p>
<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#008000">ClientCredentials c = new ClientCredentials();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c.Windows.ClientCredential = new System.Net.NetworkCredential(userName, userPassword, userDomain); </font>
<p><font color="#008000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OrganizationServiceProxy proxy = new OrganizationServiceProxy(new Uri(organizationUri), null, c, null);<br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy.EnableProxyTypes(); </strong></font>
<p><font color="#008000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //create organization service with layer of proxy<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this._service = (IOrganizationService)proxy;</font></p>
</blockquote>
<p>kalın harflerle işaretlediğim üzere OrganizationServiceProxy nesnesinden türettiğimiz proxy objesinin EnableProxyTypes() konfigürasyonunu yapmak belirtilen hatadan kurtulmamız için yeterli.</p>
<p>Mevzu bahis hataları tam olarak hatırlarsak;</p>
<ul>
<ul>
<ul> Object of type Microsoft.Xrm.Sdk.Entity cannot be converted to type Xrm.abdf</LI> Message = Unable to cast object of type &#8216;Microsoft.Xrm.Sdk.Entity&#8217; to type Xrm.abdf</LI></ul>
</ul>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/417/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=417&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2011/04/26/crm-2011-early-bound-programlama-hatasi-unable-to-cast-object-of-type-microsoft-xrm-sdk-entity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net Web Formları arasında alternatif veri taşıma y&#246;ntemi</title>
		<link>http://yazbunu.wordpress.com/2010/10/18/asp-net-web-formlari-arasinda-alternatif-veri-tasima-yntemi/</link>
		<comments>http://yazbunu.wordpress.com/2010/10/18/asp-net-web-formlari-arasinda-alternatif-veri-tasima-yntemi/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 14:46:15 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[web form]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/10/18/asp-net-web-formlari-arasinda-alternatif-veri-tasima-yntemi/</guid>
		<description><![CDATA[İki web formu arasında veri taşımak kullanılan yöntemler açısından genelde kararsız kalınan ve kolaya kaçmakla birlikte güvenlik açıklarına sebebiyet veren konuların başında gelir. Klasik olarak kullanılan yöntem html form dahilinde oluşturulmuş formlarla post etmek ve diğer formda bu değerleri karşılamak. Ya da yazılacak özel bir sınıfa formdan gelen değerleri yazdırıp bir eventle kendi sayfasında ya [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=414&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>İki web formu arasında veri taşımak kullanılan yöntemler açısından genelde kararsız kalınan ve kolaya kaçmakla birlikte güvenlik açıklarına sebebiyet veren konuların başında gelir. </p>
<p>Klasik olarak kullanılan yöntem html form dahilinde oluşturulmuş formlarla post etmek ve diğer formda bu değerleri karşılamak. Ya da yazılacak özel bir sınıfa formdan gelen değerleri yazdırıp bir eventle kendi sayfasında ya da bilgilerin gönderileceği ikinci bir formda karşılayarak okumak ve yorumlamaktır. </p>
<p>Bu klasik kullanımlara ek olarak farklı bir methodu kısaca anlatmaya çalışacağım. </p>
<p>Öncelikli olarak System.Web.UI.Page dan türeyen kendimize has bir web.ui sınıfı olşuturalım ve oluşturacağımız web formları bu sınıftan türetelim. Oluşturduğumuz bu sınıfa PostValues adı altında bir Dictionary tipinde özellik ekledim. Eklediğim bu özelliği formlar arasında veri taşırken kullanacağım. Peki bu nasıl olacak ? İnceleyelim; </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/10/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="yaz bunu mustafa alkan" border="0" alt="yaz bunu mustafa alkan" src="http://yazbunu.files.wordpress.com/2010/10/image_thumb.png?w=370&#038;h=184" width="370" height="184" /></a> </p>
<p>Veri girişi yapılacak formu mainform, veri gönderilecek formu da subform olarak kabul edersek, SubForm.aspx dosyamın içine; </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/10/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="yaz bunu mustafa alkan" border="0" alt="yaz bunu mustafa alkan" src="http://yazbunu.files.wordpress.com/2010/10/image_thumb1.png?w=432&#038;h=40" width="432" height="40" /></a> </p>
<p>şeklinde bir tanım yapıyorum. Bu tanımla birlikte hangi formdan hangi sayfadan gelecek verileri kabul edeceğimi tanımlamış oluyorum. Tanımladığım bu yapı sayesinde kod tarafında şöyle bir erişime sahip oluyorum; </p>
<blockquote><p><strong><font color="#008000">Dictionary&lt;string, string&gt; postValues = PreviousPage.PostValues; </font></strong></p>
</blockquote>
<p>Tanımlamış olduğum özelliğe direk erişim sağlamış oluyorum. </p>
<p>Bu özelliği ana formda istediğim güvenlik önlemlerini alarak istediğim validasyonları kullanarak doldurabilir daha sonra da ikinci formda kontrol edebilirim. Peki bu post değerlerini hangi aşamada dolduracağım ? Bunun için önerebileceğim en doğru yer buton un Click eventidir. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/10/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/10/image_thumb2.png?w=370&#038;h=96" width="370" height="96" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=414&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/10/18/asp-net-web-formlari-arasinda-alternatif-veri-tasima-yntemi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/10/image_thumb.png" medium="image">
			<media:title type="html">yaz bunu mustafa alkan</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/10/image_thumb1.png" medium="image">
			<media:title type="html">yaz bunu mustafa alkan</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/10/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net MVC 2 &#8211;9- Test s&#252;re&#231;leri, Unit Testing</title>
		<link>http://yazbunu.wordpress.com/2010/09/21/asp-net-mvc-2-9-test-sreleri-unit-testing/</link>
		<comments>http://yazbunu.wordpress.com/2010/09/21/asp-net-mvc-2-9-test-sreleri-unit-testing/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 13:28:37 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[asp.net c# framework]]></category>
		<category><![CDATA[ASP.NET MVC Framework]]></category>
		<category><![CDATA[mvc]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/09/21/asp-net-mvc-2-9-test-sreleri-unit-testing/</guid>
		<description><![CDATA[Test işlemleri daha önce profile serimizde ele aldığımız üzere genelde ertelenen bir aşamadır. Ancak güncellenen yazılım teknikleriyle birlikte test süreçleri daha kolay hale getirilmekte, test için geliştirilmiş araçlar ya da sihirbazlar aracılığıyla ek efor gerektirmeden dahil edilebilmektedir. Bu gelişmeler ertelenen test süreçlerini daha önemli ve vazgeçilmez hale getirmiştir. Test süreçlerinin kazandığı önem ve kolaylık boyutundan, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=407&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Test işlemleri daha önce profile serimizde ele aldığımız üzere genelde ertelenen bir aşamadır. Ancak güncellenen yazılım teknikleriyle birlikte test süreçleri daha kolay hale getirilmekte, test için geliştirilmiş araçlar ya da sihirbazlar aracılığıyla ek efor gerektirmeden dahil edilebilmektedir. Bu gelişmeler ertelenen test süreçlerini daha önemli ve vazgeçilmez hale getirmiştir. Test süreçlerinin kazandığı önem ve kolaylık boyutundan, belli bir senaryo dahilinde test edilmesi hayli zor olan Asp.Net te Mvc yapılanmasına uyum gösterek etkilenmiştir. </p>
<p>Yeni bir mvc projesi oluşturduğunuzda unit test seçeneğini de birlikte sunmakta ve iki proje şeklinde yeni solution açılmaktadır. Ancak başlangıçta bu seçeneği seçmeyip sonradan eklemek isterseniz izlemeniz gereken yol; add new project\yeni proje ekle diyerek test tipinde bir projeyi solution&#8217;a eklemektir. Eklediğimiz unit test projesinin esas projemizle paralel ve anlaşılır durumda olması için test sınıflarını ekleyeceğimiz klasörleri de aynı adlarla vermek doğru olacaktır. Klasör içine ekleyeceğimiz test sınıf adlarınını sonunaysa test eklemek referanslar arasındaki karışıklığı giderecek bir adaım olacaktır. Test sınıfları da ana proje sınıfları da aynı adda olması durumunda solution anlaşılırlığını yitirecektir. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/09/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb.png?w=162&#038;h=179" width="162" height="179" /></a> <a href="http://yazbunu.files.wordpress.com/2010/09/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb1.png?w=244&#038;h=180" width="244" height="180" /></a>&#160; </p>
<p>&#160;</p>
<p><a href="http://yazbunu.files.wordpress.com/2010/09/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb2.png?w=162&#038;h=137" width="162" height="137" /></a> <a href="http://yazbunu.files.wordpress.com/2010/09/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb3.png?w=167&#038;h=108" width="167" height="108" /></a> </p>
<p>Klasör yapılarını kurduktan sonra Models klasörüne sağ tıklarak new test diyalog penceresiyle birlikte yeni bir unit test sınıfı ekliyoruz. Test sınıfı ekledikten sonra test sınıfımız otomatik olarak açılacak ve ekranda [TestClass], [TestMethod] gibi attributlere sahip kısımlar göreceğiz. TestClass test aşamalarını yer alacağı metodların yani TestMethod özelliğindeki metodların yer alacağı ve aşama aşama kontrollerin yapılacağı kısımlardır. Buradaki aşamalar geliştiricinin ya da analistini çizdiği senaryoya göre farklı şekilde tasarlanabilir. Test senaryomda ilk önce boş girişler yapılarak yeni bir kayıt oluşturmayı daha sonraysa string değerlere integer değerler, integer değerlere de string değerler vererek sonuçlarını gözlemleyeceğim. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/09/image4.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb4.png?w=244&#038;h=206" width="244" height="206" /></a> <a href="http://yazbunu.files.wordpress.com/2010/09/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb5.png?w=244&#038;h=160" width="244" height="160" /></a> </p>
<p>Öncelikle yeni bir kullanıcı sınıfı oluşturarak belirlediğim senaryoya göre bu sınıfa değerler atıyorum. Atadağım değerler sonrasında modelin IsValid propertysini test methodunun içinde sınmaya yapacak olan Assert.IsFalse fonksiyonuna gönderiyorum. Bu fonksiyon test aşamalarını senaryo dahilindeki sıraya göre çalıştırıp sonuçlarını ekrana yazacaktır. Test methodlarını oluşturduktan sonra CTRL R, A kısayoluyla ya da test-&gt;run-&gt;All test projects i seçerek test sürecimizi başlatıyoruz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/09/image6.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb6.png?w=244&#038;h=130" width="244" height="130" /></a> <a href="http://yazbunu.files.wordpress.com/2010/09/image7.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb7.png?w=359&#038;h=90" width="359" height="90" /></a> </p>
<p>Test süreci başladığında göreceğiniz üzere tüm test aşamaları ekranda verdiğimiz method isimleriyle listelenecek ve sonuçları yazılacaktır. Küçük ölçekli projelerde sorun olmasa da büyük ölçekli projelerde hata veren aşamaya daha rahat ulaşım için method isimlerini anlaşılır vermek doğru bir adım olacaktır. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/09/image8.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb8.png?w=244&#038;h=110" width="244" height="110" /></a> <a href="http://yazbunu.files.wordpress.com/2010/09/image9.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb9.png?w=244&#038;h=106" width="244" height="106" /></a> <a href="http://yazbunu.files.wordpress.com/2010/09/image10.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yaz bunu" border="0" alt="mustafa alkan yaz bunu" src="http://yazbunu.files.wordpress.com/2010/09/image_thumb10.png?w=244&#038;h=63" width="244" height="63" /></a> </p>
<p>Controller sınıfımız için kurgulanan senaryoda ActionResult olarak dönen bir sonucu ViewResult olarak göstermeye çalışmayı ve ayrıca sisteme olmayan bir id ye ait kaydı göstermeyi denemek istiyorum. Bunun iiçin gerekli test methodunu yazara sonuçları gözlemlediğimde Failed hatasıyla birlikte aşamayı geçemedğimi test sonuçlarından görebiliyorum.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=407&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/09/21/asp-net-mvc-2-9-test-sreleri-unit-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb1.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb2.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb3.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb4.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb5.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb6.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb7.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb8.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb9.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/09/image_thumb10.png" medium="image">
			<media:title type="html">mustafa alkan yaz bunu</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net MVC 2 &#8211;8- G&#252;venlik kontrolleri \ Authorizing, Role Management</title>
		<link>http://yazbunu.wordpress.com/2010/07/15/asp-net-mvc-2-8-gvenlik-kontrolleri-authorizing-role-management/</link>
		<comments>http://yazbunu.wordpress.com/2010/07/15/asp-net-mvc-2-8-gvenlik-kontrolleri-authorizing-role-management/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 12:41:15 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[ASP.NET MVC Framework]]></category>
		<category><![CDATA[contoller]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/07/15/asp-net-mvc-2-8-gvenlik-kontrolleri-authorizing-role-management/</guid>
		<description><![CDATA[Genel Asp.net uygulamalarında olduğu gibi Asp.NET MVC Frameworkünde de üzerinde önemle durulan konulardan biridir güvenlik unsurları. Şu ana kadar yazdığım makaleler ve örneklerde herhangi bir kimlik doğrulama ve rol kısıtlaması olmaksızın her aksiyona izin vermiştik. Şimdi Asp.NET MVC Frameworkünün nin imkan verdiği doğrultuda güvenlik kısıtlaması ve kontrolü konularını açıklamaya çalışacağım. Controller katmanları içerisinde yer alan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=384&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Genel Asp.net uygulamalarında olduğu gibi Asp.NET MVC Frameworkünde de üzerinde önemle durulan konulardan biridir güvenlik unsurları. Şu ana kadar yazdığım makaleler ve örneklerde herhangi bir kimlik doğrulama ve rol kısıtlaması olmaksızın her aksiyona izin vermiştik. Şimdi Asp.NET MVC Frameworkünün nin imkan verdiği doğrultuda güvenlik kısıtlaması ve kontrolü konularını açıklamaya çalışacağım. </p>
<p>Controller katmanları içerisinde yer alan yeni kayıt ekleme ve düzeltme işlemlerini başlangıç için seçebiliriz. Örneklerde de görüleceği üzere mvc yapısı itibariyle bu işlemlerin ayrı katmanda yer almasının ne kadar fonksiyonel olduğunu anlayacağız. Sadece üye olanların bir formu görüntelemesine izin verme kısıtlamasını, ilgili fonksiyonun başına Authorize parametresini ekleyerek sağlayabilmek mümkün. Öte yandan yeni bir kayıt oluşturma aşamasındaki işlevselliğiyse Post tanımlamasının yanında yine Authorize parametresini vererek kolay bir şekilde sağlamak mümkün. Ayrıca sayılan bu iki işlemi de genel üyeliğe zorunlu hale getirdiğimiz gibi kullanıcı bazında kısıtlama yapmakta mümkün. Authorize tanımlamasına kullanıcı adlarını göndererek (Örn: Admin) sözkonusu işlemi sadece belirtilen kullanıcının gerçekleştirmesine izin verebiliriz. Kullanıcı bazında olduğu gibi mevzubahis kısıtlamayı Rol bazında da yaparak tüm bir departmana iş kolundaki çalışanlara yetki tanımı yapılabilir.&#160; (Tüm bu açıklamalara ait ekran görüntüleri aşağıda takip edilebilir)</p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb.png?w=244&#038;h=58" width="244" height="58" /></a> <a href="http://yazbunu.files.wordpress.com/2010/07/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb1.png?w=244&#038;h=94" width="244" height="94" /></a> </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb2.png?w=244&#038;h=63" width="244" height="63" /></a> <a href="http://yazbunu.files.wordpress.com/2010/07/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb3.png?w=244&#038;h=60" width="244" height="60" /></a> </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image4.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb4.png?w=244&#038;h=56" width="244" height="56" /></a> </p>
<p>Kullanıcı bazındaki kısıtlamalarda özellikle de sözkonusu kısıtlama, kaydın detayını görmek ve güncellemekse bazı sıkıntıları beraberinde getirebilir. En basit olarak kendi eklediğim bir kaydın detayını kullanıcı adım Users listesinde olmadığı için görüp üzerinde değişiklik yapamayabilirim. Peki bu sıkıntıyı nasıl aşabiliriz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;margin:0 10px 10px 0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" align="left" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb5.png?w=180&#038;h=104" width="180" height="104" /></a> Öncelikle kısa bir bilgi vermek gerekirse oluşturduğumuz mvc projesinde kullanıcı kaydı oluşturma saklama ve login işlemleri AccountController olarak Asp.Net in MemberShip apisi züerinden oluşturulmuş bir şekilde gelmektedir. Bu yapı yardımıyla yeni bir kullanıcı açabilir açtığımız kullanıcıyla sisteme giriş yapabiliriz. Generate olan bu database yapısını ve kayıtları görmek için tüm dosyaları göster seçeneğini işaretlediğimiz takdirde App_Data klasörü altında görebiliriz. Peki bu önbilgiyi neden verdik. Sisteme giriş yaptığımızda Asp.Net apisinin sağladığı User.Identity.Name şeklinde giriş yapan kullanıcı bilgisini okuyabilir ve mevcut kullanı kimliğine ulaşabiliriz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image6.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb6.png?w=345&#038;h=114" width="345" height="114" /></a> </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image7.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb7.png?w=343&#038;h=183" width="343" height="183" /></a> </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/07/image8.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="mustafa alkan yazbunu.wordpress.com" border="0" alt="mustafa alkan yazbunu.wordpress.com" src="http://yazbunu.files.wordpress.com/2010/07/image_thumb8.png?w=344&#038;h=222" width="344" height="222" /></a> </p>
<p>Böylelikle kurguladığımız bu yapıda, ulaştığımız bu kimlik bilgilerini yeni kayıt girerken kaydettiğimiz takdirde düzenleme ve görüntüleme isteklerinde, isteği yapan kullanıcıyla aynıysa izin ver şeklinde bir yapı kurabiliriz. Böylelikle kod tarafında kullanıcı listesi saklamak yerine daha güvenli ve kontrollü bir güvenlik kısıtlama yapısı kurgulayabiliriz. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=384&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/07/15/asp-net-mvc-2-8-gvenlik-kontrolleri-authorizing-role-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb1.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb2.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb3.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb4.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb5.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb6.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb7.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/07/image_thumb8.png" medium="image">
			<media:title type="html">mustafa alkan yazbunu.wordpress.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net MVC 2 &#8211;7- &#214;zelleştirilmiş Sayfalandırma\Custom Paging</title>
		<link>http://yazbunu.wordpress.com/2010/06/25/asp-net-mvc-2-7-zellestirilmis-sayfalandirmacustom-paging/</link>
		<comments>http://yazbunu.wordpress.com/2010/06/25/asp-net-mvc-2-7-zellestirilmis-sayfalandirmacustom-paging/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 08:06:03 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[ASP.NET MVC Framework]]></category>
		<category><![CDATA[contoller]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/06/25/asp-net-mvc-2-7-zellestirilmis-sayfalandirmacustom-paging/</guid>
		<description><![CDATA[Mvcye kolayca ekleyebileceğimiz özellikleri anlatmaya devam ediyoruz. Mvc olduğu kadar Linq yapısının da avantajıyla IQueryable interface yapısıyla viewlari bölümlendirebilir sayfalandırma\paging yapabilirsiniz. Öncelikle bugün kullanıcıları listelemek için bir fonksiyon ekledik. Bu fonksiyonumuz dönüş tipini kayıtlar içerisinde sıralama ve atlama yapabilmek için IQuerayable olarak belirledik. Kurguladığımız bu yapı itibariyle Skip() ve Take() adlarındaki iki fonksiyona dikkat etmiş [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=365&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mvcye kolayca ekleyebileceğimiz özellikleri anlatmaya devam ediyoruz. Mvc olduğu kadar Linq yapısının da avantajıyla IQueryable interface yapısıyla viewlari bölümlendirebilir sayfalandırma\paging yapabilirsiniz. </p>
<p>Öncelikle bugün kullanıcıları listelemek için bir fonksiyon ekledik. Bu fonksiyonumuz dönüş tipini kayıtlar içerisinde sıralama ve atlama yapabilmek için IQuerayable olarak belirledik. Kurguladığımız bu yapı itibariyle <strong>Skip()</strong> ve <strong>Take()</strong> adlarındaki iki fonksiyona dikkat etmiş olabilirsiniz. Bu iki fonksiyon neticesinde IQueryable yapısı paraleleindeki sayfalandırmayı yapımıza uyarlıyoruz. <strong>Skip()</strong> baştan itibaren es geçilmesi gereken kayıt sayısını,<strong> Take()</strong> ise bu noktadan itibaren kaç kayıt alacağımızı belirtmemiz için kullanılan fonksiyonlardır. Kullanıcı sayısı 10 dan fazla olması durumunda sonraki sayfalara dallanma işlemi gerçekleşecektir. Bu yapıyı kurgulayarak gerekli düzenlemeyi Controller nesnemizin içindeki Index() aşamasına yerşetiriyoruz. Bu özelliği ana sayfa düşündüğümüz için böyle bir düzenleme yaptık ama ayrı bir view ve farklı bir sayfada gösterilmek istenirse o şekilde de yapılandırma sağlanabilir. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image7.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb7.png?w=244&#038;h=56" width="244" height="56" /></a> <a href="http://yazbunu.files.wordpress.com/2010/06/image8.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb8.png?w=244&#038;h=73" width="244" height="73" /></a> </p>
<p>Eklediğimiz bu özelliğin bir de view tarafına yansıtılması gereken link kısmı var. Bu tarz bir yapı generic olduğu ve birden fazla nesne için kullanılabileceğini varsayarsak mevcut model yapısın ayrı olarak &lt;T&gt; type ıyla tüm nesneler için kullanılabilecek bir yapı hazırlıyoruz. Bu yapıda toplam sayfa sayısını, tıklanan indekse göre önceki sayfa ya da sonraki sayfa var mı kontrolünü yapmayı hedefliyoruz. </p>
<blockquote><p><font color="#008000"><strong>public class PagedObject&lt;T&gt; : List&lt;T&gt;         <br />&#160;&#160;&#160; {          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public int Index { get; set; }          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public int Size { get; set; }          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public int Count { get; set; }          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public int TotalPage { get; set; } </strong></font></p>
<p><font color="#008000"><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public PagedObject(IQueryable&lt;T&gt; source, int currentPage, int pageSize)         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Index = currentPage;          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Size = pageSize;          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Count = source.Count();          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TotalPage = Count / Size; </strong></font></p>
<p><font color="#008000"><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.AddRange(source.Skip(Index * Size).Take(Size));         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } </strong></font></p>
<p><font color="#008000"><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public bool HasPrePage         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; get          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return (Size &gt; 0);          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } </strong></font></p>
<p><font color="#008000"><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public bool HasNextPage         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; get          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return (Index+1 &lt; TotalPage);          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }          <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }          <br />&#160;&#160;&#160; }</strong></font></p>
</blockquote>
<p>PagedObject şeklinde ayrı bir sınıf yapısıyla tasarladığımız bu yapıda dört ayrı özellik\property mevcut. </p>
<p>Index; şu anda bulunduğumuz sayfayı   <br />Size; bir sayfada gösterilecek kayıt sayısını,    <br />Count; toplam kayıt sayısını,    <br />TotalPage; toplam sayfa sayısını </p>
<p>göstermektedir. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image9.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb9.png?w=244&#038;h=115" width="244" height="115" /></a> <a href="http://yazbunu.files.wordpress.com/2010/06/image10.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb10.png?w=278&#038;h=110" width="278" height="110" /></a> </p>
<p>&lt;T&gt; türünden tanımladığımız bu sınıf yapısı neticesinde istediğimiz kayıt için kullanabilecek durumdadır. Obje oluşturulurken Constract fonksiyonu için elimizdeki sonuç setini, bulunduğu sayfayı ve bir sayfada gösterilecek olan kayıt sayısını göndermek yeterli olacaktır. Ayrıca HasPrePage ve HasNextPage özellikleri sayesinde kullanıcı ekranlarında bir sonraki ya da bir önceki kayıt olup olmaması durumuna göre linklerle ilgili aktive\deaktive edebilme işlemlerini sağlayabileceğiz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image11.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;margin:0 5px 0 0;" title="image" border="0" alt="image" align="left" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb11.png?w=248&#038;h=32" width="248" height="32" /></a>PageObject model yapısını kullanabimek için view içerisinde bu yöndeki değişikliği yaparak özelleştirilmiş assemblymizin adresini belirtmemiz kullanım için yeterli olacaktır. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=365&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/06/25/asp-net-mvc-2-7-zellestirilmis-sayfalandirmacustom-paging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamics Crm Web Servis Soap Hatası ve &#199;&#246;z&#252;m &#214;nerisi</title>
		<link>http://yazbunu.wordpress.com/2010/06/24/dynamics-crm-web-servis-soap-hatasi-ve-zm-nerisi/</link>
		<comments>http://yazbunu.wordpress.com/2010/06/24/dynamics-crm-web-servis-soap-hatasi-ve-zm-nerisi/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 12:22:42 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[dynamics crm]]></category>
		<category><![CDATA[dynamics crm sdk]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[crm]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[web service error]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/06/24/dynamics-crm-web-servis-soap-hatasi-ve-zm-nerisi/</guid>
		<description><![CDATA[Dynamics Crm tabanlı bir web uygulamasında karşılaştığım ilginç bir web servis hatası ve çözümünü paylaşmak istiyorum. Projemiz Dynamics Crm üzerinden yetki kontrollerini yapan bağımsız bir web uygulamasıdır. Projeye Crm web servisi dahil edilirken, http://1.1.1.1/MSCRMServices/2007/CrmServiceWsdl.aspx?uniquename=organizasyonismi şeklinde adres verilmiş ve hata alinmadan servis dahilindeki siniflara,fonksiyonlara ulaşarak web reference olarak eklenebilmiştir. Aynı adrese browserdan erişim yapıldığında sorunsuz olarak [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=354&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://yazbunu.files.wordpress.com/2010/06/image6.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;margin:0 0 5px 10px;" title="image" border="0" alt="image" align="right" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb6.png?w=326&#038;h=66" width="326" height="66" /></a> Dynamics Crm tabanlı bir web uygulamasında karşılaştığım ilginç bir web servis hatası ve çözümünü paylaşmak istiyorum. </p>
<p>Projemiz Dynamics Crm üzerinden yetki kontrollerini yapan bağımsız bir web uygulamasıdır. </p>
<p>Projeye Crm web servisi dahil edilirken, <a href="http://1.1.1.1/MSCRMServices/2007/CrmServiceWsdl.aspx?uniquename=organizasyonismi">http://1.1.1.1/MSCRMServices/2007/CrmServiceWsdl.aspx?uniquename=organizasyonismi</a></p>
<p>şeklinde adres verilmiş ve hata alinmadan servis dahilindeki siniflara,fonksiyonlara ulaşarak web reference olarak eklenebilmiştir. </p>
<p>Aynı adrese browserdan erişim yapıldığında sorunsuz olarak servis yapısına yine ulaşılabilmektedir. </p>
<p>Ancak proje dahilinde request\response aşamasına gelindiğinde bu adrese login olunamamakta, AuthenticationTokenValue null olarak dönmekte ve; </p>
<p>Possible SOAP version mismatch: Envelope namespace <a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a> was unexpected. Expecting <a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>. </p>
<p>Hatası vermekteydi. </p>
<p>Mevcut hatanın çözümü <a href="http://1.1.1.1/MSCrmServices/2007/CrmService.asmx">http://1.1.1.1/MSCrmServices/2007/CrmService.asmx</a> şeklinde adres tanımının doğru bir şekilde yapılmasıyla aşılabilmektedir.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=354&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/06/24/dynamics-crm-web-servis-soap-hatasi-ve-zm-nerisi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Blog yazımında t&#252;rk&#231;e ve html karakter problemi</title>
		<link>http://yazbunu.wordpress.com/2010/06/11/blog-yaziminda-trke-ve-html-karakter-problemi/</link>
		<comments>http://yazbunu.wordpress.com/2010/06/11/blog-yaziminda-trke-ve-html-karakter-problemi/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 09:08:47 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[teknik]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/06/11/blog-yaziminda-trke-ve-html-karakter-problemi/</guid>
		<description><![CDATA[Blog yayınlama esnasında wordpress altyapısını kullanarak yazı yayınlarken karşılaştığım özel karakter sorunuyla ilgili çözümü paylaşmak istiyorum. Özel karakter diyorum çünkü problem sadece türkçe karakter problemi değiş; &#60; &#62; gibi karakterlerinde değiştirilerek post edilmesi nedeniyle wordpress admini haricinde hiçbir uygulamadan yazı giremiyorsunuz bu sorun nedeniyle. Not well formatted hatası olarak alacağınız;türkçe ve html karakterlerin değişimine sebep [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=351&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Blog yayınlama esnasında wordpress altyapısını kullanarak yazı yayınlarken karşılaştığım özel karakter sorunuyla ilgili çözümü paylaşmak istiyorum.</p>
<p>Özel karakter diyorum çünkü problem sadece türkçe karakter problemi değiş; &lt; &gt; gibi karakterlerinde değiştirilerek post edilmesi nedeniyle wordpress admini haricinde hiçbir uygulamadan yazı giremiyorsunuz bu sorun nedeniyle.</p>
<p>Not well formatted hatası olarak alacağınız;türkçe ve html karakterlerin değişimine sebep olan bu problemi</p>
<p><a href="http://wordpress.org/support/topic/402653"><strong>http://wordpress.org/support/topic/402653</strong></a> adresindeki çözüm önerisiyle giderebilirsiniz.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/351/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=351&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/06/11/blog-yaziminda-trke-ve-html-karakter-problemi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net MVC 2 &#8211;6- Dry ve Partial View yapısı</title>
		<link>http://yazbunu.wordpress.com/2010/06/10/asp-net-mvc-2-6-dry-ve-partial-view-yapisi/</link>
		<comments>http://yazbunu.wordpress.com/2010/06/10/asp-net-mvc-2-6-dry-ve-partial-view-yapisi/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 12:49:05 +0000</pubDate>
		<dc:creator>Mustafa Alkan</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[ASP.NET MVC Framework]]></category>
		<category><![CDATA[contoller]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">https://yazbunu.wordpress.com/2010/06/10/asp-net-mvc-2-6-dry-ve-partial-view-yapisi/</guid>
		<description><![CDATA[Model View Controller serimizde geldiğimiz aşama itibariyle form ve beraberindeki sınıf yapılarına müdahele edebilir durumdayız. Kurguladığımız database yapısı paralelinde business\iş modelimize göre form ve sınıf yapılarını özelliştirme aşamalarına birkaç ek yöntemle devam edeceğiz. Mvc nin önemli prensiplerinden biri kendini tekrar etme\Dont repeat yourself kısacası DRY olarak adlandırılan prensibe göz atacağız öncelikle. Serimizde kullandığımız User yapısından [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=350&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Model View Controller serimizde geldiğimiz aşama itibariyle form ve beraberindeki sınıf yapılarına müdahele edebilir durumdayız. Kurguladığımız database yapısı paralelinde business\iş modelimize göre form ve sınıf yapılarını özelliştirme aşamalarına birkaç ek yöntemle devam edeceğiz. </p>
<p>Mvc nin önemli prensiplerinden biri kendini tekrar etme\Dont repeat yourself kısacası DRY olarak adlandırılan prensibe göz atacağız öncelikle. Serimizde kullandığımız User yapısından yola çıkarak örneklersek eğer dikkatinizi çekeceği üzere Create ve Edit formları birbirinin aynı kod bloklarını içermektedir. Daha sonra yapmış olduğumuz kullanıcı departman düzeltmesini Create için yaptığımızda edit için unutabiliriz, unutmasak bile ayrı ayrı aynı kodları yazmak suretiyle kod kirliliğine yol açmış ve proje boyutlarını arttırmış olacağız. Hem de mvcnin prensibi olan Dry i tamamen reddetmiş olacağız. Nasıl bir yol izlemeliyiz bu durumda? inceleyelim. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="yaz bunu asp.net mvc" border="0" alt="yaz bunu asp.net mvc" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb.png?w=286&#038;h=192" width="286" height="192" /></a> <a href="http://yazbunu.files.wordpress.com/2010/06/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb1.png?w=206&#038;h=205" width="206" height="205" /></a> </p>
<p>Yeni ana form yapımızı oluşturacağımız View\User klasörüne sağ tıklayarak <strong>Add-&gt;View</strong> seçeneklerini takip ederek işlemi view ekleme penceresine ulaşıyoruz. Bu pencerede dikkat etmemiz gereken Create Partial View ve Create strongly typed view seçeneklerinin işaretli olmasıdır. Typed view seçeneğiyle mevcut Controller sınıflardan seçimimizi yapmış, partial view seçeneğiyle de yapılandırılmış ola view yapısını eklediğimiz View a göndermiş oluyoruz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb2.png?w=244&#038;h=63" width="244" height="63" /></a> </p>
<p>Bu işlemi yaptıktan sonra Create ya da Edit formunun tekrarlanan kısmını alarak UserBase yapımızın gövdesini oluşturuyoruz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb3.png?w=244&#038;h=118" width="244" height="118" /></a> <a href="http://yazbunu.files.wordpress.com/2010/06/image4.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb4.png?w=287&#038;h=117" width="287" height="117" /></a> </p>
<p>Bu aşamayla ana form yapısını oluşturduktan sonra Create ve Edit form aşamalarını Html.RenderPartial fonksiyonuyla ana formu çağıracak şekilde düzenliyoruz. </p>
<p><a href="http://yazbunu.files.wordpress.com/2010/06/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://yazbunu.files.wordpress.com/2010/06/image_thumb5.png?w=156&#038;h=244" width="156" height="244" /></a> </p>
<p>Çalıştırdığımızda göreceğimiz üzere sonuç aynı. Daha az uğraşı daha az kod kalabalığı her zaman daha rahat problem çözümü demek. </p>
<p>Partial viewlara ek not olarak Site.Master yapısını kullanmak ve tekrar edilen kodlardan uzak durmak başvurulacak ek bir yöntemdir.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yazbunu.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yazbunu.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yazbunu.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yazbunu.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yazbunu.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yazbunu.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yazbunu.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yazbunu.wordpress.com/350/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yazbunu.wordpress.com&amp;blog=7097283&amp;post=350&amp;subd=yazbunu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yazbunu.wordpress.com/2010/06/10/asp-net-mvc-2-6-dry-ve-partial-view-yapisi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56a30724a94ed400bc4a3352a9445804?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">breathnlife</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb.png" medium="image">
			<media:title type="html">yaz bunu asp.net mvc</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://yazbunu.files.wordpress.com/2010/06/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
