Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treview Problem

Status
Not open for further replies.

Smeat

Programmer
Mar 27, 2004
193
0
0
GB
My website is using a treeview control and everything is working fine on my development machine (win xp) and the pre-production server (win 2k3) but the treeview doesn't work when deployed to the production server (win 2k3).

I've been digging around and it seems the cause is that it is unable to locate the script files required to support it but I don't know where to find these files.

The only difference between the 3 machines that I can see is that the production server is setup as a website whilst the development and pre-production server are both setup as virtual directories.

Has anybody come acrosss this problem before and do you know which files need to be where ?

TIA
Smeat
 
what is the exact exception/error/stack trace from the production server? javascript or server side. this is the first step to resolving the error.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
All images are showing as broken images and the following javascript errors:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Timestamp: Wed, 21 Oct 2009 20:06:03 UTC

Message: ASP.NET Ajax client-side framework failed to load.
Line: 78
Char: 34
Code: 0
URI:

Message: 'Sys' is undefined
Line: 198
Char: 1
Code: 0
URI:

Message: Object expected
Line: 1100
Char: 13
Code: 0
URI:

Message: Object expected
Line: 1123
Char: 1
Code: 0
URI:
I'm unable to determine the script files are being referenced as the is no link tag. I think this is because it uses resource file such as the following image:

<img src="/WebResource.axd?d=_QGHvKlAZWUMqMBsmknUufQCVnm3hQ28EhEEOzvXXZY1&amp;t=633691079636093750"

Smeat
 
last time I used the ms ajax library I needed to install the binaries on the box, my local box, the testing server and the production server. Ensure the ms ajax library is installed. if not you will need to download the installer and run it on the server.

if that's not an option, then you need to copy the ajax assemblies to the local bin directory.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Is there a seperate install for Ajax? I thought the Ajax libraries would have been installed as part of the .Net framework 3.5 installation.

I found this quote on
The ASP.NET AJAX server-side controls are included as a standard part of the ASP.NET 3.5 framework. These controls are already in your Visual Studio/Visual Web Developer toolbox. If you are using an earlier version of the ASP.NET framework, such as ASP.NET 2.0, then you can download the ASP.NET AJAX Extensions.

Any ideas where I can find the assemblies so that I can copy them to my bin directory?

Smeat
 
ok so your site uses .net 3.5. I only worked with ms ajax server controls for a brief period of time on .net 2.0.

this is a long shot, but are you sure .net 3.5 is installed on the production server?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Yes, the rest of the site is running fine and 3.5 is listed in the add/remove programs. I've also tried repairing the install so I don't think it is the framework installation that is at fault

Smeat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top