I have used the Club Starter kit to develop an updated web site for a local user group. I tested everything under VWD and SSEE and have deployed the site to a hosted environment consisting of an IIS and a MS SQL 2000 Server.
As part of the transition I mapped the MSSQL Server while still using VWD to host the site. I was able to verify that I could add events, news, and users and that the changes were reflected in the remote MS SQL 2000 database (including the aspnet membership tables). The curious item was that the ASPNETDB.mdf keeps getting recreated every time I run the site with VWD even though it is not being updated with the data. All functions work in this intermediate enviroment.
When I try to run the site from the web server, I would get the ErrorHandler.aspx file displayed (though it appears to abort rendering the complete Default.master template.
By changing the following in the web.config file
from:
<
customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm"/>
to:
<
customErrors mode="Off"/>
I get the database connection error (refered elsewhere when switch to SQL2000) only the first time the site is accessed after updating the files. After that everthing works fine if viewed without logging in as a user.
If you login the pages display fine except those that contain the following snippet of code:
isAdmin = User.IsInRole(
"Administrators")
Those files that contain this snippet generate the following error
Server Error in '/' Application.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
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: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source Error:
Line 8: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Line 9: Dim isAdmin As Boolean
Line 10: isAdmin = User.IsInRole("Administrators")
Line 11: panel1.Visible = isAdmin
Line 12: panel2.Visible = isAdmin |
Source File: D:\www.austin-aug.com\Events_Calendar.aspx Line: 10