Hi! I am new to DiscountAsp.Net and at a loss on this problem. Here is my delemma: I have a subdomain "PiperRobotics". In my /root directory, the Default.aspx has a script that checks if the Request.URL is "PiperRobotics.CodeOfGrayc.com". If it is, then the Response.Redirect is to "/piperrobotics". This subdirectory, I set up as a web application from the Control Panel => Web Tool. After uploading my site to DiscountASP.Net's server, when I try to get to my subdomain by typing, http://piperrobotics.codeofgrayc.com, I get this error message: ****** ERROR MESSAGE START ******** Server Error in '/PiperRobotics' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Theme 'Business' cannot be found in the application or global theme directories. Source Error: Code: Line 37: <compilation debug="true"/> Line 38: <customErrors mode="Off"/> Line 39: <pages theme="Business"/> Line 40: </system.web> Line 41: </configuration> Source File: E:\web\codeofgrayc\htdocs\web.config Line: 39 Version Information:Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 ******* END OF ERROR MESSAGE ******** Here is my question: Why am I getting this error message from the /root directory's web.config when I am trying to get to my subdomain? Any suggestions/comments would be greatly appreciated. Thanks In Advance! CodeOfGrayc<!-- [ConfigurationErrorsException]: Theme 'Business' cannot be found in the application or global theme directories. (E:\web\codeofgrayc\htdocs\web.config line 39) at System.Web.Configuration.PagesSection.get_ThemeInternal() at System.Web.UI.PageParser.ProcessConfigSettings() at System.Web.UI.TemplateParser.PrepareParse() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
I am getting a login failed exception.Make sure the connection string has the correct credentials in your site's (piperrobotics) web.config .The error you were seeing before was since the Business theme was missing from the App_theme folder of the above web application. Vikram DiscountASP.NET www.DiscountASP.NET
Hi! I'm back from a break. I fixed the css problem that I got too when trying to reach my site. Now the error I get when reaching my site is as follows: Server Error in '/PiperRobotics' Application. Login failed for user 'piperclub'. 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: Login failed for user 'piperclub'. Stack Trace: Code: [SqlException (0x80131904): Login failed for user 'piperclub'.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735091 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838 System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84 System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197 System.Web.Security.SqlRoleProvider.RoleExists(String roleName) +482 System.Web.Security.Roles.RoleExists(String roleName) +242 ASP.global_asax.Application_Start(Object sender, EventArgs e) +10 I rechecked my SQL login and even reset the password. In the PiperRobotics/web.config, I used the following statement:<connectionStrings> <remove name="LocalSqlServer"/> <add name="LocalSqlServer" connectionString="Data Source=tcp:sql2k504.discountasp.net;Integrated Security=False;Initial Catalog=SQL2005_378623_COG; User ID=piperclub;Password=*****" providerName="System.Data.SqlClient" /> <add name="ClubSiteDB" connectionString="Data Source=tcp:sql2k504.discountasp.net;Initial Catalog=SQL2005_378623_COG;User ID=piperclub;Password=*****" providerName="System.Data.SqlClient" /> </connectionStrings> where ***** is a substitute for the password for posting purposes. I have even tried setting up a second login and got the same response. So now I am wondering, do I need a separate SQL database for my subdomain? Any help would be greatly appreciated! Thanks! CodeOfGrayc
Seems like you are using the an additonal user in your connection string that you created in your control panel.Make sure ,you followed the step 2 while creating the additional user ,which refers to 'Assign new SQL Login to SQL database' (See:http://kb.discountasp.net/article.aspx?id=10378) . Vikram DiscountASP.NET www.DiscountASP.NET