This is a migrated thread and some comments may be shown as answers.

Proper Way to Setup Website

5 Answers 311 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DGDev
Top achievements
Rank 2
DGDev asked on 16 Mar 2009, 04:12 PM
I've been having issues with RadControls for some time now. Specifically, I can't seem to figure out what is either wrong with my IIS setup or whether this is an application configuration problem.

My Setup:
Windows Server 2008 + IIS7 Integrated Mode
ASP.NET 3.5 SP1

Currently, the only way I can get RadControls to work properly is if I create a separate Website within IIS for each project.
For example:
My default site is like such:  http://www.site.com/
I like to keep my websites I'm working on within: http://www.site.com/sites/projectsitename/

If I want to work with RadControls I have to create a new Website; configure the host headers for it; then edit my machine's host file to point the new domain at my local ip.

So: http://www.newsite.com/   is really in the folder location of http://www.site.com/sites/newsite
I'm really tired of having to do this though.

When debugging, Visual Studio's web server displays my site perfectly, but when I try to access:
http://www.site.com/sites/projectsitename/
I get errors all over FireBug: "Sys is not defined", "ASP.NET Ajax client-side framework failed to load."

Today I noticed what seems to be the root problem. In Firebug I'm receiving:
http://www.site.com/sites/projectname/WebResource.axd?d=wholebunchofjibberish....   403 Forbidden
... and it's doing this multiple times.

So it seems all GET requests to the WebResource file are being forbidden by IIS for some reason.

Can anyone help me? I litterally read every post on here about these errors and still can't seem to solve this problem.


5 Answers, 1 is accepted

Sort by
0
DGDev
Top achievements
Rank 2
answered on 17 Mar 2009, 12:35 AM
Well I've made some progress...
I'm no longer receiving 403 Forbidden or 401 Unauthorized errors for axd and gif/jpg image files.

All files are loading properly except my axd now and I get a 404 Not Found error for:
WebResource.axd & Telerik.Web.UI.WebResource.axd

Any clues?
0
DGDev
Top achievements
Rank 2
answered on 17 Mar 2009, 12:52 AM
Nope... now I'm back to:

ASP.NET Ajax client-side framework failed to load.
Sys.WebForms.PageRequestManager._initial... document.getElementById('aspnetForm'));

Sys is not defined
Sys.WebForms.PageRequestManager._initial... document.getElementById('aspnetForm'));

Sys is not defined
Sys.Application.initialize();
0
DGDev
Top achievements
Rank 2
answered on 17 Mar 2009, 04:01 AM
Here's something interesting:

When I set my application pool's "Enable 32-bit applications" setting:
To 'True', then FireBug reports back "GET WebResource.axd  -  404 Not Found"
To 'False', then FireBug reports back "401 Unauthorized" for "WebResource", "ScriptResource", & "Telerik's WebResource"
0
DGDev
Top achievements
Rank 2
answered on 17 Mar 2009, 05:03 AM
Ugh this is so incredibly tiring to figure out. More so than any other coding problem.
I've tried switching to classic mode; no luck.

Yet when I create a new website for each application RadControls / Ajax work flawlessly.
I know AJAX is installed and working. I'm using .NET 3.5 SP1 which has it integrated.

I'm really at a loss here. What I don't understand is, why are there NO concrete answers to this problem?
What configuration are the Telerik developers using on their servers? Shouldn't it pretty much be the same across the board?
0
DGDev
Top achievements
Rank 2
answered on 17 Mar 2009, 06:45 AM
Ok, fixed the problem.
The best advice I can give to fellow developers who face this problem. Look at your server logs; specifically where it shows your 401,403,404 errors and right next to it, take a look at its subcode.

Then go here: http://support.microsoft.com/kb/318380

In my case (403 subcode 18) dealt with application pools. I decided to create a new Website within IIS for development. (It points to my /sites directory).

Give this site its own app pool. I'm using Integraded, Allow 32 bit apps = false, Load User Profile = True
If the "Load User Profile" gives you a problem, go here:
http://blogs.iis.net/bills/archive/2006/10/18/loadUserProfile-and-IIS7-_2D00_-understanding-temporary-directory-failures.aspx
This fixes the issue instantly.

Now all my development projects are under a new subdomain I created "dev.site.com/projectsitename"

In all, I really can't say what the exact problem was. It most definitely had to do with application pool settings and the way my site structure was laid out.

Hope this helps! :D



Tags
General Discussions
Asked by
DGDev
Top achievements
Rank 2
Answers by
DGDev
Top achievements
Rank 2
Share this question
or