How to install the ASP.NET 2.0 Job Site Starter Kit Requirements: - ASP.NET 2.0 - Visual Web Developer (VWD) - SQL Express if you intend to develop on your local machine 1) Download and install the starter kit on your computer from http://asp.net/downloads/starterkits/. Once installed, the Classified Starter kit should be one of the available templates in VWD 2) Open Visual Web Developer 3) Create a local copy of the site - Select File -> New -> Website. This should bring up the New Web Site dialogue box. - Select "Classifieds Web Site Starter Kit" - In Location: Select "File System" - Put in a location where you want VWD to install the web site - Select either Visual Basic or Visual C# as language - Click "OK". 4) Install the Database Schema on DiscountASP.NET SQL server -Upload the JsskDb.mdf using ftp and attach it using our SQl Tools.This file can be found under the App_Data Directory. 5) Update the Web.config file - Comment out the following: <connectionStrings> <add name="connectionstring" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=&quot;|DataDirectory|JsskDb.mdf&quot;;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/> <add name="MyProviderConnectionString" connectionString="Data Source=.\SQLEXPRESS;Integrated Security=True;AttachDbFilename=|DataDirectory|JsskDb.mdf;User Instance=True" providerName="System.Data.SqlClient"/> </connectionStrings> A i>Add the following: <connectionStrings> <add name="connectionstring" connectionString="Data Source=Data Server ;Integrated Security=False;Initial Catalog=Database Name;User ID=Database_user;Password=Password" providerName="System.Data.SqlClient" /> <add name="MyProviderConnectionString" connectionString="Data Source=Data Server ;Integrated Security=False;Initial Catalog=Database Name;User ID=Database_user;Password=Password" providerName="System.Data.SqlClient" /> </connectionStrings> ii> <system.net> <mailSettings> <smtp deliveryMethod="network" from="[email protected]"> <network host="localhost" port="25" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> B> Replace the following <membership defaultProvider="MyProvider"> <providers> <add connectionStringName="MyProviderConnectionString" applicationName="/JobSiteStarterKit" description="" requiresUniqueEmail="false" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" name="MyProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </membership> with <membership defaultProvider="MyProvider"> <providers> <add connectionStringName="MyProviderConnectionString" applicationName="/JobSiteStarterKit" description="" requiresUniqueEmail="false" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Clear" name="MyProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </membership> 6) Set up membership / role provider database See KB: http://kb.discountasp.net/article.aspx?id=10413 7) Copy your site to DiscountASP.NET servers See KB: http://kb.discountasp.net/article.aspx?id=10364 8) Setup the directory as a web application using the Web Application Tool in the control panel. Post Edited By Moderator (mjp) : 8/2/2006 9:02:20 PM GMT
Urgent hi eveyone, hey i have what was written, but i cant send a mail when i have forgotten my password. i.e while log in, below u can type your username and the mail will be send to the following email address the user had used when registed.. i had added the code <system.net> <mailSettings> <smtp deliveryMethod="network" from="[email protected]"> <network host="localhost" port="25" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> but still it says "Unexpected Error" it there any settings that i should do in the smtp setting which i need to do.please do tell me!! i shall wait for ur reply thnks
Whats does your code(used for sending mail) look like?Also,any more details in the error message? Something like; (Import Namespace:System.Net.Mail) Dim mailobj As MailMessage = New MailMessage() mailobj.To.Add(New MailAddress('[email protected]')) mailobj.Subject = 'DiscountASP.NET' Dim SmtpMail As New SmtpClient SmtpMail.Send(mailobj) Should work fine with your config. See: http://kb.discountasp.net/article.aspx?id=10443 for a sample code Vikram DiscountASP.NET www.DiscountASP.NET Post Edited (vvsharma) : 3/27/2007 9:51:25 PM GMT
well, the problem is that when you have forgotten your username. so to retrieve it ,u just type ur username and answer the question. i have the answer textbox . i have typed the answer and clicked the submitted button. the page is then redirected to an unexpected error form. i had pasted the code <system.net> <mailSettings> <smtp deliveryMethod="network" from="[email protected]"> <network host="localhost" port="25" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> .what can i do to make the retieve mail password to be sent? is there anything to add? i think there is something to add to make the mail to be sent related to job seeker kit
hey, no reply!..well , i really need to make it work..please do help me.. u must have install job seeker kit,when u have forgotten ur password, u need to tpe ur username so that the system sends u ur password to ur mail which u have stated when u had registered. my problem is that i have enable questions and answers so that when a user registers ,he/she types in ther question and answer. and if that user has forgottenhis/her password, she types inher password at the botton of the login page.athe question is automatically displayed,u need to type in the answer and then click the submit button my problemis that the page is redirected to unexpected error page when i have click the submit button i had pasted the code <system.net>..... in the web config,but still it does not work.please do help me. thnx
It seems you are seeing a custom error page.Please set CustomErrors mode to 'Off' in your web.config i.e in your webconfig <customErrors mode= 'Off'</font> defaultRedirect='****.aspx' /> This will show you the exact error message.Please let us know the exact message so that we can help you with the issue. Vikram DiscountASP.NET www.DiscountASP.NET
Web.config needs to be: <connectionStrings> <add name='connectionstring' connectionString='Data Source=Data Server ;Integrated Security=False;Initial Catalog=Database Name;User Id=Database_user;Password=Password' providerName='System.Data.SqlClient' /> <add name='MyProviderConnectionString' connectionString='Data Source=Data Server ;Integrated Security=False;Initial Catalog=Database Name;User Id=Database_user;Password=Password' providerName='System.Data.SqlClient' /> </connectionStrings> and Not: <connectionStrings> <add name='connectionstring' connectionString='Data Source=Data Server ;Integrated Security=False;Initial Catalog=Database Name;User ID=Database_user;Password=Password' providerName='System.Data.SqlClient' /> <add name='MyProviderConnectionString' connectionString='Data Source=Data Server ;Integrated Security=False;Initial Catalog=Database Name;User ID=Database_user;Password=Password' providerName='System.Data.SqlClient' /> </connectionStrings> Otherwise, you might get an error when installing this kit. Note, it only thing that changed is the 'User Id' element from 'User ID' to 'User Id', the web.config file seems to generate an error stating that 'User ID' not supported, or the like. /emoticons/devil.gif