CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: Date Entered: 3/26/2007 2:15:29 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 7 Views: 862 Favorited: 0 Favorite
8 Items, 1 Pages 1 |< << Go >> >|
"mshearhart" <>
NewsGroup User
Timeout expired. The timeout period elapsed prior .... server is not responding.3/26/2007 2:15:29 PM

0

Server Error in '/Classifieds' Application.

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

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.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Source Error:

Line 7:  	{
Line 8:  
Line 9:  		if (!Roles.RoleExists("Administrators")) Roles.CreateRole("Administrators");
Line 10: 		if (!Roles.RoleExists("Guests")) Roles.CreateRole("Guests");
Line 11: 

Source File: c:\Inetpub\wwwroot\Classifieds\Global.asax    Line: 9

Stack Trace:

[SqlException (0x80131904): Timeout expired.  The tim

"Yani Dzhurov"
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.3/26/2007 3:22:56 PM

0

Is there something not clear about this ?

Basically, it says - there was a data base query, but the sql server has not been able to process it within the default timeout (30 seconds) if you have not modified it. 


Thanks,


Yani Dzhurov

"mshearhart" <>
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.3/26/2007 3:56:37 PM

0

Here is some more background.

As you will see, I have been picking through this step by step.  There should be some simply 1, 2, 3, step documentation to avoid these issues.  For that matter, I have yet to set this up on a public facing server, so I need to be able to replicate the implementation and resolve any issues, just so I can use this.

 Here is where I started.

 http://forums.asp.net/thread/1572388.aspx

 then the error I posted recently is the latest episode.

 I simply want this thing to work as described.

"Yani Dzhurov"
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.3/26/2007 4:51:31 PM

0

OK, I see now.

See where it does point your connection string to?

Search for it in the web.config file, connectionStrings section. 


Thanks,


Yani Dzhurov

"mshearhart" <>
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.3/26/2007 7:12:14 PM

0

What should the string be?

 

connectionStringName

="LocalSqlServer"

 

Also, I've been so disappointed in the implementation, that now I fear I have forgotten the admin password.  I don't recall changing anything and now I can't seem to find it.

 

"Yani Dzhurov"
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.3/26/2007 7:56:28 PM

0

it would be more useful if you paste the whole connectionString section.

"LocalSqlServer' does not talk to me at all. 


Thanks,


Yani Dzhurov

"mshearhart" <>
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.3/30/2007 9:27:16 PM

0

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
 <location path="Admin">
  <system.web>
   <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 <location path="PostAd.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="EditPhotos.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="MyAds.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="MyProfile.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <system.web>
  <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
  <pages styleSheetTheme="Blue"/>
  <authentication mode="Forms"/>
  <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="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
   </providers>
  </membership>
  <profile enabled="true">
   <properties>
    <add name="FirstName" type="System.String"/>
    <add name="LastName" type="System.String"/>
    <add name="MemberId" defaultValue="0" type="System.Int32"/>
    <group name="Core"/>
   </properties>
  </profile>
  <roleManager enabled="true"/>
  <siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true">
   <providers>
    <clear/>
    <add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
   </providers>
  </siteMap>
  <compilation debug="true"/></system.web>
 <connectionStrings>
  <add name="classifiedsConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
 </connectionStrings>
 <system.net>
  <mailSettings>
   <smtp from="[email protected]">
    <network host="intranetsmtp.yourdomain.com" password="" userName="" />
   </smtp>
  </mailSettings>
 </system.net>
</configuration>

"devinmccloud"
NewsGroup User
Re: Timeout expired. The timeout period elapsed prior .... server is not responding.4/4/2007 12:33:51 AM

0

I'll try help you as best I can but you need to provide more info. What have you done so far. Have you applied the sql script to your database? Have you set up access to the database for the windows accounts? Have you configure a user(admin) account through Visual web developer?

 

1-create a directory on the drives root, and copy the classfields project to it.

2- In IIS created a new website, and point its home directory to the directory of the Classfields.

3- Create a new application pool, its not advised to use any common application pool for this site

4-In the APP_DATA directory of clasfields there are some *.sql files to be found, double click each one of them, and execute it in the SQL server managment studio, they will add tables and stuff to the MAIN system database. just for some extra development help, attach the 2 databases with the extension *.MDF to the SQL server, to do that go to the summry windows and click on the mouses right button, and then choose attach, then click ADD and then navigate to he databases in the APP_data directory.

5-C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 this directory is just for a default estimate, but it will be dependant on which drive or cluster you have installed your OS on. search for a file in this directory called ASPNET_REGSQL.exe double click this file, a wizard will open, click next choose configure SQL server for application service and then click next, write down your SQL server name, (incase you dont know the server name, open the SQL server managment studio, and you will find it there easily on the topmost window on the left side under Database Engine) choose the MASTER database follow the wizard untill its over.

go back to IIS server manager, open the WEB SITES category go to the website you created for the classfields application, right click the websites name and choose properties, go to the ASP.NET tab, choose 2.050727, and then click on edit configuration, a popup window will open, click on LOCALSQLSERVER and click EDIT paste this string in the connection paramters

Server=YOUR SERVER NAME;Database=WhateverYouNamedIt;Trusted_Connection=True;

(this is for "windows authentication only"........Trusted_Connection=True;)

paste the same string in Classfield connection. click apply and then ok,

and you are done.


Jer
8 Items, 1 Pages 1 |< << Go >> >|


Free Download:













export page to word

asp.net log file

code to verify username and password from database

algorithm help

how to send email automatically?

dataadapter.fillschema

expiration time for setauthcookie

web calling remote non asp.net applications

parse html to get news

mailto: change color setting?

querystring error

asp.net popup calendar

show hide submit button and radiolistcontrol

radiobutton list problem

exception message: request timed out

why do i loose my session data

passing null values thru a hashtable

include file

two databases, two datatables and a datarelation -- arrrgh!

setting parameter values

validate email problem!?

how to create .dll files

role provider and site access using web.config

how to disable postback in a button

stop page load?

asp.net 2.0 profiles not updating addition profile attrbiutes added

isnull - object reference not set to an instance of an object.

how to get the selectedvalue from the detailsview

ref params with script services

e-mail validation in createuserwizard

passing a variable

error:the connection is already open (state=open)

how to integrate the window services into the asp.net application?

email attachment

the process cannot access the file - insert into excel and file stream download

enable printing option in rdlc (microsoft report viewer) at local mode

can i shortcircuit a server control's event handler

select method datatable

suggestions to build newsletter

why can not i use request.browser in a module function ?

decent find and replace code suggestions

getting at fields in dataviews

general data methodology question

stupid collections question

passing authentication info from asp to asp.net

use the webresponse object, how can i find the other webrequest in the responsestream?

how to set a global field

namespaces not linked

2 javascript confirmations

unable to automatically step into the server......

   
  Privacy | Contact Us
All Times Are GMT