Clean up your site with ASP.NET AJAX
Create richer, more interactive Web sites with ASP.NET AJAX. All Go Daddy Windows Hosting accounts that have ASP.NET 2.0 enabled now support the latest Web-enhancing library, ASP.NET AJAX, from Microsoft.
This cross-browser, cross-platform Javascript library represents a new packaging of many of the technologies you already know and love, such as JavaScript, cascading style sheets (CSS), DHTML, and XMLHttpRequest.
Now, you can make your visitors’ Web experience richer and more satisfying—the program’s partial page update feature makes it possible for individual pages to refresh more quickly. ASP.NET AJAX also makes it easy to create “mash-up” applications, seamlessly merging information from multiple sources. It also works with Visual Studio 2005 so you can take your ASP.Net 2.0 sites to the next level.
What is ASP.NET
ASP.NET AJAX is an ASP.NET framework from Microsoft for quickly creating interactive and highly-personalized Web experiences that work across all the most popular browsers.
With ASP.NET AJAX, you can:
· Create next-generation interfaces with reusable AJAX Hosting components.
· Enhance existing Web pages using powerful
· Continue using Visual Studio 2005.
· Access remote hosting services and data directly from the browser without writing a lot of complicated script.
· For more information, see the Official Microsoft ASP.NET AJAX site.
NOTE:
ASP.NET AJAX assembly (System.Web.Extensions.dll) is installed in the global assembly cache (GAC). Do not include the assembly in the Bin folder of your AJAX-enabled Web site.
Microsoft and Windows are registered trademarks of Microsoft Corporation. All rights reserved.







I created an AJAX site which works perfectly on my local machine. I also published it on a server on my network and it worked fine. However, when I tried publishing it to godaddy, I got all kinds of errors pointed to the web.config file regarding the theme not found or the master page not found. I looked up these files via FTP and they are all there. What is going on? Has anyone ever been successful with publishing an AJAX site here?
Reply to this
We have many customers successfully running AJAX enabled sites. If you continue to have problems please contact customer support at (480) 505-8877.
Scott
Reply to this
I was able to get this to work by manually copying the AjaxControlToolkit.dll file in the bin directory in the website (server). When I publish the project to the server it does not copy the dll to the server. After that it works fine.
Reply to this
Do you have AJAX control toolkit installed? Thanks.
Reply to this
No, the AJAX Control Toolkit is not installed. The controls that are part of the Toolkit should work fine on our Hosting accounts. Just incorporate the control into your project and upload it to your hosting account when you deploy the project.
Scott
Reply to this
I believe this is where the problem is. The AJAX control toolkit is not part of the standard AJAX. These were released as a compliment to the core AJAX:
http://ajax.asp.net/toolkit/default.aspx
Because it is not installed on the hosting server, the AjaxControlToolkit.dll has to be included in the web project. For whatever reason (trust maybe?), the pages can't get to the dll.
I don't doubt you can run websites with just the core AJAX, it's trying to use the AJAX control toolkit poses the problem.
Reply to this
i got it to work finally. but only if everything is in the root directory. you can't have it as a project inside a folder.
Reply to this
Tony - we're not experiencing any problems similar to what you describe. What do you mean by "a project inside a folder"?
Brian
Reply to this
Let's say I want to publish to "www.mysite.com/mymusic" via either ftp or visual studio 2005. I would then get an error saying "theme" not found, ie, it could not locate the App_Themes folder under "mymusic" directory. I tried specifying the complete path, ie, "~/mymusic/App_Themes/theme" but that didn't seem to do any good. If i got rid of the theme reference in the web.config file, I then got this error:
"Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified", even if the dll is in the bin folder.
So instead of publishing the site to a folder called "mymusic", i just published it directly into the root "www.mysite.com" and voila, everything works.
what am i missing here?
Reply to this
Can you back up a bit? What hosting plan, is this Dedicated Windows? The problem you're experiencing sounds pretty specific to the application you're trying to make use of. I caught AjaxControlToolkit, http://ajaxcontroltoolkit.com/, which makes use of http://ajax.asp.net/ - I believe this works on our Windows shared hosting. Sorry, I'm a Linux guy myself, so I'm a little lost here. Wish I could be more help. Maybe if you give a little more background, we can try to recreate the problem on our side.
Dave.
Reply to this
He means a folder within the root directory. I am having similar problems trying to run Ajax and am getting frustrated, thinking about another hosting provider.
Reply to this
Try creating a Custom Directory for your subdirectory name, with the web root flag checked.
Brian
Reply to this
I just signed up for shared hosting and had my issues with getting an AJAX site to run so let me add my 2 cents to help others in the future.
1) support is non-existent. They are extremely friendly but know nothing and do not allow you to talk to somebody that does.
2) It seems that only the / folder is configured as a virtual directory in IIS. If you place your code in a subfolder it will not work.
3) if you place everything in / things seem to work with asp.net, ajax and the ajax toolkit, i got them all to work -- no thanks to support
4) If you create a subdomain and you point it to a subfolder then that folder is configured as a virtual folder in IIS. So the only way to place your app in a subfolder is to create a subdomain for it.
Considering that GoDaddy advertises that you can run multiple applications within a hosting package i find it weird that we cannot configure virtual folders without adding subdomains.
A simple solution would be to allow the users to configure any subfolder as a virtual folder in IIS. That would give us lots of flexibility and limit the frustration of experienced developers.
This is a "feature" that is available at almost any other windows hosting provider out there.
thanks.
Reply to this
Born2Code - you are right that your AJAX config needs to sit at the root of an IIS virtual folder in IIS -- that's a property of how ASP.NET AJAX functions.
There are several ways that you can create a virtual dir in IIS (with the web root set) within our Windows shared hosting plans:
1) Add a subdomain (this will create a virtual directory at the root dir for the subdomain, as you observed)
2) Add an alias domain pointing to a subdirectory. This will create a virtual directory actort the root dir for the alias domain. The feature to point alias domains at subdirectories is available on deluxe and premium accounts.
3) Create a "Custom Directory" via our control panel, and be sure to set as a web root.
Hope that helps.
Brian
Reply to this
After having spoke on the phone with GoDaddy and reviewed all my possibilities, I too cannot get AJAX to work. However, based on the previous comments, I can say that the AJAX sample projects that I am find all over the Net are scattered amoung what he is calling "project folders". For example, ./ThePage.html---./js/ajax.js. I am going to begin converting my entire project to the root directory and see if this fixes the problem. If so, I recommend GoDaddy post an article the affect as I've noticed alot of buzz on the Net in my research for an answer. The error I have is with calling an activex object at all in javascript: = ActiveXObject("");
Reply to this
You're right, a GoDaddy specific "How to AJAX" tutorial sounds like it's needed.
I would wonder why it would be using an ActiveXObject, that would make it very IE specific. One problem is there is 1001 AJAX packages out that to assist you in getting off the ground fast. Unfortunately, they often don't work out of the box on all environments, without a lot of tweaking. I find it helps to understand the basics first. Follow some tutorials and write your own Javascript and server side scripts to get through a few examples, so you have the basic understanding. Then it'll be easier to debug why the drop in packages aren't working. It's not a easy topic, so be patient and persistent, and you'll start to get it!
Dave.
Reply to this
ok, after weeks of working on this, i finally got everything to work the way it should be. First, you need to uninstall frontpage server extensions, and thus, you will not be able to create or publish your website using the copy or publish feature in VS 2005. Then you will have to create your subweb or folder manually from the control panel. The important thing is to have the "set root" box checked when you create your folder (I don't believe that option was there in an earlier version of the Hosting Control Center, or I missed it somehow) That's it. That's all you have to do. I guess, it's all about permissions when it comes to windows shared hosting.
Reply to this
Thanks for the summary. It's true that frontpage server extensions and the Custom Directories don't play well together. Although I believe you can still publish in VS 2005 using FTP, can't you?
Reply to this
It should also work at the root of the web site because that is by default set as an application root. Creating a custom directory (virtual directory) and setting it as a root will also work. Creating a custom directory will also give 'Modify' permissions to the 'Network Service' user which is not the case on the root directory.
Reply to this
Thank you so much. I was struggling with the same problem and this fixed it.
Reply to this
Tony,
Thanks for your effort on this. After finding this post I was able to get things working in a few minutes. Thanks again!
Derek
Reply to this
I have a solution for declaring AJAX on Linux Shared Hosting.
After trying a zillion things, here is what finally did it,
First, double check that all scripts involved have the proper recursive properties of 0775.
Secondly, assuming you are using javascript, check all your scripts (or pre-written if you downloaded a public one) for this javascript or similar:
= new ActiveXObject("Microsoft.XML
and">HTTP");
and attempt to call by replacing with:
= new window.XMLHTTPRequest();
and voila, my code began working.
Hope this helps everyone because it took me about a week of google and forum rummaging to finally find.
Reply to this
Thanks, I hope this helps others.
Any CGI scripts (perl, python, ruby, compiled C code, etc) will need the execute permission to function (ie: the 0755 mode, similar to what you mentioned). PHP scripts do not need this, nor do static pages (images, html, etc).
Reply to this
when i first tried to run an app with the ajax toolkit it failed because, at the time, the root folder was not defined as a virtual folder in IIS in my shared hosting package.
Support was not much of a help. When i added a sub-domain i could make the sub-domain's folder a virtual folder and that solved all my problems.
As of last time i checked, i could not make the root folder a virtual folder, nor i could make any subfolders as virtual folders unless i created a subdomain for them.
Reply to this
Born2Code -- please see my previous response for more info on how to create a virtual dir (with web root set) on a subdirectory in your account. If you are manually creating the Custom Directory, you may need to uninstall frontpage first -- since frontpage and the Custom Directory feature don't play well together.
Reply to this
Hello! Sounds pretty frustrating so far with Ajax here. I'm just wondering, as options develop, any chance Ajax via MAC (G4) might be supported (at GoDaddy hosting) Thanks to all for posting. I'm trying to learn from scratch here and all tips appreciated.
FB
Reply to this
Most AJAX libraries will work ok with Safari on the Mac.
Reply to this
I am having trouble getting my project to run on the GoDaddy servers, though they work correctly on my local machine. I do not have the AjaxToolKit installed under the GAC on my local, so I think that may be causing some issues.
Can someone who has an ajax site successfully running post or email me their config file? What are the server tags you have been using for ajax components?
Reply to this
Can you describe what error you are getting, and we can try to help out?
Thanks, Brian
Reply to this
Alrighty folks. Here's the deal: I've carefully read through the above entries and I'm still getting a configuration error. I have:
1. I'm using the AJAXControlToolkit and extensions. I read somewhere that godaddy has the extensions, but I'm pretty sure they don't have the AJAXcontrolToolkit
2. made a new directory called ajax (set root)
3. uploaded my AJAXEnabledWebSite made in VS 2005 into that ajax directory
[don't have frontpage extensions]
the error I'm getting is:
Could not load file or assembly 'VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
here's the line from my web.config file:
I looked a few places online including ajax.asp.net and there are other people having the same problem, but no answers to their cries for help.
Is there anything else I need to do? AJAX is awesome and the site is awesome when ran directly from my machine. Please help =)
Reply to this
I went to your website and it works! You must have figured it all out. Let us know how you fixed the error.
Alicia
Reply to this
okay so what i had to do was download the newest release of the ajaxcontroltoolkit from ajax.asp.net rebuild the .dlls and make a new AJAXEnabledWebsite and uploaded that to my directory that was set as root. I also commented out the line of code in the web.config file that had to do with vswebsite.interop. hope that helps.
Reply to this
I am having the same problem everyone else is having. If you are one of those people that got your site working can you post/email the instructions? Thanks in advance!!!
Reply to this
We are currently working on an article with detailed information on ASP.NET Ajax. I know that you and many of our other customers will find it very useful. We do not have a release date yet, but you will see that article very soon. In the meantime I have just published a few fixes from those who have had similar issues.
Reply to this
I have a proble with ajax tool kid the error id
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
The directory Bin have ajaxControlToolkit.dll
hELP ME PLEASE
Reply to this
Take a look at these instructions. This should help you clear up the issue.
Adding the ASP.NET AJAX Control Toolkit Reference to Your Web Site
1. Download the ASP.NET AJAX Control Toolkit as described above
2. Extract the files from the archive to a folder on your computer (i.e. C:\AJAXControlToolkit)
3. Right-click on your project in the Solution Explorer and select “Add Reference”
4. Select the “Browse” tab and select the AjaxControlToolkit.dll from the folder where you extracted the toolkit (i.e. C:\AJAXControlToolkit\SampleWebSite\Bin)
5. Click “OK”
NOTE: It is important that this DLL be copied to the bin directory of your Shared Hosting Account when deploying
Reply to this
And finally?
Can I use Ajax Toolkit in subfolder that is set as root?
I tried to copy bin to root, and to my subfolder (that is root), and I’m still getting same error?
Reply to this
To create an application root, you must create a subdomain and point it to the directory you would like to be set up as an application root. This help article should provide you more details.
Reply to this
Thank you, creating a VD and adding bin worked after long hours
Great advise
Reply to this