{"id":9104,"date":"2012-09-22T19:16:27","date_gmt":"2012-09-22T15:46:27","guid":{"rendered":"http:\/\/blog.iranhostdir.ir\/?p=9104"},"modified":"2025-04-29T19:18:22","modified_gmt":"2025-04-29T15:48:22","slug":"%d8%a7%db%8c%d9%85%d9%86-%d8%b3%d8%a7%d8%b2%db%8c-connection-string-%d8%af%d8%b1-%d9%87%d9%86%da%af%d8%a7%d9%85-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%da%a9%d9%86%d8%aa%d8%b1%d9%84","status":"publish","type":"post","link":"https:\/\/iranhost.com\/blog\/%d8%a7%db%8c%d9%85%d9%86-%d8%b3%d8%a7%d8%b2%db%8c-connection-string-%d8%af%d8%b1-%d9%87%d9%86%da%af%d8%a7%d9%85-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%da%a9%d9%86%d8%aa%d8%b1%d9%84\/","title":{"rendered":"\u0627\u06cc\u0645\u0646 \u0633\u0627\u0632\u06cc Connection String \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0646\u062a\u0631\u0644 \u0647\u0627\u06cc Data Source \u062f\u0631 MS-Sql Server 2008"},"content":{"rendered":"<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0647 \u0686\u06af\u0648\u0646\u06af\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u062f\u0631 \u0628\u062e\u0634 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Connection string \u062f\u0631 \u0641\u0627\u06cc\u0644 Web.config \u0648 \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 .NET Framework tool \u0631\u0627 \u0628\u0647 \u0645\u0646\u0638\u0648\u0631 \u067e\u0646\u0647\u0627\u0646 \u06a9\u0631\u062f\u0646 \u0622\u0646\u0647\u0627\u060c \u062c\u0647\u062a \u0627\u0645\u0646\u06cc\u062a \u0628\u06cc\u0634\u062a\u0631 \u0631\u0627 \u0634\u0631\u062d \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p>\u062f\u0631 \u0645\u0648\u0631\u062f <a href=\"\/blog\/\u0686\u06af\u0648\u0646\u06af\u06cc-\u0627\u0631\u062a\u0628\u0627\u0637-\u0628\u0627-\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633-\u0648-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-connect\/\">\u06a9\u0627\u0646\u06a9\u0634\u0646 \u0627\u0633\u062a\u0631\u06cc\u0646\u06af<\/a> \u0642\u0628\u0644\u0627 \u062f\u0631 \u0645\u0642\u0627\u0644\u0647 \u0627\u06cc \u0628\u0647 \u0647\u0645\u06cc\u0646 \u0646\u0627\u0645 \u06af\u0641\u062a\u0647 \u0627\u06cc\u0645.<\/p>\n<p dir=\"RTL\"><strong>\u0686\u06af\u0648\u0646\u0647 \u0627\u0645\u0646\u06cc\u062a <\/strong><strong>Connection String<\/strong><strong> \u0631\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0646\u062a\u0631\u0644 \u0647\u0627\u06cc <\/strong><strong>Data Source<\/strong><strong> \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u06cc\u0645\u061f<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0646\u062a\u0631\u0644 \u0647\u0627\u06cc Data Source\u060c \u0645\u062a\u0645\u0631\u06a9\u0632 \u06a9\u0631\u062f\u0646 \u0645\u06a9\u0627\u0646 \u0630\u062e\u06cc\u0631\u0647 connection string \u062f\u0631 \u0641\u0627\u06cc\u0644 Web.config \u0628\u0631\u0646\u0627\u0645\u0647 \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0645\u062f\u06cc\u0631\u06cc\u062a \u060c \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0631\u0627 \u0628\u0627 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0622\u0646\u0647\u0627 \u0628\u0631\u0627\u06cc \u062a\u0645\u0627\u0645\u06cc \u0635\u0641\u062d\u0627\u062a ASP.NET \u062f\u0631 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0628\u060c \u062a\u0633\u0647\u06cc\u0644 \u0645\u06cc \u06a9\u0646\u062f. \u0628\u0639\u0644\u0627\u0648\u0647 \u062f\u06cc\u06af\u0631 \u0627\u062d\u062a\u06cc\u0627\u062c\u06cc \u0628\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u062f\u0631 \u0635\u0641\u062d\u0627\u062a \u0645\u062a\u0639\u062f\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f. \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0628\u0627 \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0633\u0637\u062d \u0627\u0645\u0646\u06cc\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062d\u0633\u0627\u0633 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644\u060c \u0647\u0645\u0686\u0648\u0646 \u0646\u0627\u0645 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc\u060c \u06a9\u0644\u0645\u0647 \u0639\u0628\u0648\u0631 \u0648&#8230; \u0631\u0627 \u0628\u0627 \u067e\u0646\u0647\u0627\u0646 \u06a9\u0631\u062f\u0646 \u0628\u062e\u0634 <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/bf7sd233%28v=vs.80%29.aspx\" rel=\"nofollow noopener\" target=\"_blank\">connectionStrings<sup>\u06f1<\/sup><\/a> \u0641\u0627\u06cc\u0644 Web.config \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062d\u0641\u0627\u0638\u062a \u0634\u062f\u0647 \u0628\u0627\u0644\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0631\u062f.<\/p>\n<p dir=\"RTL\"><strong>\u0630\u062e\u06cc\u0631\u0647 \u0633\u0627\u0632\u06cc \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u062f\u0631 \u0641\u0627\u06cc\u0644 <\/strong><strong>Web.config<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06f1- \u0641\u0627\u06cc\u0644 Web.config \u0645\u0631\u0628\u0648\u0637\u0647 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627\u0632 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0627\u06af\u0631 \u0641\u0627\u06cc\u0644 Web.config \u0627\u0632 \u0642\u0628\u0644 \u0645\u0648\u062c\u0648\u062f \u0646\u06cc\u0633\u062a\u060c \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0645\u062a\u0646\u06cc \u0628\u0627 \u0646\u0627\u0645 Web.config \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f: <a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_1.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0645\u0631\u0627\u062d\u0644 \u06f2 \u062a\u0627 \u06f8 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06f9- \u062f\u0631 \u0639\u0646\u0635\u0631 <strong>configuration<\/strong>\u060c \u0639\u0646\u0635\u0631 \u062c\u062f\u06cc\u062f\u06cc \u0628\u0627 \u0646\u0627\u0645 <strong>connectionStrings<\/strong> \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f\u060c \u0637\u0628\u0642 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631: <a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_2.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0645\u0631\u0627\u062d\u0644 \u06f1\u06f0 \u062a\u0627 \u06f1\u06f8 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06f1\u06f9- \u062f\u0631 \u0639\u0646\u0635\u0631 <strong>connectionStrings<\/strong>\u060c \u06cc\u06a9 \u0639\u0646\u0635\u0631 <strong>add<\/strong> \u0628\u0631\u0627\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u06a9\u0647 \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0628\u062a\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f\u060c \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0639\u0646\u0635\u0631 \u0634\u0627\u0645\u0644 \u0633\u0647 \u062e\u0627\u0635\u06cc\u062a \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u062c\u062f\u0648\u0644 \u0632\u06cc\u0631 \u0627\u0633\u062a.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">[irp posts=&#8221;10057&#8243; name=&#8221;\u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0648 \u0646\u062d\u0648\u0647 \u0646\u0648\u0634\u062a\u0646 connection string \u062f\u0631 ASP.Net&#8221;]\n<div align=\"right\">\n<table dir=\"rtl\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"30\"><\/td>\n<td valign=\"top\" width=\"175\">\n<p dir=\"RTL\" align=\"center\"><strong>\u062e\u0627\u0635\u06cc\u062a<\/strong><\/p>\n<\/td>\n<td valign=\"top\" width=\"489\">\n<p dir=\"RTL\" align=\"center\"><strong>\u0634\u0631\u062d<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\n<p dir=\"RTL\" align=\"center\"><strong>\u06f1<\/strong><\/p>\n<\/td>\n<td width=\"175\">\n<p dir=\"RTL\" align=\"center\"><strong>name<\/strong><\/p>\n<\/td>\n<td valign=\"top\" width=\"489\">\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06cc\u06a9 \u0646\u0627\u0645 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0634\u0626. \u0627\u06cc\u0646 \u0646\u0627\u0645 \u0628\u0639\u062f\u0627 \u062a\u0648\u0633\u0637 \u06a9\u0646\u062a\u0631\u0644 \u0647\u0627\u06cc data source \u0648 \u062f\u06cc\u06af\u0631 feature\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u0631\u062c\u0648\u0639 \u0645\u06cc \u06a9\u0646\u0646\u062f\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u0646\u062f \u0634\u062f.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\n<p dir=\"RTL\" align=\"center\"><strong>\u06f2<\/strong><\/p>\n<\/td>\n<td width=\"175\">\n<p dir=\"RTL\" align=\"center\"><strong>ConnectionString<\/strong><\/p>\n<\/td>\n<td valign=\"top\" width=\"489\">\n<p dir=\"RTL\">\u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 data source.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\n<p dir=\"RTL\" align=\"center\"><strong>\u06f3<\/strong><\/p>\n<\/td>\n<td width=\"175\">\n<p dir=\"RTL\" align=\"center\"><strong>providerName<\/strong><\/p>\n<\/td>\n<td valign=\"top\" width=\"489\">\n<p dir=\"RTL\" style=\"text-align: justify;\">namespace \u0645\u0631\u0628\u0648\u0637\u0647 \u0628\u0647 NET Framework data provider \u062c\u0647\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0627\u062a\u0635\u0627\u0644\u060c \u0647\u0645\u0686\u0648\u0646 System.Data.SqlClient\u060c System.Data.OleDb\u060c System.Data.Odbc.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p dir=\"RTL\">\u06f2\u06f0- \u06cc\u06a9 \u0639\u0646\u0635\u0631 <strong>connectionStrings<\/strong> \u06a9\u0627\u0645\u0644 \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0627\u0633\u062a: <a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_3.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0645\u0631\u0627\u062d\u0644 \u06f2\u06f1 \u062a\u0627 \u06f2\u06f5 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\">\u06f2\u06f6- \u0641\u0627\u06cc\u0644 Web.config \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0646\u0645\u0648\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u0634\u0645\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0627\u0645 \u062a\u0639\u06cc\u06cc\u0646 \u0634\u062f\u0647 \u062f\u0631 \u062e\u0627\u0635\u06cc\u062a <strong>name<\/strong> \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u0631\u0627 \u0628\u0647 \u06a9\u0646\u062a\u0631\u0644 data source \u0627\u0631\u062c\u0627\u0639 \u062f\u0647\u06cc\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06f2\u06f7- \u062f\u0631 \u062e\u0627\u0635\u06cc\u062a ConnectionString \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 data source \u062e\u0648\u062f\u060c \u0627\u0632 expression syntax \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u062c\u0647\u062a \u0627\u0631\u062c\u0627\u0639 \u0628\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u062a\u0635\u0627\u0644\u06cc \u062f\u0631 \u0641\u0627\u06cc\u0644 Web.config \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u06cc\u06a9 \u06a9\u0646\u062a\u0631\u0644 <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.web.ui.webcontrols.sqldatasource%28v=vs.80%29.aspx\" rel=\"nofollow noopener\" target=\"_blank\">SqlDataSource<sup>\u06f5<\/sup><\/a> \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u0627\u0632 \u0641\u0627\u06cc\u0644 Web.config \u062e\u0648\u0627\u0646\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a: <a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_4.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\"><strong>\u0686\u06af\u0648\u0646\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0641\u0627\u06cc\u0644 <\/strong><strong>Web.config<\/strong><strong> \u0631\u0627 \u067e\u0646\u0647\u0627\u0646 \u06a9\u0646\u06cc\u0645:<\/strong><\/p>\n<p dir=\"RTL\">\u06f1- \u062f\u0631 \u06cc\u06a9 command line \u0648\u06cc\u0646\u062f\u0648\u0632\u060c \u0627\u0628\u0632\u0627\u0631 \u062b\u0628\u062a ASP.NET IIS(<strong>aspnet_regiis.exe<\/strong>) \u0631\u0627 \u0628\u0627 \u0633\u0648\u0626\u06cc\u0686 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<ul>\n<li>\u0633\u0648\u0626\u06cc\u0686 <strong>\u2013pe<\/strong> \u0631\u0634\u062a\u0647 &#8220;connectionStrings&#8221; \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u062f \u062a\u0627 \u0639\u0646\u0635\u0631 <strong>connectionStrings<\/strong> \u0631\u0627 \u067e\u0646\u0647\u0627\u0646 \u06a9\u0646\u062f.<\/li>\n<li>\u0633\u0648\u0626\u06cc\u0686 <strong>\u2013app<\/strong> \u0646\u0627\u0645 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u062f.<\/li>\n<\/ul>\n<p dir=\"RTL\">\u0627\u0628\u0632\u0627\u0631 <strong>aspnet_regiis.exe<\/strong> \u062f\u0631 \u0645\u0633\u06cc\u0631 \u0632\u06cc\u0631 \u0648\u0627\u0642\u0639 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<p dir=\"LTR\">%systemroot%Microsoft.NETFramework<em>versionNumber<\/em> folder.<\/p>\n<p dir=\"RTL\">\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0686\u06af\u0648\u0646\u06af\u06cc \u067e\u0646\u0647\u0627\u0646\u0633\u0627\u0632\u06cc \u0628\u062e\u0634 <strong>connectionStrings<\/strong> \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 Web.config \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u0628\u0627 \u0646\u0627\u0645 SampleApplication \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f:<\/p>\n<p dir=\"LTR\">aspnet_regiis -pe &#8220;connectionStrings&#8221; -app &#8220;\/SampleApplication&#8221;<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0648\u0642\u062a\u06cc \u06a9\u0647 \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0645\u0627\u0646 \u0628\u0647 \u067e\u0627\u06cc\u0627\u0646 \u0631\u0633\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u062d\u062a\u0648\u0627\u06cc \u0641\u0627\u06cc\u0644 Web.config \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u0628\u062e\u0634 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc <strong>connectionStrings<\/strong> \u0634\u0627\u0645\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u0646\u0647\u0627\u0646 \u0634\u062f\u0647 \u0628\u0647 \u062c\u0627\u06cc \u0631\u0634\u062a\u0647 \u0627\u062a\u0635\u0627\u0644 clear-text \u0627\u0633\u062a: <a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_5.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\">Command Prompt \u0631\u0627 \u062c\u0647\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f \u0646\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u06f2- \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06cc\u0627 identity \u06a9\u0647 ASP.NET \u0628\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0646\u0627\u0645 \u062c\u0627\u0631\u06cc <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.security.principal.windowsidentity%28v=vs.80%29.aspx\" rel=\"nofollow noopener\" target=\"_blank\">WindowsIdentity<sup>\u06f6<\/sup><\/a> \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f \u0631\u0627 \u0645\u0634\u062e\u0635 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0631\u0648\u0634\u06cc \u0631\u0627 \u062c\u0647\u062a \u0645\u0634\u062e\u0635 \u0646\u0645\u0648\u062f\u0646 <strong>WindowsIdentity<\/strong> \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f:<\/p>\n<p dir=\"RTL\"><a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_6.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u0632\u0628\u0627\u0646 VB \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\"><a href=\"http:\/\/blog.iranhostdir.ir\/wp-content\/uploads\/2012\/09\/CSDS_7.txt\" rel=\"nofollow noopener\" target=\"_blank\">\u0645\u062a\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u0632\u0628\u0627\u0646 #C \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/a><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u062f\u0631 \u062d\u0627\u0644\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u0631 Windows Server2003 \u0642\u0627\u0628\u0644\u06cc\u062a impersonation \u062f\u0631 \u062e\u0635\u0648\u0635 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc ASP.NET \u062f\u0631 \u0641\u0627\u06cc\u0644 Web.config \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627 \u062a\u062d\u062a identity \u062d\u0633\u0627\u0628 NETWORK SERVICE \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u0646\u062f. \u062f\u0631 \u062f\u06cc\u06af\u0631 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0648\u06cc\u0646\u062f\u0648\u0632\u060c ASP.NET \u062a\u062d\u062a \u062d\u0633\u0627\u0628 \u0645\u062d\u0644\u06cc ASPNET \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p dir=\"RTL\">\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u0645\u0642\u0627\u0644\u0647<a href=\"https:\/\/iranhost.com\/blog\/%D9%85%D9%82%D8%A7%DB%8C%D8%B3%D9%87-%D9%88-%D8%A8%D8%B1%D8%B1%D8%B3%DB%8C-%D8%B2%D8%A8%D8%A7%D9%86-%D9%87%D8%A7%DB%8C-%DA%86%D8%A7%D8%B1%DA%86%D9%88%D8%A8-%D8%AF%D8%A7%D8%AA-%D9%86%D8%AA-%D8%A8\/\"> VB.net \u0686\u06cc\u0633\u062a<\/a> \u0631\u0627 \u0645\u0637\u0627\u0644\u0639\u0647 \u0628\u0641\u0631\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06cc\u0627 identity \u06a9\u0647 \u062a\u062d\u062a \u0622\u0646 ASP.NET \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u062f\u0633\u062a\u0631\u0633\u06cc read \u0628\u0647 encryption key \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u062f \u0628\u062e\u0634 \u0647\u0627\u06cc \u0641\u0627\u06cc\u0644 Web.config \u0631\u0627 \u067e\u0646\u0647\u0627\u0646\u0633\u0627\u0632\u06cc \u06cc\u0627 \u0622\u0634\u06a9\u0627\u0631\u0633\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u062f. \u0627\u06cc\u0646 \u067e\u0631\u0648\u0633\u0647 \u0641\u0631\u0636 \u0631\u0627 \u0628\u0631 \u0627\u06cc\u0646 \u0645\u06cc \u06af\u06cc\u0631\u062f \u06a9\u0647 \u0648\u0628\u0633\u0627\u06cc\u062a \u0634\u0645\u0627 \u0628\u0627\u00a0<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.configuration.rsaprotectedconfigurationprovider%28v=vs.80%29.aspx\" rel=\"nofollow noopener\" target=\"_blank\">RsaProtectedConfigurationProvider<sup>\u06f7<\/sup><\/a> \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06a9\u0647 \u062f\u0631 \u0641\u0627\u06cc\u0644 Machine.config \u0628\u0627 \u0646\u0627\u0645 &#8220;RsaProtectedConfigurationProvider&#8221; \u062a\u0639\u06cc\u06cc\u0646 \u0634\u062f\u0647\u060c \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a. RSA key container \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0628\u0627 <strong>RsaProtectedConfigurationProvider<\/strong> \u0628\u0647 \u0646\u0627\u0645 &#8220;NetFrameworkConfigurationKey&#8221; \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f.<\/p>\n<p dir=\"RTL\">\u06f3- \u062f\u0631 Command Promp\u060c \u0627\u0628\u0632\u0627\u0631 <strong>aspnet_regiis.exe<\/strong> \u0631\u0627 \u0628\u0627 \u0633\u0648\u0626\u06cc\u0686 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<ul>\n<li>\u0633\u0648\u0626\u06cc\u0686 <strong>\u2013pa<\/strong> \u0631\u0627 \u062c\u0647\u062a \u062a\u0639\u06cc\u06cc\u0646 \u0646\u0627\u0645 \u06a9\u0644\u06cc\u062f RSA key container \u0628\u0647 \u06a9\u0627\u0631 \u0628\u0628\u0631\u06cc\u062f. \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636: <strong>RsaProtectedConfigurationProvider<\/strong><\/li>\n<li>Identity \u0628\u0631\u0646\u0627\u0645\u0647 ASP.NET \u0631\u0627 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0642\u0628\u0644 \u0645\u0634\u062e\u0635 \u0634\u062f \u060c \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u0639\u0637\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u062d\u0633\u0627\u0628 NETWORK SERVICE \u0628\u0647 machine-level &#8220;NetFrameworkConfigurationKey&#8221; RSA key container \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f:<\/p>\n<p dir=\"LTR\">aspnet_regiis -pa &#8220;NetFrameworkConfigurationKey&#8221; &#8220;NT AUTHORITYNETWORK SERVICE&#8221;<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06f4- \u062c\u0647\u062a \u0622\u0634\u06a9\u0627\u0631\u0633\u0627\u0632\u06cc\u00a0 \u0645\u062d\u062a\u0648\u0627\u06cc \u0641\u0627\u06cc\u0644 Web.config\u060c \u0627\u0628\u0632\u0627\u0631 <strong>aspnet_regiis.exe<\/strong> \u0631\u0627\u0628\u0627 \u0633\u0648\u0626\u06cc\u0686 <strong>\u2013pd<\/strong> \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u062e\u0637 \u062f\u0633\u062a\u0648\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0645\u0627\u0646\u0646\u062f \u067e\u0646\u0647\u0627\u0646\u0633\u0627\u0632\u06cc \u0645\u062d\u062a\u0648\u0627\u06cc \u0641\u0627\u06cc\u0644 Web.config \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0633\u0648\u0626\u06cc\u0686 \u2013pe \u0645\u06cc \u0628\u0627\u0634\u062f. \u0628\u0647 \u062c\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0634\u0645\u0627 protected configuration provider \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0646\u0645\u06cc \u06a9\u0646\u06cc\u062f. Provider \u0645\u0646\u0627\u0633\u0628 \u062f\u0631 \u062e\u0627\u0635\u06cc\u062a <strong>configProtectionProvider<\/strong> \u062c\u0647\u062a \u0628\u062e\u0634 \u062d\u0641\u0627\u0638\u062a \u0634\u062f\u0647 \u062a\u0639\u06cc\u06cc\u0646 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p dir=\"RTL\">\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0686\u06af\u0648\u0646\u06af\u06cc \u0622\u0634\u06a9\u0627\u0631\u0633\u0627\u0632\u06cc \u0639\u0646\u0635\u0631 <strong>connectionString<\/strong> \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 ASP.NET \u0646\u0645\u0648\u0646\u0647 SampleApplication \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p dir=\"LTR\">aspnet_regiis -pd &#8220;connectionStrings&#8221; -app &#8220;\/SampleApplication&#8221;<\/p>\n<p dir=\"LTR\" style=\"text-align: right;\">:\u0645\u0646\u0628\u0639<\/p>\n<p><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/53tyfkaw%28v=vs.80%29.aspx\" rel=\"nofollow noopener\" target=\"_blank\">Encrypting Configuration Information Using Protected Configuration<sup>\u06f8<\/sup><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/dx0f3cf2%28v=vs.80%29.aspx\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">How to: Secure Connection Strings When Using Data Source Controls<\/a><\/p>\n<p>http:\/\/msdn.microsoft.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0647 \u0686\u06af\u0648\u0646\u06af\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u062f\u0631 \u0628\u062e\u0634 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Connection string \u062f\u0631 \u0641\u0627\u06cc\u0644 Web.config \u0648 \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 .NET Framework tool \u0631\u0627 \u0628\u0647 \u0645\u0646\u0638\u0648\u0631 \u067e\u0646\u0647\u0627\u0646 \u06a9\u0631\u062f\u0646 \u0622\u0646\u0647\u0627\u060c \u062c\u0647\u062a \u0627\u0645\u0646\u06cc\u062a \u0628\u06cc\u0634\u062a\u0631 \u0631\u0627 \u0634\u0631\u062d \u0645\u06cc \u062f\u0647\u062f. \u062f\u0631 \u0645\u0648\u0631\u062f \u06a9\u0627\u0646\u06a9\u0634\u0646 \u0627\u0633\u062a\u0631\u06cc\u0646\u06af \u0642\u0628\u0644\u0627 \u062f\u0631 \u0645\u0642\u0627\u0644\u0647 \u0627\u06cc \u0628\u0647 \u0647\u0645\u06cc\u0646 \u0646\u0627\u0645 \u06af\u0641\u062a\u0647 \u0627\u06cc\u0645. \u0686\u06af\u0648\u0646\u0647 \u0627\u0645\u0646\u06cc\u062a Connection String \u0631\u0627 \u062f\u0631 &hellip;<\/p>\n","protected":false},"author":64,"featured_media":9108,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"class_list":["post-9104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/9104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/users\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/comments?post=9104"}],"version-history":[{"count":0,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/9104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media?parent=9104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/categories?post=9104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/tags?post=9104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}