Server Error 500

Topics: Developer Forum, Project Management Forum
Mar 18, 2012 at 2:17 PM

I've downloaded the small VB example of Version 2.2.1 and opened it with VS 2010 and changed the design of the Site.Master.

Running the site from within VS caused no problems - so far, so good.

The first problem occurred when doing a full create - when running again from within VS there where some DLL's missing in the bin folder. I added them manually from the downloaded example and it works.

After publishing the project to a directory (as described in howto_install.txt) and uploading it via FTP to the website, I tried to open it in the web browser, but it always returns '500 - internal server error'.

The provider only alows ASP.NET 2.0 or 4.0 so I increased the project's ASP version to 4.0, included all files in the bin and N2 folders and made another full create. This ended with an error, that again some DLLs were missed. So I changed the options on all these DLL's to 'always copy to output folder) and did another full create. Then again uploaded it to the website where I deleted all previous files first - same error.

Do I need to recompile the N2 source to ASP.NET 4 too or what may be the problem?

Do I need to include the N2 folder in the project? What to do to ensure that all needed DLL's will always be included on publishing/deploying? Wich sections (exactly!) have to be removed when provider is using IIS 7 resp. 7.5 in web.config? (httpmodules - OK, but what exactly means 'httphandlers'?)

Hope you can help...?!

Coordinator
Mar 19, 2012 at 8:57 AM

It could actually be that some dlls are missing. Also the zip file. Sometimes visual studio removes assemblies for some arcane reason.

The specific errors are interesting to us if you want help. You can turn off custom errors to get more information from the server:

<customErrors mode="Off" />

Mar 19, 2012 at 5:49 PM

Thanks for your hints libardo.

Turning off he custom errors was one of the first actions, also <compilation debug="true"/>, <httpErrors errorMode="Detailed" /> and <asp scriptErrorSentToBrowser="true"/> but no more details were shown :-((

Hmmm...missing DLLs....I copied ALL files from the bin folder of the local VB project to the server- same result. The projects runs properly from VS2010 but not on the web server.

Any other ideas what to do or how to get more detailed error messages?

If not, I can give you temporarily access to our webserver, so you can have a look on the installation.....?

Regards,
Gotan

Coordinator
Mar 19, 2012 at 10:30 PM

Try removing System.Data.SQLite. It contains  32-bit native code. Sure, I can take a look

Mar 19, 2012 at 11:11 PM

I've already removed that before first deployment because this is recommend in howto_install.txt, section 'MOVE TO SERVER ENVIRONMENT'.

Think I have tried all tipps that can be found in the web concerning N2 and deployment problems ;o))

Thanks that you're willing to have a look on the websever - would be great help! Unfortunately I have a lot of dates this week - I can prepare the neccessary accounts this weekend, if this would be OK for you? BTW: how to send the passwords?

Thanks a lot,
Gotan

Mar 24, 2012 at 4:59 PM

Hi libardo,

I have created a read-only FTP account for you - do you have any idea how to pass the access data?

Regards,
Gotan

Coordinator
Mar 25, 2012 at 9:42 AM

You can use the contact form here on codeplex.

Apr 10, 2012 at 6:07 PM

Solved the problem.

Because of some trials with errors the ID's of rootnode and startpage on the web server changend, but the web.config still contained the default ID's used with the local database.

Also I had to insert

        <httpRuntime requestValidationMode="2.0" />

in the <system.web> section of the web.config file as well as adding the attribute

        validateRequest="false"

on the opening tag of the <pages> section.

Thanks to libardo for his help!