Showing posts with label deploying. Show all posts
Showing posts with label deploying. Show all posts

Saturday, March 24, 2012

Deploying Web Application that uses ASP.NET AJAX

Hi,

I have created a Web Deployment Project and Web Setup Project for my companies web application. The web application uses the ASP.NET AJAX Extensions. I have failed to find much information regarding the deployment of this framework.

My preference would be to have the files necessary for the correct workings of the web application in the local bin directory. Is this possible? If so, could someone outline the steps necessary to get this working (which files into where).

My second option would be to ensure the server has the ASP.NET AJAX Extensions installed during install time of the Web Setup Project. How can I make this a prerequisite for the web application?


Thanking you,

-Brad

Hey,

ASP.NET AJAX needs to be installed on the web server; you cannot deploy it locally, that is not how they set it up. For the later question, I'm not the best at setup projects, but can't you require that a specific file exists on the installed machine? If you can, which I believe you can, you can target the extensions because it installs DLL's in a specific folder.


Hi Brad,

The Setup Project allows you to define Launch Condition?which?occurs?before?the?setup?starts or Custom Action which can perform actions during a specific step. Please refer to the following articles:
Launch Condition Management in Deployment ?http://msdn2.microsoft.com/en-us/library/ay12wede(VS.80).aspx
Walkthrough: Creating a Custom Action ???????????http://msdn2.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx

Hope this helps.

Deploying the Simplest of ASP/AJAX -- Sample ZIP Perhaps?

I've yet to successfully deploy an ASP/AJAX simple demonstration application without running into all sorts of remote host configuration disasters.

WHY isn't there a simple ZIP file that has straightforward instructions on how to deploy ANYWHERE? (Even without a database would be a solid proof of concept for me, at this point!)

mahalos ... :) KevInKauai

Well, you don't need a database... and you don't need anything installed on the server... just install ASP.NET AJAX 1.0 from this site (http://ajax.asp.net) and then copy the DLL's into your bin folder.

Here is an example of using ASP.NET AJAX and it's pretty straight forward:http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspx

Deploying Styles with your controls

I have found a way of deploying styles for an ajax control which I thought might be useful to others. I found this while examining the source code of the AjaxControlToolkit which is available as an open source project. you will need a reference to this assembly in order to use this method. These are the steps to be taken.

1.Include your css file in your controls project, set it as an embeded resource and and an assembly attribute for your control refrencing said css file. If you don't know how to do this google for it, a million people have posted on this subject.

[assembly:WebResource("MyControls.Web.Controls.DropDown.DropDown.css","text/css", PerformSubstitution =true)]

2. add the ClientCssResource to your class

[ClientCssResource("MyControls.Web.Controls.DropDown.DropDown.css")]

3. In your Prerender method for your control call the RegisterCssReference method of the static class ScriptObjectBuilder which is part of the AjaxControlToolkit

ScriptObjectBuilder.RegisterCssReferences(this);

This ScriptObjectBuilder class is an interesting class, it looks like it keeps a cached set of refrences to the css files included so as not to included them more than once. It adds the list of css refrences it has compiles as link tags to the <HEAD> of your page. Make sure your <HEAD> has runat="server" set. If you need a more complete example of how this is used , you might read the cs source code for the DropDownExtender in the toolkit.

Thanks fbaldoni!

I have been searching a half day to get this to work. This only part I had missing was step 3. Where in the AJAX documentation can I find that? No where. I just happen to stumble upon your post.


Glad to be of serviceSmile

deploying my ajax app

hey all,

i have a brand new windows 2003 server that i'm trying to deploy my ajax app to and i'm getting an error with the web.config. is there anything special i need to do to the server for my app to work?

thanks,

rodchar

hello.

well, you just need to install the asp.net ajax toolkit and configure your web app so that it uses asp.net 2.0.


Thank you.


hello again.

~sorry...in the previous post i meant the asp.net ajax extensions and not the asp.net ajax toolkit :) btw, both are available on the download section of the ajax.asp.net site.

Deploying Atlas Web Site

Is it as simple as running the Atlas install? Is there a way to identify the files and include the files within our existing framework? Have Googled this and found very little in regards to deploying to a production server a Atlas enabled web site.

Thanks

PinkFloyd43 - From The Dark Side Of The Moon

Deploying an Ajax (formerly known as Atlas) website is as easy as sleeping in your bed.

The only file that you need from Ajax is the AjaxControlToolkit.dll, which you put it in your bin folder if you use it. All the other files are in the GAC of the server.

The server has to have Ajax installed. Hope that helps.


Hi. I have a similar question. I understand the need to install Ajax on the GAC and this simply means running the installer package form the Ajax site or Code plex on a production environment.

Here are some questions I have.

1. Is there any way that Ajax would NOT work if everything is installed using a Xcopy in my bin folder of the Ajax enabled web site?

2. What about security and trust levels? What is the impact of this from a deployment standpoint?

3. I assume I would not be able to install Ajax on the GAC if I have a hosted server where I host my application? What are the recommendations in this kind of a scenario?

Thanks in advance,
Sriram


I have the same doubt. Please help me out

Deploying Atlas to non-dev servers

Question : What has to be done to sucessfully publish an atlas application to a web server running IIS 6 & .Net 2.0 ?

The reason I ask is that the the following error occurs when I attempted this:Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies

I see that the 'jslib' & 'jscor' assemblies have been referenced by the Atlas project, but ehy're in the GAC of the dev machine.. Does this mean I have to copy them into the bin of the site on the destination server? GAC ing them on a host site isn't an option.

I don't understand why this reference would be needed. What are you refering to when you say 'I see that the 'jslib' & 'jscor' assemblies have been referenced by the Atlas project'? Where are you seeing this references?

thanks,
David


BTW, in case that was not clear, those assemblies are part of the Visual J# runtime, so unless your app is explicitely trying to use this language, and wouldn't think they would ever be needed.

Have a similar question, along the same lines -

When I try to run an Atlas Application by copying the entire directory into inetpub\wwwroot, I get the following error :

Could not load file or assembly 'Microsoft.Web.Atlas' or one of its dependencies. The system cannot find the file specified.

I have the Microsoft.Web.Atlas defined in the GAC (which is another issue - as I cannot do this on Production Servers)

I assume another dependant DLL is not loaded ? I also get the following warning :

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

I dont see the Fusion!EnableLog in the resistry entry - how do I get to the bottom of this ?

Any help is truly appreciated -

Thanks in advance,

Anand -


You need to make sure that the directory of your Atlas app is marked as an IIS application. Otherwise, it's just a directory under wwwroot, and its bin directory will be ignored (hence the error).

David


My mistake. The j# dlls were required by the service provider we just started using (Web Methods) not atlas.

Thanks for the replies

Deploying Atlas to Non Dev Machines

I have an intranent application that gets iframecall.axh errors when deployed. It if I change the script manager paths to point back to a development box.(?).

Debug error message: "A web request made using the iframe executor failed. Make sure that the app's web.config registers iframecall.axd"

What am I missing? Something must need to be done to these test machines to deploy.

The http handler is set :

<addverb="*"path="iframecall.axd"type="Microsoft.Web.Services.IFrameHandler"validate="false"/>

Each of the Web Methods.

WebOperationAttribute(true,ResponseFormatMode.Json,true)

Why does Atlas use the header name and the port to call its self? I found the cause of the problem. Its appears that since we use a CSS ( type of cysco router ) to route traffic on shared servers that the call to the service is using the host header and the port which when re-routed back to the server is incorrect. If the site is available on http://<server>:<port> but the users calls it with the host

headerhttp://<host header> the call back to iframecall ishttp://<host header>:<port>

Here is an example: http://MySite/service1.asmx if hosted onhttp://MyServer:8040/service1.asmx gets called viahttp://MySite:8040/service1.asmx and fails.

Is there a work around for this or how do I fix it?

Deploying ATLAS to a remote server

Hello everyone. I have downloaded and installed the Beta 1 version of ASP.NET AJax. I would like to be able to use it on a remote hosting service. I would add a reference to the .dll file that uses AJAX, and then update the web.config file to complete the support for AJAX, but I can't seem to fine the .dll file after I have installed it.

Does anyone know where I can find the .dll file so I can use it on a remote hosting server?

Thanks.

I am pretty sure this is what you are looking for:

C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025


Also, you will need to make sure that ASP.NET Ajax dll is installed on the
remote server.

Wally

wrote in message news:1445631@.forums.asp.net...
> Hello everyone. I have downloaded and installed the Beta 1 version of
> ASP.NET AJax. I would like to be able to use it on a remote hosting
> service. I would add a reference to the .dll file that uses AJAX, and then
> update the web.config file to complete the support for AJAX, but I can't
> seem to fine the .dll file after I have installed it.
>
>
>
> Does anyone know where I can find the .dll file so I can use it on a
> remote hosting server?
>
> Thanks.
>


Listen to the ASP.NET Podcast @.http://www.aspnetpodcast.com/
Thank you for your help. I got it to work :)

Deploying Atlas in IIS

Hi,

I've got a little problemwhen deploying my TreeView Atlas Example in IIS. I'm working on WinXP PRo SP2. Publishing the website from VS2005 is not a problem but when I want to view it in a browser i've got the following error:

XML analysis error : malformed Site: http://192.168.0.169/Test/FirstTreeView.aspxLine Number 1, Column 2: < % @dotnet.itags.org. Page Language="C # "% > - ^
Pls I need help

What is your sample doing? It looks like it's trying to parse the server aspx page itself as XML, which would not work. Does your web site run correctly before you deploy it?

David


Thanks for replying. My sample is a TreeView which DataSource is an XML File. I've got 2 update panels, on one, there is the update panel and the second show the selected nodes of the Treeview. It works fine before deploying it in IIS. I tried it on a friend's machine and the deployment works (Windows Server 2003, IIS 6.0). Do we then need to have IIS 6.0 in order to deploy coveniently atlas applications on IIS?

Here is my source code:

<%@. Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<script runat="server">
void dataBound(Object sender, TreeNodeEventArgs e)
{
// Determine the depth of a node as it is bound to data.
// If the depth is 1, show a check box.
if (e.Node.Depth == 2)
{
e.Node.ShowCheckBox = false;
}
else
{
e.Node.ShowCheckBox = false;
}
}

protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
{
//If a node is selected, display the text in the right table
//Message.Text = TreeView1.SelectedNode.Text;
if (TreeView1.SelectedNode.Selected)
{
foreach(TreeNode node in TreeView1.SelectedNode.ChildNodes)
{
Message.Text += node.Text + "<br>";
}
}
else
{
Message.Text = "No Item Selected";
}
}

protected void Button1_Click(object sender, EventArgs e)
{
Message.Text="";
}
</script
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>First TreeView with an XML File</title>
<style type="text/css">
div.global
{
width:100%;
margin:0px;
border:1px solid #99ccff;
line-height:150%;
}
div.header,div.footer
{
padding:0.5em;
color:white;
background-color:#99ccff;
clear:left;
}
div.left
{
float:left;
width:200px;
margin:0;
padding:1em;
}
div.right
{
margin-left:270px;
border-left:1px solid #99ccff;
padding:1em;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<atlas:ScriptManager EnablePartialRendering=true ID=ScriptManager runat=server/>
<div class=global>
<div class="header">Dynamic Atlas Tree View</div>
<div class=left>
<atlas:UpdatePanel ID=up1 RenderMode=Inline Mode=Conditional runat=server>
<ContentTemplate>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="XDS" OnTreeNodeDataBound="dataBound" ShowCheckBoxes=None OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" ShowLines=true>
<DataBindings>
<asp:TreeNodeBinding DataMember="Kpf" ValueField="ID" TextField="Name"/>
<asp:TreeNodeBinding DataMember="Activity" ValueField="Value" TextField="Value"/>
</DataBindings>
</asp:TreeView>
<asp:XmlDataSource ID="XDS" runat="server" DataFile="~/XMLTVDataSource.xml"></asp:XmlDataSource>
</ContentTemplate>
</atlas:UpdatePanel>
</div>
<div class=right>
<atlas:UpdatePanel ID=up2 runat=server Mode=Conditional RenderMode=Inline>
<ContentTemplate>
Selected elements<hr /><br />
<asp:Label ID=Message runat=server></asp:Label>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Clear All" />
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID=TreeView1 EventName=SelectedNodeChanged />
</Triggers>
</atlas:UpdatePanel>
</div>
<div class=footer>KPF Nord</div>
</div
</form>
</body>
</html>


I've fixed it. I re-installed IIS and .NET Framework 2.0. Latter i followed this:

All is OK Thanks

deploying Atlas enabled application

Hi,

I've installed the latest final release of atlas ( not the new beta one) It's working on my development server, but when I deploy it I get this error.

Do I need to install any applications on the live server? Shouldn't this be taken care of by just deploying the application ?

Thanks,

mike123

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Unrecognized attribute 'type'.

Source Error:

Line 2: <configuration>Line 3: <configSections>Line 4: <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">Line 5: <sectionGroup name="scripting" type="Microsoft.Web.Configuration.ScriptingSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">Line 6: <sectionGroup name="webServices" type="Microsoft.Web.Configuration.ScriptingWebServicesSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">


Did you ever find a solution to this?

Copy those three DLL into your application's bin folder:

You can find them at C:\Program Files\MicrosoftASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025.
AJAXExtensionsToolbox.dll
System.Web.Extensions.dll
System.Web.Extensions.Design.dll

Deploying ASPAJAXCTP.msi in Client Place

hi,we have developed our web page with AJAX and now we are in a stage to deploy our portal to the client. since we have used the ASPAJAXCTP.msi, we need to install in the clients place. is there any method to check whether AJAX tool kit has been installed already if not then install. like this can we check?hope some one can help me on this.thanks in advance

sbadriprasad:

we need to install in the clients place.

Well you do not need to install the MSI if you manually reference the ajax assemblies rather than using the GAC copy.

sbadriprasad:

is there any method to check whether AJAX tool kit has been installed already if not then install. like this can we check?

You can check the computer's add/remove programs for the AJAX extensions called MS ASP.NET 2.0 Ajax Extensions 1.0

Deploying ASP.NET AJAX-Enabled Web site to host without AJAX installed

Is there a sure-fire way to deploy an ASP.NET AJAX-Enabled web site to a web host who refuses to install AJAX 1.0?

How come just copying the System.Web.Extension .DLLs to the application's BIN diectory would work. I also copied the v1.0.61025\MicrosoftAjaxLibrary\System.Web.Extensions\1.0.61025.0 Javacript files into BIN as well and maybe that is the problem. If anyone has found a way to publish to a server without AJAX, please let me know what needs to be done.

Thank You!!!

Well its almost impossible since you are still missing some files from:

eg: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"


Though it is recommended to have ASP.NET AJAX 1.0 library in the GAC, you can keep it in the \bin folder if your application is running on Full Trust.

Thanks


My next question then, is, what files need to be in the BIN folder in order for it to work?

deploying apps using AJAX

These controls in the AJAX toolkit seem really nice, and I was able to get them working in my development environment. I was disappointed that when I published my app to the web server though it no longer worked. I'm trying to understand exactly what needs to be done on the server to get it working. I don't have a lot of control over what gets installed on the server, so this may be a problem. The error message I got indicated it was blowing up from these lines in my web.config:

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Appreciate any help on how I can successfully deploy this app using FTP (if possible).

Thanks,

***

Hi dschroth,

You need to make sure that the system.web.extensions dll is installed in the GAC on your server. This will solve your problem probably!

Regards,


hello.

any chance of copying the stack error info and putting it here?


Server Error in '/nmp' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 12: <compilation debug="true" explicit="true">Line 13: <assemblies>Line 14: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 15: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 16: <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


Source File:D:\sites\NMP\web.config Line:14

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Server Error in '/nmp' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 12: <compilation debug="true" explicit="true">Line 13: <assemblies>Line 14: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 15: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 16: <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


Source File:D:\sites\NMP\web.config Line:14

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Hello.

by looking at the stack trace, it looks like you don't have the AJAX dll installed on the GAC. If you're able to run your web app at full trust, then you should copy the ajax dll into your bin folder (note that this will only work if you're able to configure your app to run at full trust)


When I published the app, it put both AJAXExtensionsToolbox.dll and AjaxControlToolkit.dll into the bin folder. Are they the AJAX dll you mean? If so, how can I configure the app to run at full trust?

Thanks for your help!


nope,

the system.web.extensions

succes!

Regards,


Whoever owns your server has to do it via the code access security settings, or else (as stated) install the dll to the GAC on the server. If you're working w/ a hosting company just renting a virtual directory, then the company will either advertise that they support AJAX extensions, or else you're probably out of luck w/ that one.


i hate to be stupid, but how do you install a dll to the GAC?


HI dschroth,

check the following link:

http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

Regards,


Sorry maybe a bit overkill open Visual studio command prompt and add:
gacutil /i YOURDLL.dll
Regards,

hello.

in this case, running tha ajax installation pacakage will do just that.

adding a dll to the gac is simple: you just need to drop it in windows\assembly folder or run the gacutil from the command line.


thanks everyone for your help - I guess it's easy when you know how. apparently all I needed to do was drop the System.Web.Extensions dlls into the bin folder on my development machine, and then the publish process put them on the server.

***


I am having a similar problem with trust issues. I run the site in house on a server so I really do not have a problem with full trust issues. The site runs on IIS 5.1. What do I need to do to set for Full Trust?

Thanks for the information.

deploying an asp.net ajax application

hi,
i worked hard to finish my first asp.net application using the ajax control toolkit. but i have a problem deploying it on my webspace. it is hosted at a well known provider (www.world4you.com , austria), and they told me ajax is enabled on their IIS. my problem is: i get an error when i try to start my application.

error message:

Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message:Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="C#" MasterPageFile="master.master" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="news" Title="Untitled Page" %>Line 2:Line 3: <%@dotnet.itags.org. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>Line 4: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">Line 5: <table width="100%">


Source File:/reap/news.aspx Line:3

could someone here help me out? do i have to deploy any binaries of the control toolkit to my website or something like this? it works fine on my visual web developer 2005, but not on my webspace.

thanks for your help

You should include in your bin directory AjaxControlToolkit.dll
The file is included in the zip file you downloaded from asp.net web site, inside the bin folder of the SampleWebSite .

Deploying AJAX.NET

Hi,

I just wondering how can we deploy AJAX.net in our setup. Did our client will need to install AJAX.NET and our application, or can we embed the dll in our bin folder... The installation guide as this note...

In the installation Guide its wrote:

note

The installation process installs the ASP.NET AJAX assembly (System.Web.Extensions.dll) in the global assembly cache (GAC). Do not include the assembly in the Bin folder of your AJAX-enabled Web site.

Please help!!

Best Regards

Marc-Antoine Latour
Strategia Communications
http://www.strategia-ed.com

Hey,

You need to install ASP.NET AJAX on the server where you are running your site. When that is done you need to configure the webconfig file. There is a guide on asp.net that helps you with this configuration.

It is not possible to include the dll in the bin folder and your client does NOT need to install anything.

/Sebastian


Ok what I understand, its that there is no way to include AJAX.NET setup into our application setup. Can we add the AJAX.NET setup files in our application cd-rom? If so we could add a prerequisite into our setup to ensure that our clients install the proper version of AJAX.NET.

Best regards,

Marc-Antoine Latour

Deploying AJAX project to Development Server

In deploying my AJAX application to a development server, I'm getting the following error:

Parser Error Message:Could not load file or assembly 'System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Do I need to add extensions on the server itself? I have the AjaxControlToolkit.dll & .pdb files in my Bin folder. Is there more to it?

You can remove that line.

It was a by-product of adding a particular build of the Toolkit to your project. It's related to design-time improvements and not necessary for deployment.

Deploying AJAX Extension in to the BIN folder

I noticed thatAjaxControlToolkit.dll installed in the BIN folder of the website. I wonderedsystem.web.extensions.dllcan be in installed in BIN folder as well. Specifically in some cases like Share Hosting it is not possible to access GAC (Hosting company may not support it) and it would be great to be able to install it in BIN folder.


Is there any performance or security difference between AjaxControlToolkit.dlland system.web.extensions.dll? whyAjaxControlToolkit.dllcan sit in the BIN folder not the system.web.extensions.dll?

Thanks in advance.

The ASP.NET AJAX Docs state:

note

The installation process installs the ASP.NET AJAX assembly (System.Web.Extensions.dll) in the global assembly cache (GAC). Do not include the assembly in the Bin folder of your AJAX-enabled Web site.

Reference:http://www.asp.net/ajax/documentation/live/InstallingASPNETAJAX.aspx

With that stated I am not entirely sure why this note is there. Maybe someone with more inside knowledge than myself can explain further. I can say one of the webhost I use wants to chare me to install ASP.NET AJAX and I deployed the needed DLLs in my web bin and have not ran into issue to date.


I had the same impression about the DLL and I guess technically it should be possible to install it in the BIN folder. I will appreciate if some one from Microsoft or some one with deep knowladge in this area leave here a comment that why we should not put AJAX DLLs in the Bin folder.

Deploying ajax apps

Hi guys,

This might seem a silly question but i have installed ajax control kit on my desktop machine, the app builds and works file but when i deploy onto hosting production server which has ajax extension installed, it doesn't work eventhough i have all dlls and webconfig file on the live server, am i missing somethinh? do i have to install the control kit on the live server as well?

thanks in advance,

Abdi

Server needs ASP.NET AJAX installed, your deployment directories need AjaxControlToolkit.dll in a suitable BIN directory and the necessary web.config settings in a suitable directory.

Deploying ajax apllication on the server where ajax extension are not installed in GAC [gl

I am copying ajax extension in the bin directory of my website and giving to the client.
For instance if the Ajax extension is not installed on the server then my bin directory dlls will work other wise the GAC version of ajax extension work.
Any Comment on this idea

This is a perfectly acceptable way of deploying an asp.net ajax application. This should work so long as you include the Microsoft.Web.Extensions.Design and Microsoft.Web.Extensions dll's in your project.

I may be missing one, but those are the main two, excluding the ajaxtoolkit dll if you want to use any of the toolkit controls.


Thanks tfsmag.

Please also clear me about two points

1, For letting the refrence from the Bin directory what changes i need in the web.config [if any]

2, For instance if i have copied ajax 1.o version in my bin directory.for instance now there is a new release of the Ajax Extensions let say 1.1 and on the server this new version become installed

Now which version of my ajax dll will be called GAC or from Bin directory ?


if you already reference the proper dll's in your web.config you shouldn't need to change it. If I recall correctly the application will use the version in the bin if there is one. I'm pretty certain that the app only looks in the GAC if you don't have a reference to the dll's in your bin folder. I may be incorrect (it's been a few months since I had to deal with this issue and I don't have access to the old source code from the app that I worked with handy at the moment). Give it a try and let me know how it goes!

As far as the ajax extensions go, I believe you'll need to have the proper version of the extensions that matches the version of AJAX you're using. For instance I don't think the current version of the extensions will work with the previous version of AJAX.

Hope this helps!

- Jeff


~hello.

well, if you want my opinion, you shouldn't do that unless you know that your asp.net apps will run in full trust. there are some operations performed by the asp.net ajax that requires more priviliges that are available on medium trust apps (which is how most web apps are configured)


I don't think I've ever created a web app that didn't run in medium trust, I guess I'm confused as to why having your dll's in the bin rather than the GAC will affect anything as far as trust levels go. Could you explain it to me, I'd like to know for future reference.


hello again.

if i recall correclty, since .net 2.0 gac components have full control. if it's there, it can do anything. period. there are some cases where the asp.net ajax platform would need full trust to perform its operation. if the dll wasn't on the gac, this would mean that your web app wouldn't be able to continue to run in medium trust.since the dll is on the gac, everything will work without being necessary to change the trust level of the site. I think that Scott Gu has spoken about this in the past in his blog, so you might want to run a search over it...

Deploying a Beta 1 website

Hi all,

I, like most people I think, am not in control of my webserver. I have my testing server, of course, but that's all it is. I code on a laptop.

This is why the new AJAX Beta confuses me so, because it seems to assume I am in control of my webserver, and contains no instructions on uploading a website that uses ASP.NET AJAX (I think we're actually going to have to abbreviate the abbreviations here and call it ANA).

Does anyone actually know how to deploy an ANA Beta 1 website?

-gorman

PS: Just a thought on abbreviating the abbreviations... thank god it's not called ASP.NET AJAX Library, eh?... I'm so immature.Stick out tongue

Okay, I am massive idiot. Let me explain why.

When I tried to upload the binaries, I wondered "Why isn't the last version in the bin folder?"

Duh. Wrong folder.

Sorry everyone, it's easy to deploy, just put the new DLLs in the bin folder as usual.


Hi,

What I want to know is...

The installation notes (http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx) have the following disclaimer...

note

The installation package installs the ASP.NET AJAX assembly (Microsoft.Web.Extensions.dll) in the Global Assembly Cache (GAC). Do not include the assembly in the Bin folder of your AJAX-enabled Web site.

So how are we supposed to deploy to a shared webserver. Try to convince them to load the dll in the GAC?

Thanks.

Aaron


Hmm. I stuck the binaries in the bin folder on my shared webserver. Didn't install anything at all to the GAC. And it works. Isn't it supposed to not do that?

Aaron