Ajax Control toolkit not working when website is published - asp.net

I have website published and with Visual Studio Ultimate 2013 and Ajax control toolkit features on the page.
However, when running same, the ajax controls are not working. Am not getting any error on the browser
Here below is my webconfig file
<connectionStrings>
<add name=xxx"" connectionString="Data Source=xxxxx;Initial Catalog=Audit_Data;Integrated Security=True" providerName="System.Data.SqlClient"/>
<system.web>
<!--<sessionState mode="InProc" timeout="480" />-->
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5"/>
<customErrors mode="Off"/>
<pages enableEventValidation ="false">
</pages>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
Anyone can help me out of it.
thanks

Related

Aspx Send Mail Error

Is there any problem in Web.config? When i sent mail i get this error.I think error is in the Web.config file.As you can see i dont know ASPX.I just want to edit codes and send mail to another adress
Thanks for your help
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<!--# Eposta gönderme ayarları-->
<add key="epostaFromAddress" value="noreply#hkl.com"/>
<add key="epostaReply" value="noreply#hkl.com"/>
<add key="epostaFromName" value="hkl Info"/>
<add key="epostaServer" value="mail.hkl.com"/>
<add key="epostaSSL" value="0"/>
<add key="epostaPort" value="26"/>
<add key="epostaUser" value="noreply#hkl.com"/>
<add key="epostaPass" value="Gesa123456"/>
<add key="epostaTo" value="info#hkl.com"/>
</appSettings>
<connectionStrings/>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies></compilation>
</system.web>
</configuration>

web config error unable to uplaod files on server on asp.net

i am using web config below to upload files in the server asp.net 4.0 but i am getting error regrading this below is my web config code what to do ?
<?xml version="1.0"?>
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
<system.web>
<authentication mode="Windows"/>
<identity impersonate="true" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
<sessionState timeout="1000" regenerateExpiredSessionId="true">
</sessionState>
<customErrors mode="Off" />
<machineKey validationKey="1234567890123456789012345678901234567890AAAAAAAAAA"
decryptionKey="123456789012345678901234567890123456789012345678"
validation="SHA1" decryption="Auto" />
</system.web>
<connectionStrings>
<add name="cityxisConnectionString" connectionString="Data Source=66.63.181.66;Initial Catalog=testdb;User ID=testadmin;Password=Trial#!789" providerName="System.Data.SqlClient"/>
<add name="myConnectionString" connectionString="Data Source=192.168.1.1;Initial Catalog=temp;User ID=temp;Password=temp" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.webServer>
<handlers>
<add name="AjaxFileUploadHandler" verb="POST" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/>
</handlers>
</system.webServer>
</configuration>
but i am Unable to upload files on server error
Access to the path 'E:\domains\mywebsite.co.in\httpdocs\cover\3128.jpg' is denied.
FileUpload1.SaveAs(Server.MapPath("/cover/" + Session["upkey"].ToString() + fileName));

WebsitePanel 500 - Internal server error

I am going to upload my first site that written in with Visual Studio 2012 and sql 2012 in websitepanel. but I could not understand why this site not upload up fine. I think this problem is because the Web configuration. If it is possible please see this file and help me. Thank you.
<configuration>
<appSettings>
<add key="SecurityKey" value="Syed Moshiur Murshed"/>
</appSettings>
<connectionStrings>
<add name="EshopConnectionString" connectionString="user id=*****; pwd=*****;data source=yourshop.ir_Eshop.mssql.serverpars.com; persist security info=False;initial catalog=yourshop.ir_Eshop"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<httpHandlers>
<add verb="GET" path="CaptchaImage.aspx" type="Safa.Security.Captcha.SafaCaptchaImageHandle r, SafaCaptchaControl"/>
</httpHandlers>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

Converted ASP.net 4.0 site to 4.5 but some files still remains as 4.0 are they correct?

Converted ASP.net 4.0 site to 4.5 but some files still remains as 4.0 are they correct ?
Used visual studio 2012
Here my config.xml. Do you see anything incorrect ?
System.web , system.design, system.windows.fomrs still 4.0 ?
When publishing i am disabling debug as false. Also thrust level what does it do ? Should i remove it ?
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="sanitizer" requirePermission="false"
type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="60"/>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<trust level="Full" />
<sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
<providers>
<add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
</providers>
</sanitizer>
<authentication mode="Windows"/>
<customErrors mode="Off"/>
<pages validateRequest="true" viewStateEncryptionMode="Never" enableViewStateMac="true" enableSessionState="true" controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
<httpModules/>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false"/>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00"/>
</staticContent>
</system.webServer>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
</configuration>
This is normal. Not every framework library is enhanced with new versions of .NET. So, if nothing was added to the reference library then it keeps the old version.

Sections must only appear once per config file. See the help topic <location> for exceptions.Why?

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
<configuration>
<system.net>
<mailSettings>
<smtp from="makovetskiyd#yahoo.co.uk">
<network host="smtp.gmail.com" enableSsl="true" defaultCredentials="false" port="587" userName="****" password="****"/>
</smtp>
</mailSettings>
</system.net>
<connectionStrings>
<clear/>
<add name="SqlState" connectionString="Data Source=localhost;DataBase=AnyNameOfServerState;Integrated Security=True" providerName="System.Data.SqlClient"/>
<add name="YourGuruDB" connectionString="Data Source=DIMA-00AA1DA557;Initial Catalog=model;Integrated Security=True"/>
<add name="modelConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename='D:\Documents and Settings\Dima\My Documents\Visual Studio 2010\WebSites\WebSite10\App_Data\ASPNETDB.MDF';Integrated Security=True;User Instance=True;Trusted_Connection=Yes;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<sessionState mode="SQLServer" sqlConnectionString="SqlState" allowCustomSqlDatabase="true" cookieless="false" timeout="20"/>
<compilation debug="true"/>
<authentication mode="Forms">
<forms name=".MyCookie" loginUrl="~/Registration.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="MD5">
<user name="****" password="****"/>
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<roleManager enabled="true" defaultProvider="MyRoleProvider">
<providers>
<clear/>
<add name="MyRoleProvider" applicationName="/" connectionStringName="modelConnectionString" type="System.Web.Security.SqlRoleProvider"/>
</providers>
</roleManager>
<membership defaultProvider="MyMembershipProvider">
<providers>
<clear/>
<add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="modelConnectionString" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" enablePasswordReset="true" maxInvalidPasswordAttempts="1000" passwordAttemptWindow="4000" enablePasswordRetrieval="true" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="/WebSite10"/>
</providers>
</membership>
<machineKey validationKey="****" decryptionKey="****" validation="SHA1" decryption="AES"/>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=****"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=****"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=****"/>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=****"/>
</assemblies>
</compilation>
You have two compilation tags
<compilation debug="true"/>
and
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
The Error below happen when you have the Compilation element twice in your config file. Just take one or the other one out.
It seem that there is two section.
Remove
<compilation>
Leave
<compilation debug="true" >
I encountered this problem today after installing Ajax toolkit. If you added custom controls before installing ajax toolkit via in web.config as:
<pages>
<controls>
<!--Your custom control class information-->
<add tagPrefix=".." namespace="..."/>
</controls>
</pages>
combine it with ajaxToolkit section after deleting your tags as :
<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
<!--Your custom control class information-->
<add tagPrefix="..." namespace="..." />
</controls>
</pages>

Resources