MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Error when installing trough NuGet  (Mono Support )

Viewed 20427 time(s), 9 post(s) 4/1/2015 7:44:49 AMby TomSproet
TomSproet

TomSproet

4/1/2015 7:44:49 AM
Dear Customer Service,
For 2 weeks I have been fiddeling around with your framework trying to get it running. I have tried the following methods:
- Installing trough web platform (returned an error that simply stated that it cannot be installed)
- Manually downloading it and setting it up in IIS (gave empty error 403's and alot of headaces)
- Installing it in a project trough NuGet from https://www.nuget.org/profiles/mononuget

The last option got me the furthest into the installation however on the first time run it returns an error that states
Server Error in '/' Application.Runtime ErrorDescription: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated. 

When i check the monox logs they appear to be empty. I have no clue what to do next and help would be appreciated
This content has not been rated yet. 
62 Reputation 8 Total posts
khorvat

khorvat

4/1/2015 8:31:20 AM
Hi Tom,

we will help you get MonoX up and running, first we need to check write permissions on \MonoX\ApplicationData - set them to full for account running your application pool. You can also check event viewer and see if there are some errors. In the web.config please check if you have turned off customErrors so we can get full stack trace for errors. Let's start with this to narrow down the issue.

Note: at the moment we don't have latest version of MonoX on Web Gallery and NuGets.

You should have contacted us earlier for help and not struggling with installation for 2 weeks. 

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
TomSproet

TomSproet

4/1/2015 8:46:40 AM
For hosting im currently using IIS Express so there is no real application pool and as such i dont see the identity in the security tab.
After turning off the custom errors i get this error screen:

Server Error in '/' Application.Parser ErrorDescription: 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 'WebApplication6.HttpApplication'.

Source Error: 

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication6.HttpApplication" Language="C#" %>

Source File: /global.asax    Line: 1 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237

http://puu.sh/gXrgN/5001e1062a.png

This content has not been rated yet. 
62 Reputation 8 Total posts
khorvat

khorvat

4/1/2015 12:49:23 PM
Can you let us know if you have added your own Global.asax ? If so you need to remove the "PrecompiledApp.config" from the root folder in order to recompile the app and use your global.asax.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
TomSproet

TomSproet

4/2/2015 7:58:19 AM
I downloaded the preview pages from NuGet https://www.nuget.org/packages/MonoX.CMS.Theme.Default.Demo.Pages/
ill try to do a fresh install from the CMS with the earlier mentioned changes to the web.config files
using only the Runtime and CMS installer without the pages.
This content has not been rated yet. 
62 Reputation 8 Total posts
TomSproet

TomSproet

4/2/2015 7:54:24 AM
Did a fresh install of the CMS and the runtime.
I installed it trough the NuGet package manager in visual studio 2013.
The packages used for this were:
https://www.nuget.org/packages/MonoX.CMS.Install/
https://www.nuget.org/packages/MonoX.CMS.Runtime/

This is the resulting folder structure
http://puu.sh/gYEBQ/6c6c215587.png

Im also including my web.config file.

As you may see in the puu.sh i do not have a file called PrecompiledApp.config


This content has not been rated yet. 
62 Reputation 8 Total posts
khorvat

khorvat

4/2/2015 8:03:11 AM
Can you please provide us with error log or screenshot ? Please make sure that you have set folder permissions before you try to run the CMS in order to capture the error.

Do you still have the following error ?
" <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication6.HttpApplication" Language="C#" %>"

BTW as I mentioned nuget packages have old version of the CMS, new 5.1 is available here: 
http://monox.mono-software.com/Downloads/#MonoX

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
TomSproet

TomSproet

4/2/2015 8:25:14 AM
How can i load the latest version into visual studio? since copy pasting into the project folder doesnt seem to work, the files dont get recognized by visual studio. 
I read something about a sample project in the ReadMe, is this ment to be used.

Sorry for all these issues, im more used to PHP and zend etc but for my contractor i need to use .NET :P


Update:
Tried a fresh install from the latest version on the website.
Went into Police Academy\MonoX\Samples\Solution  (police academy is the root) and as instructed in the readme in Solution i copy pasted Portal and the project file into the root and in Visual Studio i loaded the project thats now located in the root.

Upon running this project and starting it i get a huge stacktrace error with permissions, after reading into this i saw that you need to give the IIS account Write permissions. As visual studio 2013 uses ISS Express the user account used is the current user of the pc (administrator in my case). I gave every possible user full access to all the folders within the project and i still get the same errors.

Included is the saved version of the error page. 
This content has not been rated yet. 
62 Reputation 8 Total posts
khorvat

khorvat

4/2/2015 8:20:07 AM
Hi,

you should download the latest version and then read the following blog. You should take special attention on the "Changing the configuration files" section.

After we have created a project folder structure, we need to change the configuration files. The majority of users will want to use Visual Studio IDE in their everyday work, so we can proceed by copying the /MonoX/Samples/Solution/ProjectName.sln and /MonoX/Samples/Solution/Portal.csproj to the Web site root folder. Rename ProjectName.sln to MyProjectName.sln and open it in Visual Studio. You can subsequently change the configuration settings - MonoX will work with the default settings, but it is good to know their exact purpose. Also note that any file editor (besides Visual Studio) can be used to make these changes.
If you didn't perform the MonoX installation or your database connection string is not properly set for any other reason, find the following code in the web.config and modify it by entering your username, password, database server and instance names,

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts