Camillia
asked on
what am I missing from this page??
I got this template
http://demo.truethemes.net/Karma-Site-Template/
(if you click on "pages" and choose "homepage-jquery2"..that's the page I want to have)
I created an ASP.Net website app. Copied the files I got from that template. Put the page in Default.aspx. It looks fine on my laptop when I run it.
Uploaded it to our hosting server. I double checked all the files and I moved the entire thing but this is how it looks like
http://stagingbd.com
what am i missing??
http://demo.truethemes.net/Karma-Site-Template/
(if you click on "pages" and choose "homepage-jquery2"..that's
I created an ASP.Net website app. Copied the files I got from that template. Put the page in Default.aspx. It looks fine on my laptop when I run it.
Uploaded it to our hosting server. I double checked all the files and I moved the entire thing but this is how it looks like
http://stagingbd.com
what am i missing??
Also it doesn't look like your host supports ASP.NET. Can you confirm that they do?
ASKER
It does support ASP.Net because I have another site there that works.
Not sure what you mean by your post 39469184. Do you see the site? does it come up for you??
Not sure what you mean by your post 39469184. Do you see the site? does it come up for you??
"stagingbd.com" reports as IIS 7.5 so it's the right web server. Either your files are not in the right place or something isn't turned on in your hosting.
ASKER
That's weird. I do see the website from my machine.
Try http://stagingbd.com/default.aspx
The files are in the right folder. The site comes up for me but looks like a style sheet is missing but all the CSS files are there. Try the URL above and see if it comes up for you.
This is weird.
Try http://stagingbd.com/default.aspx
The files are in the right folder. The site comes up for me but looks like a style sheet is missing but all the CSS files are there. Try the URL above and see if it comes up for you.
This is weird.
ASKER
My hosting server says there's a DNS issue on that site. Let me dig into that. I wonder if that's the cause.
I suspect it's your server is not looking for default.aspx as one of the default index files. If you upload a simple index.html do you see that when you view just your site: http://stagingbd.com/
And here's how you do it :) Shows how to modify your .htaccess file to setup your directory index file.
https://my.hostmonster.com/cgi/help/184
https://my.hostmonster.com/cgi/help/184
ASKER
thanks. I'll change it on hostmonster. Now, you see that site in your post 39469878, what am I missing that the site looks like that? all the CSS files are there. I double checked the image folder too.
Do I need to make the change to hostmonster first?
Do I need to make the change to hostmonster first?
ASKER
I fixed the DNS that our hosting server reported in Hostmonster. The site still looks like it has missing CSS styles. Not sure how to go about debugging this. I have all the files here.
I cleared the cache too.
I also have another site that works fine...on the same server..for 2 yrs now.
I cleared the cache too.
I also have another site that works fine...on the same server..for 2 yrs now.
I think you have anonymous access denied to your website in web.config. So your css and javascript files aren't loaded.
Explicitly allow access to all users to your css and js files.
Explicitly allow access to all users to your css and js files.
ASKER
I removed all these sections, cleared the cache and still didnt look right.
I put them back and still the same. Now, if you go to the url above, it adds "returnURL" at the end.
These are the sections I took out and added back in to debug. I dont have the "Admin" and "Provider" folders yet but I added them in webconfir for later. I don't know if that would make a difference.
I'm thinking about deleting the entire folder and uploading just a simple page and see how that would look like.
I put them back and still the same. Now, if you go to the url above, it adds "returnURL" at the end.
These are the sections I took out and added back in to debug. I dont have the "Admin" and "Provider" folders yet but I added them in webconfir for later. I don't know if that would make a difference.
I'm thinking about deleting the entire folder and uploading just a simple page and see how that would look like.
<authorization>
<deny users="?"/>
</authorization>
<location path="SessionExpired.aspx">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Account">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="js">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Scripts">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Default.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="swf">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Agreement">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Admin">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Provider">
<system.web>
<authorization>
<allow roles="Admin,Provider"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
For testing purpose...can you allow access to everyone:
<authorization>
<allow users="*"/>
</authorization>
ASKER
Changed it. Cleared cache just in case. Brought up the site and the URL looks like this and no CSS applied to it.
http://www.stagingbd.com/Default.aspx?ReturnUrl=%2f
I've attached the webconfig. Running out of ideas. The only thing i can think of is to delete it and upload another site. But it's not like this is a huge site. It's just the default.aspx.
Maybe put the default.aspx in the same folder as the CSS and see if that would work and narrow down the issue. Not sure
webconfig.txt
http://www.stagingbd.com/Default.aspx?ReturnUrl=%2f
I've attached the webconfig. Running out of ideas. The only thing i can think of is to delete it and upload another site. But it's not like this is a huge site. It's just the default.aspx.
Maybe put the default.aspx in the same folder as the CSS and see if that would work and narrow down the issue. Not sure
webconfig.txt
ASKER
And, look at these 2 screenshots.
I have another site on the same server that works. The CSS folder for the one that doesnt work...the files...look "green". The other one that works...the files look like regular files.
Does it mean the CSS file wasn't included in the project?? (running out of ideas and I know this might seem absurd :))
Nowork.png
works.png
I have another site on the same server that works. The CSS folder for the one that doesnt work...the files...look "green". The other one that works...the files look like regular files.
Does it mean the CSS file wasn't included in the project?? (running out of ideas and I know this might seem absurd :))
Nowork.png
works.png
ASKER
I copied default.aspx to the CSS folder and then tried this but still no!
http://stagingbd.com/css/default.aspx
http://stagingbd.com/css/default.aspx
ASKER
One more observation:
On my laptop, locally, if I do "inspect" in Chrome, I can get the CSS's line number when I hover over an element.
In the uploaded one, it doenst give me the CSS's line number or the CSS file's name.
Correction I changed the webconfig to this. Cleared cache but still the smae result
<authorization>
<allow users="*"/>
</authorization>
On my laptop, locally, if I do "inspect" in Chrome, I can get the CSS's line number when I hover over an element.
In the uploaded one, it doenst give me the CSS's line number or the CSS file's name.
Correction I changed the webconfig to this. Cleared cache but still the smae result
<authorization>
<allow users="*"/>
</authorization>
I see your web.config has <deny users="*"/>
Can you make it to <allow users="*"/>
Can you make it to <allow users="*"/>
Under view source, I click on the css/mystyle.css and it just redirects me to the Default.aspx page again. I would suspect it's permissions that guru_sami is eluding to
ASKER
1. I had made a mistake in the webconfig. I changed it to allow users = "*". It's attached. But still no change. I cleared the cache too.
2. I have another site on the same server. I stopped that just to make sure there's no confict but still the same.
3. I also uploaded the HTML file that came with my template index-jquery-2.html to the root folder. I clicked on it and doesnt look correct. I also added this to webconfig and tried
stagingbd.com/index-jquery -2.html but it redirected me to default.aspx with this URL.
http://stagingbd.com/Default.aspx?ReturnUrl=%2findex-jquery-2.html
4. Maybe I should delete the entire site and try just a default.aspx with a simple CSS to see if that works.
webconfig.txt
2. I have another site on the same server. I stopped that just to make sure there's no confict but still the same.
3. I also uploaded the HTML file that came with my template index-jquery-2.html to the root folder. I clicked on it and doesnt look correct. I also added this to webconfig and tried
stagingbd.com/index-jquery
http://stagingbd.com/Default.aspx?ReturnUrl=%2findex-jquery-2.html
<location path="index-jquery-2.html">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
4. Maybe I should delete the entire site and try just a default.aspx with a simple CSS to see if that works.
webconfig.txt
What did you end up changing if anything in your .htaccess file? Can you post what the contents currently are?
https://www.experts-exchange.com/questions/28232275/what-am-I-missing-from-this-page.html?anchorAnswerId=39469889#a39469889
https://www.experts-exchange.com/questions/28232275/what-am-I-missing-from-this-page.html?anchorAnswerId=39469889#a39469889
ASKER
I didnt change anything in .htaccess file. It's a PHP file and I didnt see a place to add default.aspx. I will post the content of that file soon.
ASKER
This is what I have in the .htaccess file
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
So you haven't followed the directions given here: https://my.hostmonster.com/cgi/help/184 to set the index to Default.aspx?
ASKER
see my above post. I don't know where to change it. Also, I didnt do this for my other site. I have that site with godaddy, tho.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
let me try
It also seems you need to be logged in to view the site. If I try and access any of your css or scripts it is redirecting me to your Default.aspx file with a ReturnURL parameter, which is a common thing to do with authentication to return the user to the page they've requested after logging in. Is that your intended purpose?
such as:
http://stagingbd.com/Default.aspx?ReturnUrl=%2fjs%2fkarma.js
This is in your webconfig:
such as:
http://stagingbd.com/Default.aspx?ReturnUrl=%2fjs%2fkarma.js
This is in your webconfig:
<authentication mode="Forms">
<forms loginUrl="Default.aspx" defaultUrl="~/Admin/Default.aspx" timeout="2880"/>
</authentication>
You should be aware that none of your scripts are loading either so either it's the encryption issue as well or something else? Are those files "green" too?
If you comment out the authentication does your site work?
If you comment out the authentication does your site work?
<!--
<authentication mode="Forms">
<forms loginUrl="Default.aspx" defaultUrl="~/Admin/Default.aspx" timeout="2880"/>
</authentication>-->
ASKER
I'm uploading the un-green files now. I'll see how that works. Then I'll take a look at 39472265
you just posted. I hope this is it.
you just posted. I hope this is it.
ASKER
Yes, that was it! It was the encrypted files! So, it wasn't "absurd" as I thought :)
Thank you so much for sticking with this. I still have more issue with it but I will open a new ticket for it.
Thanks again.
Thank you so much for sticking with this. I still have more issue with it but I will open a new ticket for it.
Thanks again.
no certainly wasn't absurd and talk about left field! :)
ASKER
I know! You're the best. Thanks again
Kamila.
Kamila.
https://my.hostmonster.com/cgi/help/upload-site
Can you confirm they're in public_html/ ?