Google Analytics İzleme

20 Ekim 2011

asp.net mvc 3 - /Content/Site.css dosyasının görüntülenememe problemi

Bu hata /Content/Site.css dosyasına gerekli erişim izninin olmamasından dolayıdır. web.config'de herkesin erişimesi için izin tanımı yapılmalıdır.

 <configuration>
...

<location path="Content">
<system.web>
 
<authorization>
   
<allow users="*" />
 
</authorization>
</system.web>
</location>

...

<system.web>
<authorization>
 
<deny users="?" />
</authorization>
</system.web>
.....

</configuration>

Kaynak:

14 Ekim 2011

You do not have sufficient privileges to delete {OU Name} hatası

Windows 2008 Active Directory'de silme esnasında You do not have sufficient privileges to delete {OU Name} hatası alıyorsanız, silme korumasını kaldırmalısınız.

Ou silerken aşağıdakine benzer bir uyarı alıyorsanız aşağıdakileri işlemleri uygularak sonuca ulaşabilirsiniz.

Error

“You do not have sufficient privileges to delete {OU Name}, or this object is protected from accidental deletion”

1- Administrator hesabi ile oturum açınız

2- Start > Run > dsa.msc ( Enter )

3. View > Advanced Features

4. Right Click the OU > Properties > Object Tab.
5. Un-tick “Protect this object from accidental deletion”.

işlemlerini uyguladıktan sonra organizal unitleri silebilirsiniz.


Kaynak:

11 Ekim 2011

jquery dokümanları


Kaynaklar:

8 Mükemmel Jquery İpucu
http://ersingenel.com/blog/3/8-mukemmel-jquery-ipucu.htm

Asp.Net Jquery Time Ago

Asp.Net Jquery Ajax File Upload

Faydalı Jquery Kodları Bölüm 1

Faydalı Jquery Kodları Bölüm 2

Faydalı Jquery Kodları Bölüm 3

Uzun süre çalışan işlemleri asp.net ile kodlamak


Kaynaklar:

Displaying Progress Bar For Long Running Processes using ASP.NET AJAX

Executing Long-Running Tasks with the Progress Bar in ASP.NET

How To: Submit and Poll for Long-Running Tasks

Asynchronous long-running tasks in ASP.NET application

Dealing with Long Running Processes in ASP.NET

Manual Threading in ASP.NET 2.0

Multithreading in ASP.NET

ASP.NET Thread Usage on IIS 7.5, IIS 7.0, and IIS 6.0

ASP.NET ile Threading

Asp.Net Threading


09 Ekim 2011

text, ntext ve image desteği kalkıyormuş, ilginç


Important
 
ntext, text, and image data types will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead.
 
Kaynak:
 

07 Ekim 2011

microsoft outlook başlatılamıyor. outlook penceresi açılamıyor hatası

microsoft outlook başlatılamıyor. outlook penceresi açılamıyor hatası outlook'un ayar dosyasının bozulmasından kaynaklanıyor. office 2007'yi onar yaptım fakat olmadı. Çalıştır ile bir komut yazıp bu sorunu düzeltebilirsiniz.

Bu sorunu gidermek için aşağıdaki adımları kullanın.

  1. Başlat menüsünde Çalıştır'ı tıklatın.
  2. Çalıştır iletişim kutusuna aşağıdaki komutu yazın:

    Outlook.exe /resetnavpane

    Not: 
    "Outlook.exe" ile "/resetnavpane"
    arasında bir boşluk vardır
  3. Tamam'ı tıklatın.

Kaynak:

03 Ekim 2011

ASP.Net ile PowerShell Scripti Çalıştırma


Makinenizde kurulu powershell sürümünü öğrenme:
http://stackoverflow.com/questions/1825585/determine-what-version-of-powershell-is-installed

Adım adım örnek:
Using PowerShell 2.0 from ASP.NET Part 1

PowerShell and ASP.NET Part 1

PowerShell and ASP.NET Part 2

PowerShell and ASP.NET Part 3

PowerShell Dashboard : ASP.NET, Silverlight and PowerShell in a shaker !

powershell ile bilgisayar adını öğrenme:
http://stackoverflow.com/questions/1169891/how-do-i-get-the-localhost-name-in-powershell

Running Remote Powershell scripts from VB.NET


Exchange sunucuya bağlanıp, powershell scripti çalıştırma:
HOW TO: Migrating Exchange 2007 PowerShell Managed code to work with Exchange 2010

How to call Exchange 2010 cmdlet's using Remote Powershell in code

Programmatic Access via Remote PowerShell in Exchange Server 2010

How to Create a Remote Runspace

Running Exchange Online and Office365 Powershell cmdlets in C# and managed code

Exchange Server’a Windows PowerShell ile Bağlanma

Live@Edu Exchange sunucuya powershell ile bağlanma ve şifre resetleme:
Connect Windows PowerShell to the Service
http://help.outlook.com/en-us/140/cc952755.aspx

Reset a Live@edu User's Password with Windows PowerShell
http://help.outlook.com/en-us/140/dd253225.aspx


Windows Server 2008 R2'de .net ile yazılan powershell çalıştırma esnasında oluşan hata:

... cannot be loaded because the execution of scripts is disabled on this system ... hatası verdiyse;

Bu hata için Set-ExecutionPolicy Unrestricted komutu önce çalıştırılmalıdır.

Kaynak:
http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/
http://www.sertac.gen.tr/exchange-management-console-ailmiyor/
http://technet.microsoft.com/en-us/library/ee176949.aspx

Dikkat:
Visual Studio'da C# managed .net kod ile Poweshell işlemleri yapabilmek için gerekli olan System.Management.Automation.dll dosyasını  Windows 7 64 bitlik makinede
C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0\System.Management.Automation.dll adresinde ki dll dosyasını projeye referans olarak eklenmelidir, derleme veya publish sonucunda bu dll'i bin klasörüne atmak için dll dosyasının özellik penceresinden Copy Local değeri True yapılmalıdır. Bu şekilde derlenmiş wcf servisi web uygulamasını Windows Server 2008 R2 Enterprise 64 bit'lik sunucudaki iis'de çalışmaktadır. Test ettim, çalışıyor.





29 Eylül 2011

Mac os x 10.6.1 - 10.6.2 Snow Leopard 'ı Windows 7 64 bit'lik host pc'de VirtualBox 4 içinde sanal makineye kurma

29.09.2011

Mac os x ile artık tanışma vakti geldi. Windows 7 64 bitlik pc'de Virtual box içinde kuruyorum.
Virtualbox 4'de yeni sanal makine kurumunda mac os x - mac os x server tiplerini seçerek kurmaya başladım. hazard iso'sunu kullandım. Kurulum daha başlangıcında 
Hey we are going backwards! -> , restarting timing calibation failed with 2 attempts. hatası verdi. Virtualbox'da sanal makine ayarında işletim sistemi türünü bsd - freebsd yapınca düzeldi ve şimdi kuruluyor.

Kaynaklar:

01.10.2011

Şimdi Xcode programını kuruyorum. Torrent ile xcode3210a432.dmg dosyasını indirdim,
dmg2img programı ile xcode3210a432.dmg dosyasını xcode3210a432.img dosyasına çevirdim, çevirmek için programın olduğu klasöre komut satırında geldim ve şu komutu çalıştırdım:

C:\Users\ISHAK\Downloads\dmg2img-1.6-win32>dmg2img.exe xcode3210a432.dmg xcode3210a432.img

oluşturulan xcode3210a432.img dosyasını UltraISO programı ile sanal cd sürücüye ekledim,
mac os x masaüstünde Xcode diye cd simgesi geldi, bu simgeye tıkladım, cd içindeki Xcode.mpkg dosyasını çift tıkladım ve kurulum başladı. Şimdi Xcode kuruluyor.

Kaynaklar:
http://www.blogsdna.com/3183/convert-dmg-to-iso-with-dmg2iso.htm
http://vu1tur.eu.org/tools/

11.10.2011 sa


xcode_3.2.3_and_ios_sdk_4.0.2.dmg dosyasını virtual box cdrom'una image dosyası olarak bağladım, macos x'i açtım, masaüstüne gelen Xcode and iphone SDK cdsini çift tıkladım. Cd içeriğinden kurulum paketini çalıştırdım ve ios sdk'sını kurdum.
Xcode'u çalıştırdım ve ilk hello world denememi yaptım ve çalıştırdım.
Hadi hayırlısı :)

Kaynak:
http://www.tuaw.com/2009/04/27/iphone-dev-101-the-hello-world-app/
http://deimos3.apple.com/WebObjects/Core.woa/FeedEnclosure/utah.edu.1668842900.01668842919.1681195338/enclosure.pdf
http://forum.donanimhaber.com/m_49676124/tm.htm
http://www.cihantek.com/etiketler/iphone-programlama/
http://www.yazarbozar.com/2009/02/23/iphone-uygulamasi-yazmayyi-ogrenmeye-nereden-baslarim/
http://www.icodeblog.com/2008/07/26/iphone-programming-tutorial-hello-world/

AveaLabs'da gördüğüm başka bir kurulum makalesi:
http://www.avealabs.com/blog/virtualbox-snow-leopard-kurulumu.aspx

Virtualbox içinde Mac OS
http://calloftheyellowdarkblue.blogspot.com/2011/12/1-mac-os-x86-cdsi-indirmek-hazard.html



Windows makine üzerine Mac OS X Snow leopard kurup Xcode ile iphone ipad cihazlarına uygulama geliştirmek.
http://www.erencetin.com/post/Windows-makine-uzerine-Mac-OS-X-Snow-leopard-kurup-Xcode-ile-iphone-ipad-cihazlarc4b1na-uygulama-gelistirmek.aspx




23 Eylül 2011

SQL Server - Operand data type ntext is invalid for add operator. hatası hakkında

Bu hata sql server ile text veya ntext veri tipi ile işlem yapınca çıkmaktadır.

Örneğin:
select
 cast(A.AnswerText as ntext) + cast(' - ' as ntext) + cast(VA.AnswerText as ntext)
from
 vts_tbAnswer A join vts_tbVoterAnswers VA on A.AnswerID = VA.AnswerID

Yukarıdaki sql sorgusunda bu hatayı vermektedir.
Artık SQL Server text ve ntext kullanımını desteklemeyecekmiş, bunun yerine varchar(max) veya nvarchar(max) kullanmamızı istiyor.


The + (String Concatenation) does not work on SQL Server for the image, ntext, or text data types.

In fact, image, ntext, and text are all deprecated.

ntext, text, and image data types will be removed in a future version of MicrosoftSQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead.

That said if you are using an older version of SQL Server than you want to use UPDATETEXT to perform your concatenation. Which Colin Stasiuk gives a good example of in his blog post String Concatenation on a text column (SQL 2000 vs SQL 2005+).

 

Kaynak:

http://msdn.microsoft.com/en-us/library/ms187993.aspx


http://stackoverflow.com/questions/3099237/sql-server-adding-a-string-to-a-text-column-concat-equivalent




21 Eylül 2011

Asp içinde hata yönetimi - Error Handling in ASP

Gerekli yazım örneği:

 <%
Dim i
' Turn on error Handling
On Error Resume Next


'
Code here that you want to catch errors from

' Error Handler
If Err.Number <> 0 Then
   '
Error Occurred / Trap it
   
On Error Goto 0 ' But don't let other errors hide!
   
' Code to cope with the error here
End If
On Error Goto 0 '
Reset error handling.

%>

Is try-catch like error handling possible in ASP Classic?

Error Handling in ASP

Implementing Error Logging in ASP 3.0


How To Use On Error Resume Next

ASP and the Error Handler


Klasik ASP ile SOA Web Servisi veya WCF Servisi Çağırma - Call web service or wcf service from classic asp


Web servisteki örnek metod şu şekilde olsun:

public string GetInfo(string username, string companycode, string password)

Çağrı Yapılacak Örnek SOAP Verisi:

<?xml version="1.0" encoding="utf-8"?> 
<soap:Body> 
<GetInfo xmlns="http://www.mobildev.net/"> 
<username>string</username> 
<companycode>string</companycode> 
<password>string</password> 
</GetInfo>
</soap:Body>
</soap:Envelope>


Kaynaklar:

How to call web service from classic asp

An Introduction To XML SOAP Using ASP and VB6
http://www.devarticles.com/c/a/ASP/An-Introduction-To-XML-SOAP-Using-ASP-and-VB6/

Consuming A .Net SOAP Webservice From Classic ASP (VBScript)

Consume WebServices in classic ASP using Microsoft SOAP ToolKit.

Creating Web Services with ASP

Using Web Service (.NET) in Classic ASP via SOAP



SOAP Message Builder

Classic ASP Example Code

Leveraging SOAP in Classic ASP

Using SOAP With Classic ASP / VBScript

Programming Web Services with SOAP
http://oreilly.com/catalog/progwebsoap/chapter/ch03.html

gSOAP toolkit is an open source C and C++ software development toolkit for SOAP/XML Web services and generic (non-SOAP) C/C++ XML data bindings.

Web servisine dosya gönderme
http://www.eggheadcafe.com/community/asp/5/10350114/posting-file-via-msxml2serverxmlhttp30.aspx

Using ServerXMLHTTP Directly
http://msdn.microsoft.com/en-us/library/windows/desktop/ms766431(v=vs.85).aspx

Msxml2.ServerXMLHTTP kullanım örneği:
http://www.r10.net/asp/938530-msxml2-serverxmlhttp-isleminde-ssl-ile-post-etme.html

Consuming .NET Web Services from Classic ASP with the Microsoft SOAP Toolkit
http://www.devx.com/tips/Tip/42147
Integrating ASP.NET XML Web Services with 'Classic' ASP Applications
http://www.4guysfromrolla.com/webtech/070302-1.shtml
Using Web Service (.NET) in Classic ASP via SOAP
http://www.ashishblog.com/blog/using-web-service-net-in-classic-asp-via-soap/
Consume WebServices in classic ASP using Microsoft SOAP ToolKit.
http://www.eggheadcafe.com/tutorials/asp/648fef0b-d827-4ef9-a7b2-90c0fb15cc23/consume-webservices-in-classic-asp-using-microsoft-soap-toolkit.aspx
Microsoft SOAP Toolkit
http://www.soapuser.com/client4.html
Migrating from the Microsoft SOAP Toolkit to the .NET Framework
http://msdn.microsoft.com/en-us/library/ms995793.aspx

Calling a FedEx Rate Service from Classic ASP with SOAP call
http://vikaskanani.wordpress.com/2011/04/21/calling-a-fedex-rate-service-from-classic-asp-with-soap-call/

Using SOAP With Classic ASP / VBScript
http://www.codeproject.com/Articles/20125/Using-SOAP-With-Classic-ASP-VBScript

Call WCF Service from Classic ASP - End to End Sample
http://archive.msdn.microsoft.com/CallWCFfromASP

Classic ASP Tutorial: How to do Soap Requests
http://jadendreamer.wordpress.com/2009/09/02/classic-asp-soap-request-code-example/

Consuming a .Net SOAP Webservice from Classic ASP (VBScript)
http://www.kashflow.com/blog/consume-soap-from-vbscript/

Objects of type array explained
http://www.kashflow.com/forums/threads/integrating-api-with-classic-asp.499/

Lifecycle of a SOAP Request
http://msdn.microsoft.com/en-us/magazine/cc164007.aspx


An Introduction To XML SOAP Using ASP and VB6
http://www.devarticles.com/c/a/ASP/An-Introduction-To-XML-SOAP-Using-ASP-and-VB6/



16 Eylül 2011

Türkçe karakterlerin html kodları

Türkçe karakterlerin html kodları:

&#231; = ç
&#199; = Ç

&#287; = ğ
&#286; = Ğ

&#305; = ı
&#304; = İ

&#246; = ö
&#214; = Ö

&#351; = ş
&#350; = Ş

&#252; = ü
&#220; = Ü



Excel'de aynı olan kayıtları işaretleme

Çift olan değerleri karşılatırmak için yapılacak değerler fare ile seçilir veya belirli bir sutün seçilir
Menüden Home -> Conditional Formatting -> Highlight Cell Rules -> Duplicate Values seçilir, gelen ekran onaylanır ve çiftlenen değerler renklendirilmiş olur.

Kaynak: