PDA

View Full Version : Question About Using The Club Starter Kit As A Subdomain


CodeOfGrayc
07-01-2007, 04:05 AM
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:






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_ThemeInt ernal()
at System.Web.UI.PageParser.ProcessConfigSettings()
at System.Web.UI.TemplateParser.PrepareParse()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.g et_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTy peFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.Proc essBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.Perf ormBuild()
at System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(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.IHttpH andlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep .System.Web.HttpApplication.IExecutionStep.Execute ()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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.-->

vvsharma
07-01-2007, 05:20 AM
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 (http://www.discountasp.net/)

CodeOfGrayc
07-11-2007, 02:08 AM
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:





[SqlException (0x80131904): Login failed for user 'piperclub'.]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) +735091
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlInternalConnectionTds.Com pleteLogin(Boolean enlistOK) +33
System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628
System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359
System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Web.DataAccess.SqlConnectionHolder.Open(Htt pContext context, Boolean revertImpersonate) +84
System.Web.DataAccess.SqlConnectionHelper.GetConne ction(String connectionString, Boolean revertImpersonation) +197
System.Web.Security.SqlRoleProvider.RoleExists(Str ing 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

vvsharma
07-11-2007, 10:48 AM
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 (http://www.discountasp.net/)