I've just reviewed "#36 – How Do I: Use the ASP.NET AJAX MaskEdit Controls?". I ran the finished sample code (as downloaded) on VWD 2005 EE and it all works "as advertised" – all of the functionality is definitely there.
HOWEVER, when I copied the project file up to TWO different hosting services (both equipped with the current "AjaxControlTookit.dll" [and dll.refresh] and ".pdb" files in a "/Bin" directory at the root level of the logical "wwwroot" the application starts without error but then nothing really IS "extended" in the three sample Textbox controls. HUH? I emphasize that this happens on TWO separate hosting services (one if GoDaddy which has been shown to work with ASP.NET 2 and the other is on UltimaHosts.net which has also run 'normal' ASP.NET 2 applications).
I fear I'm missing something fundamental here. Any ideas?
Mahalos in advance …J KevInKauai
Does the bin folder also contain the 2 dll's for the ajax core?
System.Web.Extensions.dll
System.Web.Extensions.Design.dll
Hi, Wim, and thanks for the attempt at guidance.
I'm unclear about whether you mean a "/Bin" directory beneath each Application/Project or at the root of the web site (which is what I have). (It would seem awfully space-consuming to have to have it in EACH Application/Project, right?)
Here's what I've got:
SO WHERE'S the handy-dandy goof-proof "guide to deploying ASP.NET/AJAX-ified applications on your Server" ?
The devil seems to be in the details, as usual!
mahalo for any guidance ... :) KevInKauai
P.S. The results are identical in the following browsers: FireFox 2.0, IE 70.5730.11 and Safari PC 3.0 (522.11.3).
Hi,
You'd better install the Ajax extension on the server first. It can be downloaded here: http://ajax.asp.net/downloads/default.aspx?tabid=47
Hi, Raymond - -
Do the screen captures above not show that the "required" libraries are there? According to my download directory, I downloaded "ASPAJAXExtSetup.msi" (around May 15) and ran into, then used what I assumed are the required items (as indicated in the screen shots).
I don't think you're telling me to download this again "just for fun", are you?
Mahalo ... :) KevInKauai
Hey,
Ok, A website has a bin directory: For example: c:\Inetpub\wwwroot\MyWebSite\bin
The above tells me I have a website called MyWebSite and it has a bin-folder.
I don't think that MyWebSite can use a bin folder located here: c:\Inetpub\wwwroot\bin
AND that is just what your pictures tell me. So the bin folder should be inside the WebSite directory.
If you want to use dll's for more applications and you don't want to copy the dll's to every bin of every website that uses them, you should install those dlls in the GAC (Global Assembly Cache).
Note that the dll's you want to use in serveral applications should be installed in the GAC of the WebServer.
Also note that the installation of dll's in the GAC is best done by using the GACUTIL.EXE utility which can be started from command line.
Hope this helps!
Wim
KevInKauai:
Hi, Raymond - -
Do the screen captures above not show that the "required" libraries are there? According to my download directory, I downloaded "ASPAJAXExtSetup.msi" (around May 15) and ran into, then used what I assumed are the required items (as indicated in the screen shots).
I don't think you're telling me to download this again "just for fun", are you?
Mahalo ... :) KevInKauai
The point of my suggestion is that it's not sufficient to deploy it by simply putting it in the bin folder. Because some of the operations performed by the AJAX extension require full trust permission. To install it will installer will add it into GAC automatically and run with full trust permission.
You can try Wim's suggestion to install it into GAC manually.
You may also tryconfiguringyou web application to run in full trust mode in web.config.
Raymond Wen - MSFT:
The point of my suggestion is that it's not sufficient to deploy it by simply putting it in the bin folder.
Hey Raymond,
Ok, this is a bit off topic, but on my webserver, their is NO Ajax, nor the toolkit installed, and just by putting the 2 ajax dll's and the toolkit dll in the binfolder of my website on the webserver, all the ajax and toolkit functionallity works!
Greetz,
Wim
Hi, Wim - -
Thanks for your pointers and perhaps I should have made it clearer that I'm in a "shared hosting" situation -- where I do not control things like whatever the "GAC" is. According to their notes on AJAX, they have installed "what you need" there. It's the add-on stuff that wants a proper home. I had assumed that ONE /Bin directory at the root of my website (which has old-time FrontPage things which want to be calling out to new-style ASP/AJAX application pages) would suffice.
Are you saying that each application sub-directory is going to need a /Bin with extra copies of these various AJAX components?
If anyone knows where the CLEAR and SIMPLE "How to use AJAX in a Shared Hosting Environment" installation guide is, I'd sure appreciate a push in that direction!
Mahalo ... :) KevInKauai
KevInKauai:
Are you saying that each application sub-directory is going to need a /Bin with extra copies of these various AJAX components?
Hi,
For as far as I know this is going to be the procedure. If someone else knows a way to create a central storage for application-wide-dll's, please let us know
(it has to be possible :) )
Normally the GAC offers a solution to store application wide dll's in one place. But for shared hosting where you don't have full control over the webserver that isn't so easy.
No comments:
Post a Comment