با سلام و عرض خسته نباشید خدمت شما دوست عزیز
فروم شما خیلی برای من آموزنده بود و جای بی نهایت سپاسگذاری داره.
من این فروم رو توی سایتم به عنوان تالار بحث و گفتگو بکار بردم و روی localhost به درستی به عنوان بخشی از سایتم جواب میده . ولی وقتی اونو روی هاستم آپلود کردم اروری میده که اگه برید توی سایت www.jmo.ir می توانید مشاهده کنید
من connecion string فایل web.config رو هم به صورت زیر تغییر دادم
<add name="LocalSqlServer" connectionString="server=67.225.166.182; initial catalog=mydomains_jmo;uid=reghbali06;pwd=rezaeghba li06;"/>
که mydomains_jmo دیتابیسی است که در پنل سایتم درست کردم
ممنون میشم از دوستان که در جهت رفع این مشکل کمکم کنید
کل فایل web.config رو در اینجا میگذارم
<?xml version="1.0"?>
<configuration xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensions SectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGro up, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptReso urceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebService sSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerial izationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileSer viceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthentica tionServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
<add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
<add key="FCKeditor:UserFilesPath" value="/UserFiles/Image"/>
<add key="FCKeditor:AutoCompleteAlsoluteURL" value="1"/>
</appSettings>
<connectionStrings>
<clear/>
<add name="LocalSqlServer" connectionString="server=67.225.166.182; initial catalog=mydomains_jmo;uid=reghbali06;pwd=rezaeghba li06;"/>
/>
</connectionStrings>
<system.web>
<roleManager enabled="true"/>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="1">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" applicationName="/" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Hashed"/>
</providers>
</membership>
<profile defaultProvider="SqlProvider">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="LocalSqlServer1"/>
</providers>
<properties>
<add name="fname" type="String"/>
<add name="lname" type="String"/>
<add name="iszarchi" type="String"/>
<add name="isdaneshju" type="string"/>
<add name="reshtedaneshgah" type="String"/>
<add name="daneshgahname" type="String"/>
<add name="shahredaneshgah" type="String"/>
<add name="salevorud" type="String"/>
<add name="reshtedabirestan" type="String"/>
<add name="dabirestanname" type="String"/>
<add name="maghta" type="String"/>
<add name="phonenum" type="String"/>
<add name="address" type="String"/>
<add name="BirthYear" type="String"/>
<add name="Sokonat" type="String"/>
<add name="Website" type="String"/>
<add name="ICQ" type="string"/>
<add name="HotmailID" type="String"/>
<add name="SkypeName" type="String"/>
<add name="AIM" type="String"/>
<add name="YahooID" type="String"/>
<add name="Signature" type="String"/>
<add name="MSN" type="String"/>
</properties>
</profile>
<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx"/>
<authentication mode="Forms">
<forms loginUrl="~/AccessDenied.aspx"/>
</authentication>
<pages>
<tagMapping>
<add tagType="System.Web.UI.WebControls.CompareValidato r" mappedTagType="Sample.Web.UI.Compatibility.Compare Validator, Validators, Version=1.0.0.0"/>
<add tagType="System.Web.UI.WebControls.CustomValidator " mappedTagType="Sample.Web.UI.Compatibility.CustomV alidator, Validators, Version=1.0.0.0"/>
<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Sample.Web.UI.Compatibility.RangeVa lidator, Validators, Version=1.0.0.0"/>
<add tagType="System.Web.UI.WebControls.RegularExpressi onValidator" mappedTagType="Sample.Web.UI.Compatibility.Regular ExpressionValidator, Validators, Version=1.0.0.0"/>
<add tagType="System.Web.UI.WebControls.RequiredFieldVa lidator" mappedTagType="Sample.Web.UI.Compatibility.Require dFieldValidator, Validators, Version=1.0.0.0"/>
<add tagType="System.Web.UI.WebControls.ValidationSumma ry" mappedTagType="Sample.Web.UI.Compatibility.Validat ionSummary, Validators, Version=1.0.0.0"/>
</tagMapping>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="Ajax" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
<add tagPrefix="Editor" namespace="FredCK.FCKeditorV2" assembly="FredCK.FCKeditorV2"/>
<add tagPrefix="Polls" namespace="EccSoft.Web.UI" assembly="PollControl"/>
<add tagPrefix="Safa" namespace="Fatholahi.Compnent.Authenticate" assembly="SafaSecurity"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<!--urlMappings>
<add url="~/EnterNewsComments.aspx" mappedUrl="~/ShowNews.aspx" />
</urlMappings-->
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
<system.net>
<mailSettings>
<smtp from="Admin">
<network host="mail.safa.com" password="safa" userName="safa"/>
</smtp>
</mailSettings>
</system.net>
<location path="EnterTopic.aspx">
<system.web>
<authorization>
<deny users="?"/>
<allow roles="Admin"/>
<allow roles="Users"/>
</authorization>
</system.web>
</location>
<location path="EditPost.aspx">
<system.web>
<authorization>
<deny users="?"/>
<allow roles="Admin"/>
<allow roles="Users"/>
</authorization>
</system.web>
</location>
</configuration>
بازم ممنون