Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# bigtires001 7/26/2009 1:42 PM
Hello. I have been evaluating a few Open Source CMS Systems. I really like the features here with Cuyahoga however I can’t seem to get started.
#1. I have created a Microsoft SQL 2005 database and user
#2.Installed the files on my server.
#3. Created the proper connection string.
I don’t think the system is even getting to the database point before throwing me an error.
Background:
IIS 6.0
Windows server 2003
Microsoft SQL 2005
Connection string:
Data Source=SLS-AB10P7\SQLEXPRESS;Initial Catalog=the001;User ID=the001;Password=the001" providerName="System.Data.SqlClient


I had some questions I’m not clear on if anyone could help
#1. Is it ok to let Visual Studios Update the software to asp.net 3.0?
#2. After install should I be going to?
“/localhost/directory/default.aspx” or “/localhost/directory/install/install.aspx”
#2. Should the IIS be to the root or “web” folder directory?
#3. I can’t seem to find a way to turn custom errors off so I can see what’s happening.

Any help is appreciated thanks!
# bigtires001 7/26/2009 2:01 PM
OK ID did get the error. Anyone know how to fix this?

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource 'file:///C:/Inetpub/wwwroot/testx/Web/Install/Insta...

<%@ Page language="c#" Codebehind="Install.aspx.cs" AutoEventWireup="false" Inherits="Cuyahoga.Web.Install.Install" %>...
# bigtires001 7/26/2009 2:07 PM
This is the error i get remotly. the othe is from server.

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Cuyahoga.Web.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Cuyahoga.Web.Global" %>



Source File: /global.asax Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
# Constructor 7/26/2009 8:49 PM (edited 7/26/2009 8:56 PM)
bigtires001Hello. I have been evaluating a few Open Source CMS Systems. I really like the features here with Cuyahoga however I can’t seem to get started.
#1. I have created a Microsoft SQL 2005 database and user
#2.Installed the files on my server.
#3. Created the proper connection string.
I don’t think the system is even getting to the database point before throwing me an error.
Background:
IIS 6.0
Windows server 2003
Microsoft SQL 2005
Connection string:
Data Source=SLS-AB10P7\SQLEXPRESS;Initial Catalog=the001;User ID=the001;Password=the001" providerName="System.Data.SqlClient


I had some questions I’m not clear on if anyone could help
#1. Is it ok to let Visual Studios Update the software to asp.net 3.0?
#2. After install should I be going to?
“/localhost/directory/default.aspx” or “/localhost/directory/install/install.aspx”
#2. Should the IIS be to the root or “web” folder directory?
#3. I can’t seem to find a way to turn custom errors off so I can see what’s happening.

Any help is appreciated thanks!


I will try and help. Here are your points.

#1. I have created a Microsoft SQL 2005 database and user
>> That's fine. Ensure you have added the connection string to the config files (....Web\Config\properties.config)

#2. Installed the files on my server.
>> Make sure you have built (compliled) the application in VS2005/2008 and uploaded the correct files. I use Web Deployment Projects to build to a folder "c:/_SiteBuilds/" and I upload from there.

#3. Created the proper connection string.
>> Ok, make sure you have done what I said in #1.

Your other points were:

#1. Is it ok to let Visual Studios Update the software to asp.net 3.0?
>> I have and it works fine.

#2. After install should I be going to?
>> You should browser to the folder you uploaded to (Ideally a root) like: http://domain/
The Default.aspx should take you to install. If not try http://domain/install/install.aspx or if you are using a folder http://domain/cuyahogafolder/install/install.aspx

#2. Should the IIS be to the root or “web” folder directory?
>> Not sure what you mean. The root from the file system is like this 'c:/inetpub/wwwroot/' and to a folder in the
root like this 'c:/inetpub/wwwroot/cuyahoga/'. I have worked both methods fine.

#3. I can’t seem to find a way to turn custom errors off so I can see what’s happening.
>> Do that in the web.config

There are a few other things to keep in mind:

When creating a folder to run Cuyahoga from you must go to IIS and create an application on the folder you wish to run Cuyahoga from (if it is not the root).

You may have to set permissions on some folders for file uploads. Most of the time this is not required when uploading to web space from a service provider.

It seems like you are having some troubles. Cuyahoga is worth looking into. Try looking at some asp.net deployment videos on http://www.asp.net. They will outline the basics.
# bigtires001 7/27/2009 1:42 PM
Hi, Thanks for all that detailed information. I do better understand this system but I still don’t have it quite right.
I am somewhat familiar with asp.net however I am not the best at getting stuff installed. So here’s where I am at.

I am testing remotely. I created the Cuyahoga directory:

C:\Inetpub\wwwroot\Cuyahoga\

I have 2 different problems/ questions.

#1. You mentioned when creating a folder to run Cuyahoga from you must go to IIS and create an application on the folder you wish to run Cuyahoga from (if it is not the root).
I am plan on running Cuyahoga at the root of the websites directory, as a stand alone application. So does that mean I still need to “create an application” what does that mean exactly, I’m not sure I have ever had to do that or if I am mis understanding this process?


#2. If I tell IIS that the root folder is C:\Inetpub\wwwroot\Cuyahoga\

I would have to type in mydomain.com/web/default.aspx to get the pages; maybe this is where my problem lies.

Also when I configure it that way I get the same error:

Server Error in '/' 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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 61: customErrors mode="off"
Line 62:
Line 63: authentication mode="forms"
Line 64: forms name="CuyahogaUser" loginUrl="Login.aspx" protection="All" timeout="30" path="/"
Line 65: authentication

Source File: C:\Inetpub\wwwroot\Cuyahoga\web\web.config Line: 63

Show Additional Configuration Errors:


It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Inetpub\wwwroot\Cuyahoga\web\web.config line 71)


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


Then when I configure IIS to C:\Inetpub\wwwroot\Cuyahoga\web\

The files are found when testing “mydomain.com” but still kicks the error:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Cuyahoga.Web.Global'.

Source Error:

Line 1: Application Codebehind="Global.asax.cs" Inherits="Cuyahoga.Web.Global"

Source File: /global.asax Line: 1
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433




Any Ideas? Thanks for all your help I really don’t want your response to go to waste, I gotta get this!
# Constructor 7/27/2009 5:48 PM (edited 7/27/2009 5:50 PM)
If you are using a folder under the root like this:

C:\Inetpub\wwwroot\Cuyahoga\

You would browse the site like this:

http://host/Cuyahoga/
I have 2 different problems/ questions.

#1. You mentioned when creating a folder to run Cuyahoga from you must go to IIS and create an application on the folder you wish to run Cuyahoga from (if it is not the root).

I am plan on running Cuyahoga at the root of the websites directory, as a stand alone application. So does that mean I still need to “create an application” what does that mean exactly, I’m not sure I have ever had to do that or if I am mis understanding this process?

>> The root should already be set up to run Cuyahoga. You should only need to create an application on the folder or virtual directory if you create one.
#2. If I tell IIS that the root folder is C:\Inetpub\wwwroot\Cuyahoga\
I would have to type in mydomain.com/web/default.aspx to get the pages; maybe this is where my problem lies.

> If you have put the site in a folder inside the wwwroot then you would browse like this.
http://localhost/Cuyahoga

The error you posted clearly says that you have not set the Cuyahoga folder as an application.

Look at this: http://www.affiliatewiz.com/support/appstartpoint.asp

Is shows you how to do it in IIS6 and IIS7. If you are XP then Google for IIS5.5 there are lots.

You can also use http://ultidev.com/download/default.aspx
# bigtires001 7/27/2009 6:44 PM
OK well I tried that but I’m still getting the same error :P

I followed the first link you sent to learn how to setup the folder as an application. Tha was definatly somthing I did not do before you sugjested.

I put the settings just as the example on the website showed for IIS 6.0 but I called the app Cuyahoga. Is that ok?

Still when I try to access that folder via http://localhost/Cuyahoga it now says :

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.



Its saying that because there are no web files in the root folder of Cuyahoga, ther all in the sub folder /web/. When I go to http://localhost/Cuyahoga/web/
I get the same error as before.

#1. How will the site work if theres no web.config in the root directory?


#2. In the install.txt file included; for vs2005 3a. after opening the .sln file it says build solution.. How do I “build the solution”?
# Constructor 7/27/2009 8:32 PM
Sounds like you are putting the whole source in the web root folder.

You do not put the source on the web server only the built app which is inside the web or cuyahoga.web folder (depending on the version you are using).

1) Put the source in a work folder somewhere.
2) Edit the various config files to your setup needs.
3) Build Cuyahoga using Visula Studio. (I suggest using web deplyment projects. This copies the build files to a new location)
4) Upload the built site only, not the source.

# bigtires001 7/27/2009 11:09 PM
Ahhhh Ok That’s one thing about Asp.net I was not aware of, only the web folder.
Anyhow I made my changes to the connection string and rebuilt the project.

Here is my Connection String:
Data Source=SLS-AB10P7\SQLEXPRESS;Initial Catalog=cuyahoga;User ID=cuyahoga;Password=cuyahoga" providerName="System.Data.SqlClient

I also created a new database in Microsoft SQL 2005 called “cuyahoga” I made his defualt database the “cuyhoga” one.

Then I created a new user “cuyahoga”

When in Visual Studios I am able to “Attach database” and use those creditals to access the database. However when I go to use the system it kicks a NEW error. At lease first problem is solved...


Anyhow , about the user settings for the “cuyahoga” user I createdin in SQL Management Studios express.


QUESTION:
Should I be making changes in the login properties like “server roles” and “user mapping”?


Here’s the error:

Login failed for user 'cuyahoga'.
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 'cuyahoga'.

Source Error:

Line 128:
Line 129: ISessionFactory nhSessionFactory = GetNHibernateSessionFactory();
Line 130: IDbConnection connection = nhSessionFactory.ConnectionProvider.GetConnection();
Line 131: // TODO: create proper NHibernate mapping for version :).
Line 132: string sql = String.Format("SELECT major, minor, patch FROM cuyahoga_version WHERE assembly = '{0}'", assembly);

Source File: C:\Inetpub\wwwroot\Cuyahoga\Core\Util\DatabaseUtil.cs Line: 130
# martijnb 7/28/2009 9:15 AM
Make sure that you created the login 'cuyahoga' and then also link the login to the database with the db_owner role (under Database (Cuyahoga) -> Security -> Users).
# bigtires001 7/28/2009 1:21 PM
OK I got the install right.

Now The database connection. I have tried other asp.net programs and have come to learn they all install a little different. I never had any hands on training with Microsoft SQL 2005 but I can create users and databases. Once I’m that far I can use the system well.
So I am still getting the login failed error however the same login allows me in to SQL Studios and works in attaching a database in VS2008.


I have a question about setting up this database.

Normally

#1. I log into SQL management studios under the windows administrator.
#2. Right click databases and select “create new” and name it for this I used ” Cuyahoga”
#3 . Go back to the root directory of SQL on left and click on security folder and “new - login”
#4. Once the login is created “Cuyahoga” pass: “Cuyahoga” I set his default database to Cuyahoga
#5. Then I go back and right click my Cuyahoga database for properties tab and set the login of “Cuyahoga” as the owner.

DO YOU SEE ANY PROBLEMS SO FAR?

One thing I noticed is “Administrator” said to set the login or user settings under the security tab under the Cuyahoga database not the security tab for the entire SQL system.

My Connection String is still the same.

Can tell me step by step how to create the new database, login and connection string to match in Microsoft SQL Management Studios 2005?

Once I have the database connected I should be good to go! My data source is always
“SLS-AB10P7\SQLEXPRESS”
# Constructor 7/28/2009 3:23 PM
1) Open SQL Server Management Studio Express

2) Connect to your database server

3) Right click on databases and create a new database called 'cuyahoga_db' or something

4) Open the security panel and right click on 'Logins > New Login'

5) Login name to 'cuyahoga_db_login' and click 'SQL Server Authentication and put password 'cuyahoga_db_password'

6) Uncheck 'Enforce Password Policy'

7) Select 'User Mappings' in the right submenu and find your newly created 'cuyahoga' database in the list and click the 'Map' checkbox next to it

8) Click the '...' (three dots) button to the right under default schema, click browse and then click the dbo checkbox then click ok, then click ok again

9) In the database role membership panel below click 'db_owner' and then click ok.


You should have a user that the following connection string equates to:

< connectionString>Server={Your Machine Name}\SQLEXPRESS;Initial Catalog=cuyahoga_db;User ID=cuyahoga_db_login;Password=cuyahoga_db_password< /connectionString>

Try:

http://www.bestechvideos.com/2008/07/20/sql-server-2005-using-sql-server-management-studio

Look around at some video tutorials. Hope this helps.
# bigtires001 7/28/2009 7:44 PM
ALRIGHT!

Yes I see My problem now. I did not have the "User Mappings" Setting correct in the securitys tab.

Also the database owner checkbox wasent checked.

Thanks for your help. I will finally get to try this software out.