Wednesday, March 28, 2012

Installation problems with AJAX on WinXP, VS.NET Express pls help

I'm sure you get this stuff a lot, but I've looked through the archives and don't see exactly my situation.

Background info:

My machine in WinXP, and I'm using the Express web developer edition.

I moved my MyDocuments location to my D: drive and also renamed it to the more sensible, UserData. I don't know if this is the source of a problem or not. Visual Studio is installed on my C: drive. The path to where I put my Ajax files is:

"D:\UserData\Visual Studio 2005\Ajax

I installed AJAX by running the ASPAJAXExtSetup.msi. No problemsthere. I opened VS is saw the Ajax tools, but didn't do anything else.

I then downloaded the AjaxControlToolKit and copied it to the Ajax folder noted above as well.

The problems:

When I open the AjaxControlToolkit solution (.sln) I get the error:

"...AjaxControlToolkit.csproj is not installed."

When I run AjaxControlExtender.vsi, but when I do this I get the following error messages:

"Installation stopped because the directory for the ProjectType value did not exist. The project type is invalid for your installation of Visual Studio."

And the tools don't install.

I then decided to skip that and try to just use the standard tools.

I created a blank AJAX enabled application, added an update panel and some other controls, tried to run it, and I get these warnings in the web.config file:

"Warning 1 The 'requirePermission' attribute is not declared. D:\UserData\Visual Studio 2005\Websites\AJAXEnabledWebSite1\Web.config 10 207 D:\...\AJAXEnabledWebSite1\"

Any help on these issues?

Thanks


Hi,

If you only installed Visual Web Developer Express ,How can you open C# project as you didn't installed C# Express?

Prerequisites: Downloading the Toolkit project requires that you have installed the VS 2005 Web Application Projects (WAP) update, available at (note there are two downloads, a VS 2005 update and the mainWAP update). However, if you install Visual Studio Service Pack 1 then the WAP update is included in it and need not be installed separately.

For more information,please check out:

AJAX Control Toolkit Project Page

http://www.asp.net/AJAX/Control-Toolkit/Live/Walkthrough/Setup.aspx

Best Regards

Installation Question

I did the install but have not found the AJAX template in VS 2005.

Using ASP.NET AJAX with Visual Studio

If you have Microsoft Visual Studio 2005 installed on your computer, the installation process installs templates for AJAX-enabled Web site projects. It also installs an assembly (AJAXExtensionToolbox.dll) that extends the Visual Studio toolbox. When you create a new AJAX-enabled Web site by using Microsoft Visual Studio 2005, the template automatically includes the Web.config file that includes the elements required for ASP.NET AJAX components.

Well, since it didn't automatically install, would some kind person volunteer to explain to me how to manually install this template?

Question one: What is the name of the template?

Question two: Is it some where in C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025?

Thanks in advance, I am looking forward to using AJAX.

IanO

I think you are refering to the AJAX toolkit.

You can download the AJAX Toolkit from this site:

http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=4923

And here is the video that shows you how to install it:

http://download.microsoft.com/download/9/d/8/9d8a3ff9-e520-4c69-a7a0-aad7a3dc596d/HDI-02-GetStarted-AJAX-Toolkit.wmv

Installation question

I have a application which is using several 3rd party tools which ar based off of AJAX RC. If I remove the RC version and reinstall the RTM version how will this affect my application.For sure you might run into a few problems. I've been working on a big fat project at work since the "Atlas" came out. Whenever there's a new version, I uninstall and reinstall ajax. It's a pain, because the new that comes out is not compatible with the old one, not all but some. However, it's not that bad that makes you want to rip your hair off your head. When you change one line of the old ajax to the new one, the next one is basically similar. Most of it is copy & paste. =) You gotta start from somewhere. Good luck.

installation requirements

What are the installation requirements for Atlas? I've got VS.NET 2005 Beta 2 (8.0.50110.28), but I get a FileNotFoundException when I try to run the install. I looked around on the web and in forums, but I couldn't find anyone else with a similar issue. Any ideas?Do you have a "Visual Studio 2005" directory under your My Documents folder? It should have a structure like this:
Visual Studio 2005
+ Code Snippets
+ Projects
+ Settings
+ Templates
+ Visualizers
Thanks,
I had a variation of the folder structure you mentioned... I had ItemTemplates and ProjectTemplates folders instead of a single Templates folder. (This was the default installation.) I added the Templates folder and tried running the Atlas installation again but got the same message -- FileNotFoundException. Is there an additional set of folders under the Templates directory that the install is looking for? Or a specific file in there?

Installation questions

What download do I need to install on my Web Server

and What downloads/s do i install on my desktop for development?

What Operating System is your web server and development box?

Provided you have IIS working on both, download

The Dot.NET 2.0 SDK

Hi lconley,

I think you should provide more information such as "what you want to do?"、"your system environments" etc , or we may cannot give you more valuable suggestions.Big Smile

Installed AJAX - cannot upload large files

Hello there.
I have an issue with file size to be uploaded that happened only after I installed AJAX.

So before installing AJAX on the web server, we did set on the web.config of our application the following value
<httpRuntime maxRequestLength=30000 /> which did allow us to upload files up to 30 MG.

After we installed AJAX, it seems that we are not capable to upload large files again.

Do you know if AJAX installation may override somehow that value somewhere else?
The web.config of our application still has the 30000 entry ...but it is obviously not working any longer.

Filippo

If the file upload is now inside an ajax control, it may be that you're hitting a script-timeout (i.e. XMLHTTPREQUEST times out before the whole file can be uploaded.)

You're best bet would be to run the file upload outside of an ajax control - i.e. as a proper postback.

p.s. It should be 30720 for 30 MB - in case you're publishing the maximum size it could confuse people.


thank you , but I'm not using AJAX in my upload page

I use just put Scriptmanager in the master page/? is this makes problems ?

by the way it was working well up to 10MB but when I changed the server it upload the file with 0kb even it's 5MB

so is this mistake of server (it's local server indeed) I want to be ensure that the code is ok

here is my upload function

1public string DoImport(FileUpload myFileUpload)2 {3string ServerPath ="";4string webServerFilePath ="";5try6 {78string filepath = myFileUpload.PostedFile.FileName;910if ((filepath !=null) & (filepath.Length != 0))11 {12 FileInfo finfo =new FileInfo(filepath);13string filename = finfo.Name;14//save file on the webserver machine1516 StringBuilder bufWebServerFilePath =new StringBuilder(240);17string tempImportFldr =18 Server.MapPath("~\\"19 + ConfigurationManager.ConnectionStrings["TempAttachPath"].ToString());20 bufWebServerFilePath.Append(tempImportFldr);21if (tempImportFldr.EndsWith("\\") ==false)22 {23 bufWebServerFilePath.Append("\\");24 }25 bufWebServerFilePath.Append(Session.LCID.ToString() + filename);/*to make file unique*/26 webServerFilePath = bufWebServerFilePath.ToString();272829if (File.Exists(webServerFilePath))30 {31 File.Delete(webServerFilePath);32 }3334 myFileUpload.SaveAs(webServerFilePath);3536 ServerPath = webServerFilePath;37 }383940 }41catch (Exception Ex)42 {43////this code is to write in a log file(Optional)44 CreateLogFiles.CreateLogFiles Err =new CreateLogFiles.CreateLogFiles();45string path = Request.PhysicalApplicationPath.ToString();46 Err.ErrorLog(Request.PhysicalApplicationPath.ToString() + ("Logs/ErrorLog"),"(" + ServerPath +")DoImport->(internal memo)" + Ex.Message);4748 }495051return ServerPath;52 }
the error message comes in line (36) ->Cannot access a closed file.
so any help please 
thanks in advance 

Well , I got it worked by adding this line in my web.config

<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="250000" requestLengthDiskThreshold="250000"/>

Installed ASP.NET AJAX CTP

Hey all,

I've installed the ASP.NET AJAX CTP, now what? I haven't seen anything change in the toolbox or is this an under the cover kinda of deal.

thanks,

rodchar

hello.

well, you have to add the controls by hand to the toolbox since the ctp controls aren't added automaticaly:

http://msmvps.com/blogs/luisabreu/archive/2006/10/23/How-to-add-the-value_2D00_added-controls-to-the-toolbox.aspx


SmileThank you.