Click here to Skip to main content
15,908,775 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: automation (like on whatismyip.com) Pin
Not Active4-Apr-11 11:48
mentorNot Active4-Apr-11 11:48 
QuestionReportviewer shows unauthorized error. Pin
SamRST3-Apr-11 4:31
SamRST3-Apr-11 4:31 
AnswerRe: Reportviewer shows unauthorized error. Pin
thatraja3-Apr-11 7:19
professionalthatraja3-Apr-11 7:19 
GeneralRe: Reportviewer shows unauthorized error. Pin
SamRST3-Apr-11 21:23
SamRST3-Apr-11 21:23 
AnswerRe: Reportviewer shows unauthorized error. Pin
SamRST4-Apr-11 21:12
SamRST4-Apr-11 21:12 
QuestionApplication pool 'DefaultAppPool' has problem Pin
Hy Chanhan2-Apr-11 18:59
professionalHy Chanhan2-Apr-11 18:59 
AnswerRe: Application pool 'DefaultAppPool' has problem Pin
thatraja2-Apr-11 21:08
professionalthatraja2-Apr-11 21:08 
QuestionSql Membership / Login works local but not on production server Pin
De_Novice2-Apr-11 8:57
De_Novice2-Apr-11 8:57 
Hi All,

I have created a basic login site, right now just has a login and forgetpassword page.
The site works perfectly locally but on publishing when I navigate to forgotpassword page
after typing the username and click submit I get the following error "We were unable to access your information. Please try again. "
Also when I am trying to login I get the error"Invalid Username Or Password".

Why does it work locally and not on the production server?

Here is my web config file, I am unable to figure this out. Have done a lot of research and would appreciate your help.
<?xml version="1.0"?>
<configuration>
	<configSections>
		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
				</sectionGroup>
			</sectionGroup>
		</sectionGroup>
	</configSections>
	
	<!-->Mail Setting-->
	<system.net>
		<mailSettings>
			
		</mailSettings>
	</system.net>
	
	<!--Databse Connection-->
	<connectionStrings>
		<add name="db" connectionString="Data Source=SQLOLEDB.1;Data Source=**.**.*.**;Initial Catalog=pdb;User ID=beta;Password=******"/>
    
		<!-- For Login-->
		<remove name="LocalSqlServer"/>
		<add name="LocalSqlServer" connectionString="Data Source=SQLOLEDB.1; Data Source=**.**.*.**; Initial Catalog=pdb;User ID=beta;Password=******"/>
	</connectionStrings>
	<system.web>
		<pages>
			<controls>
				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			</controls>
		</pages>
		<!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
		<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"/></assemblies>
		</compilation>
		<httpHandlers>
			<remove verb="*" path="*.asmx"/>
			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, 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>

    <membership>
      <providers>       
          <clear/>
          <add
              name="AspNetSqlMembershipProvider"
              type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
              connectionStringName="LocalSqlServer"
              enablePasswordRetrieval="false"
              enablePasswordReset="true"
              requiresQuestionAndAnswer="true"
              applicationName="pweb"
              requiresUniqueEmail="true"
              maxInvalidPasswordAttempts="5"
              minRequiredPasswordLength="5"
              minRequiredNonalphanumericCharacters="0"
              passwordAttemptWindow="10"
              
          />
       </providers>
    </membership>
		
		<!-- Role-->
		<roleManager enabled="true">
			<providers>
				<add name="SqlRoleManager" type="System.Web.Security.SqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="pweb"/>
			</providers>
		</roleManager>
		
		<!-- Authentication-->
		<authentication mode="Forms">
			<forms loginUrl="login.aspx">
          
         </forms>
      
		</authentication>


	<system.web.extensions>
		<scripting>
			<webServices>
				<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
				<!--
      <jsonSerialization maxJsonLength="500">
        <converters>
          <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
        </converters>
      </jsonSerialization>
      -->
				<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
				<!--
        <authenticationService enabled="true" requireSSL = "true|false"/>
      -->
				<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
           and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
           writeAccessProperties attributes. -->
				<!--
      <profileService enabled="true"
                      readAccessProperties="propertyname1,propertyname2"
                      writeAccessProperties="propertyname1,propertyname2" />
      -->
			</webServices>
			<!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
		</scripting>
	</system.web.extensions>
	<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.ScriptHandlerFactory, 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.ScriptHandlerFactory, 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>
</configuration>

AnswerRe: Sql Membership / Login works local but not on production server Pin
De_Novice4-Apr-11 8:15
De_Novice4-Apr-11 8:15 
QuestionProblem with a drpdownlist in a datalist Pin
Nafiseh Salmani2-Apr-11 8:32
Nafiseh Salmani2-Apr-11 8:32 
AnswerRe: Problem with a drpdownlist in a datalist Pin
Abhijit Jana3-Apr-11 1:23
professionalAbhijit Jana3-Apr-11 1:23 
Questionproblem with drawing a polygon Pin
Nafiseh Salmani2-Apr-11 8:21
Nafiseh Salmani2-Apr-11 8:21 
AnswerRe: problem with drawing a polygon Pin
davidnz2-Apr-11 10:37
davidnz2-Apr-11 10:37 
QuestionMy website take so long time to reponse the pages (Slow) Pin
Hy Chanhan2-Apr-11 3:00
professionalHy Chanhan2-Apr-11 3:00 
AnswerRe: My website take so long time to reponse the pages (Slow) Pin
Not Active2-Apr-11 3:19
mentorNot Active2-Apr-11 3:19 
GeneralRe: My website take so long time to reponse the pages (Slow) Pin
Hy Chanhan2-Apr-11 3:25
professionalHy Chanhan2-Apr-11 3:25 
GeneralRe: My website take so long time to reponse the pages (Slow) Pin
Not Active2-Apr-11 3:42
mentorNot Active2-Apr-11 3:42 
GeneralRe: My website take so long time to reponse the pages (Slow) Pin
Hy Chanhan2-Apr-11 3:47
professionalHy Chanhan2-Apr-11 3:47 
GeneralRe: My website take so long time to reponse the pages (Slow) Pin
Not Active2-Apr-11 4:22
mentorNot Active2-Apr-11 4:22 
AnswerRe: My website take so long time to reponse the pages (Slow) Pin
Dalek Dave2-Apr-11 6:17
professionalDalek Dave2-Apr-11 6:17 
Questionregarding webserver & database server & web application execution flow Pin
vijaylumar1-Apr-11 22:26
vijaylumar1-Apr-11 22:26 
QuestionProblem in displaying data. Pin
manikumar_gutti1-Apr-11 19:55
manikumar_gutti1-Apr-11 19:55 
AnswerRe: Problem in displaying data. Pin
Wendelius2-Apr-11 2:22
mentorWendelius2-Apr-11 2:22 
Questionabout chating application Pin
avanishkri1-Apr-11 5:00
avanishkri1-Apr-11 5:00 
AnswerRe: about chating application Pin
Dave Calkins1-Apr-11 6:38
Dave Calkins1-Apr-11 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.