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
Related
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
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>
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"/>
I developed a asp.net project. it is connecting visual studio 2010 in the temprary server of visual studio 2010 but when I put it to the iis it does not conect. Please how can pix this matter ?
my web.config is like that;
<?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>
<system.web>
<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="ConnectionString"
connectionString="Server=SRV-WORKFLOW; Database=PTC;User ID = MIKES\EMREAL;Password=EMAL5616.;Trusted_Connection=True;"
providerName="System.Data.SqlClient" />
<add name ="PTCconnection"
connectionString="Server=SRV-PLM; Database=wcadmin;User ID = MIKES\EMREAL;Password=EMAL5616.;Trusted_Connection=True;"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
You are using Trusted_Connection=True which means it tries to connect to your database with the credentials from the user the apps runs under. In the case of IIS, it's normally an AppPool user. Either allow this user access to the database, change the app pool user or use SQL Server authentication.
You can get an overview of connectionstrings here : http://connectionstrings.com/
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.