Problem using HDI membership provider with asp.net - asp.net

I am trying to use HDI custom membership provider and after seting up with web.config when I run the applcation it gives me an error as shown below.
And I am unable to know where I am going wrong?Can anyone point me the right way?
Failed to map the path '/'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Failed to map the path '/'.
This is my web.config:
<configuration>
<connectionStrings>
<add name="HDIConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=.\sqlexpress;Initial Catalog=HDIMembershipProvider;Integrated Security=True"/>
</connectionStrings>
<system.web>
<membership defaultProvider="HDIMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="HDIMembershipProvider" type="HDI.AspNet.Membership.HDIMembershipProvider" connectionStringName="HDIConnectionString" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" writeExceptionsToEventLog="false"/>
</providers>
</membership>
<machineKey validationKey="34A0AF973A6817E4F7067DA1486E93AD5F7466B65D32405DB50766FDF335304F499C7B1943C084C7A67B1375D196CF02C8E84F297F7A0CA130C1D5722586749F" decryptionKey="48C8B6F952BC7C39DD91A2A17F17B08E113967DC5FF687FE6DFAF65F3248309C" validation="SHA1" decryption="AES"/>
<authentication mode="Forms"/>
<compilation debug="true" strict="false" explicit="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>
<system.net>
</system.net>
</configuration>

I have rectified the problem just by starting Visual Studio as Administrator.

Related

Ajax Control toolkit not working when website is published

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

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>

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"/>

sql server error online for bigrock hosting

Error showing on bigrock hosting for asp.net application
login failed for user ' '
On login link there is login page after entering right credential it gives me the error
"login failed for user 'shreesa.mdf'"
Bigrock tech support teams fails to resolve this issue. please help to solve this problem.
According to me there is some problems in my web.config file.
I am also adding the code here..
<configuration>
<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>
<connectionStrings>
<add name="Conn" connectionString="Data Source=localhost;Initial Catalog=shreesa.mdf;Integrated Security=False; User Id=saachlrw; Password=******;" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
Modify your Connectionstring in this way:
Before
connectionString="Data Source=localhost;Initial Catalog=shreesa.mdf;Integrated Security=False; User Id=saachlrw; Password=******;"
After
connectionString="Server=localhost;AttachDbFilename=|DataDirectory|shreesa.mdf;Database=yourdbname;Integrated Security=False; User Id=saachlrw; Password=******;"
SQL Server connection strings

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