Iron Speed Technical Forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
sdms

Registered:
Posts: 139
Reply with quote  #1 
I have an application hosted on my own IIS server which works and runs fine but for this application I am moving it to one of our larger hosting providers. My understanding is that this is shared hosting on Windows 2008 Server (IIS) environment with SQL2008. This is the first time I have gone down this path (shared hosting on someone else's server) and after uploading my application I get an error message when I try to go to the start page. The hosting company advised me it was probably to do with my web.config file and to gradually add in the various modules to try and discover what is causing the error.

I have done so but I still get this error (see attached image)

I am not that conversant with these types of errors and was hoping someone out there can point me in the right direction.

I developed and compiled the app in SQL2008 with stored procs and dotnet 3.5

Steve

Attached Images
Click image for larger version - Name: hosterror.jpg, Views: 34, Size: 285.36 KB 

davidnowens

Avatar / Picture

Registered:
Posts: 86
Reply with quote  #2 
Hi,

Have you tried accessing the Troubleshooting folder and pages using the browser for the new hosted site - this will allow you to test certain things to see if the environment is configured correctly.

Also - it looks like a file or files are missing - did you deploy the solution - if so did you copy all folders from the Deployment to the new environment.

For more help search Troubleshooting in the ISD knowledge base.

KR

Dave

__________________
David Owens Wimbleton Cross Ltd Need help with ISD Projects at competitive rates, why not contact us directly. davidowens@wimbletoncross.co.uk or see https://www.wimbletoncrossltd.co.uk
sdms

Registered:
Posts: 139
Reply with quote  #3 
Thanks Dave for the pointers.

I deployed everything, one copy on my web server which all runs correctly which proves there is nothing wrong with the application and nothing is missing and a duplicate copy of the application on the server that I have set up the hosting on.

I went to the troubleshooting/default.htm page on my web server and it comes up fine and passes all of the tests. I then went to the same page where my application is being hosted and get a 500 Internal server error message so it wont even display the htm page. It sounds like something is wrong there end especially if it wont even display a simple htm page.

I even created a basic html page with the word test on it and uploaded it to the virtual directory as well as the troubleshooting directory and neither of them will display - again just get 500 Internal server error

Steve
miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,697
Reply with quote  #4 
Do you have any third party controls you are using?  If so, make sure that all of the required .dll's are copied to the bin folder. 

HTH,

__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
sdms

Registered:
Posts: 139
Reply with quote  #5 
Thanks Miles but no 3rd party controls, straight of the box iron speed application.

I just tried going to the troubleshooting/default.htm page again and it has decided to run.

Test 1: run microsoft .Net framework installation test - Successful
Test 2: run microsoft .Net framework configuration test - Successful (version 4)
Test 3: Default database file (TestConfiguration.mdb, Customers table) - Fails (
[SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.])

Test 4: Run Microsoft SQL server connection test - Failed (see attached image)

Steve

Attached Images
Click image for larger version - Name: hosterror2.jpg, Views: 19, Size: 203.19 KB 

Gerard

Registered:
Posts: 588
Reply with quote  #6 
Create a new test application on your machine pointing to the hosted SQLServer database build a page or 2 and see if it accesses the database and runs the pages

If that works look for any differences in the connection string 1st
and work your way back.
What tools did you use to set up the hosted server. the hosted companies tools or plesk or some other way.
Example problem plesk on;y sets up virtual directories correctly if you create the folder the app is sitting in at same time
Gerard
sdms

Registered:
Posts: 139
Reply with quote  #7 
Gerard

I did as you suggested, created a new app and pointed it to the hosted SQL database and it runs without error on my development machine. I checked the connection string and it was slightly different so I used the same connection string for the hosted application but I get the same error message??

I even deployed the new app in place of my other one but only get the same error message.

With my virtual directory i did upload the application folder first then through my console created a virtual directory nominating that folder name as the virtual directory. Their support have confirmed that it is showing as a virtual directory.

I am stumped, been on this a week now. What really gets me is that this all works on my local dev machine and my IIS server but not on their server.
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,962
Reply with quote  #8 
I just noticed that your application is in 3.5 Net Framework but your test config shows 4.0 setting. That must be the issue.


Jimi J

  

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

Kirill

Avatar / Picture

Registered:
Posts: 223
Reply with quote  #9 
Another possible problem - SQL authentication. Make sure you do  not use Windows authentication in the connection string.
sdms

Registered:
Posts: 139
Reply with quote  #10 
Thanks everyone for your suggestions

Jimi: I checked this with them and they said as long as my web config file has the correct framework version referenced (which mine (3.5) does) then this is not an issue. They support 3.5 and 4.0

Kirill: it is sql authentication not windows so wasn't the issue.

So the interesting thing here is that about an hour ago they got my application up and running in their environment by removing areas of code in my web config file. Later this evening I will post the code they removed in the hope that someone can advise me what the code refers to and what impact it may have on my application.

Thanks everyone for your input

Steve
sdms

Registered:
Posts: 139
Reply with quote  #11 
OK to get my application running on this providers shared hosting they removed two blocks of code from my web config file.The first image contains the "configSections" block of code that was removed at the beginning of my web config file and the second image shows the block of code under "DataAccessLayerWhereClause" that was removed from the bottom of my web config file.

What they have told me is that I need to enter these lines back in to my web config file one at a time and reload it so I can see exactly what part of the web config file is causing the issue of my application not loading so I still have to do this.

Before I do this, can anyone explain what these two blocks of code do in my web config file and what the implications might be if they are not put back.

Steve

Attached Images
Click image for larger version - Name: config_change01.jpg, Views: 44, Size: 136.07 KB  Click image for larger version - Name: config_change02.jpg, Views: 31, Size: 84.00 KB 

miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,697
Reply with quote  #12 
Those are data access layer formulas.  I believe that ISD executes those at run-time, and they are of course application wide...

How on Earth that could be causing a problem I don't know, other than perhaps internally how it might be accessing the database.

HTH,

__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
sdms

Registered:
Posts: 139
Reply with quote  #13 
I am stumped as well Miles but I will need to add the code back into my config file line at a time, it might only be one particular line so once I have done this I will post my results.

Steve
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement