This is a migrated thread and some comments may be shown as answers.
Telerik MVC 3 site not rendering after deploying to IIS7
6 Answers 90 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
KooterB
Top achievements
Rank 1
KooterB asked on 04 Sep 2011, 02:57 AM
I am a noob at deploying mvc code. Basically i have a windows server 2008 instance that i setup to host a MVC3 website that uses mvc telerik extensions. The website loads perfectly fine in my local dev box, but once it is deployed it loses all the jquery and styling it seems, also my database connection does not appear to be working because there is no data populated in the poorly rendered grids for my views. the website is located here: WebSite. This page is a view that has a tabstrip that have links to partial views. When the page loads you will see that when you click on a tab it does not render like the attached image displays.  I have checked to make sure that the style sheets and telerik dlls are included in the deployment when the website is deployed to IIS.  Also you will notice that there is no data in the grids. This confuses me because I used the same connection string in the debug.config except I placed the underlying SQL connection string in there in this format:

 
<add name="PayRentEntities" connectionString="metadata=res://*/Models.PayRent.csdl|res://*/Models.PayRent.ssdl|res://*/Models.PayRent.msl;provider=System.Data.SqlClient;provider connection string="data Source=SQL001; Initial Catalog=PayRent; User ID=****; Password=******!;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>


Also you will notice that when you click on the tabs the address changes at the top which means it is not loading the partial view within the parent view. In the VS on my local machine the content loads nicely within the main Admin View. Here is the code for the Apartment View to be loaded within the Admin Tabstrip view

parent.Add()
                    .Text("Apartments")
                    .LoadContentFrom("ApartmentGridOnDemand", "Apartment");


 
            

6 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 05 Sep 2011, 01:45 PM
Hi Kooterb,

I checked that site with Firebug and I noticed a couple of internal server errors (see attached screenshot). I would suggest to disable the custom errors in your application's settings and then to examine the Response for these errors in Firebug - I believe this will help you pinpoint the reason for the problem.

Kind regards,
Georgi Tunev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
KooterB
Top achievements
Rank 1
answered on 06 Sep 2011, 06:59 AM
Wow. Thanks that cleared it right up. I was missing a jquery library file in my scripts folder.  The application loads and the database is working. I now just have one minor issue with the footer of the Telerik Grid which is not aligning properly at the bottom of the grid. If you check out the website you can see this occurrence. I will be trying to look into it in the meantime if you see a simple solution please let me know.
Thanks!
0
Dimo
Telerik team
answered on 06 Sep 2011, 07:11 AM
Hello Kooter,

The problem with the Grid pager is caused by uncleared floats. There should be the following CSS rule in telerik.common.min.css:

.t-grid-pager
{
    border-style: solid;
    border-width: 1px 0 0;
    line-height: 1.8em;
    overflow: auto;
    padding: 0.2em 0.6em;
}

The overflow:auto style clears the floats of the elements inside the pager. For some reason you don't have the above CSS rule. Have you modified the file? Or maybe you are using an older version of the base stylesheet?

All the best,
Dimo
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
KooterB
Top achievements
Rank 1
answered on 06 Sep 2011, 07:43 AM
Thanks for the response. I added the following you provided to the telerik.common.min.css and I don't see any change...attached the file so you can see 

Thanks
0
Dimo
Telerik team
answered on 06 Sep 2011, 07:48 AM
Hi Kooter,

Please clear the browser cache, I already see the problem resolved on your live URL. However, please note what I said previously - you seem to be using an old or modified version of the CSS files, which do not include all latest stuff. Please check this and upgrade.

All the best,
Dimo
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
KooterB
Top achievements
Rank 1
answered on 06 Sep 2011, 08:04 AM
Will do thanks!!
Tags
General Discussions
Asked by
KooterB
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
KooterB
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or