Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Wednesday, March 28, 2012

Difficulty building site after ajax install.

I'm having some trouble with my first AJAX experience namely in the build/publish part. F5 build on VS server works fine only when I want to Publish the application to ready for deployment I get this error underneath. Looked at couple message boards but its not clear me. I've also tried aspnet_regsql without any affect. Does anyone have any idea whether this is AJAX related and how I can solve to build the project? greatly appreciated.

-- Build started: Project: D:\...\Application1\, Configuration: Debug .NET --

Index was outside the bounds of the array.

-- Skipped Publish: Project D:\...\Application1\, Configuration: Debug .NET --

just wanted to add something... if choose Build> Rebuild Webiste instead of publish if gives me 33 warning messages saying

"Could not find schema information for the element 'webServices' and all other elements I've added from the AJAX template.

The template version works fine. Don't see why this should make a difference. Default webserver runs work fine.

Arrgg


just wanted to add something... if choose Build> Rebuild Webiste instead of publish if gives me 33 warning messages saying

"Could not find schema information for the element 'webServices' and all other elements I've added from the AJAX template.

The template version works fine. Don't see why this should make a difference. Default webserver runs work fine.

Arrgg this is cracking my head as I can't find much info on it.

Different behaviour between Atlass DragPanel and Ajaxs

<asp:Panel ID="Panel6" runat="server" Width="100%"> <asp:Panel BorderStyle="Solid" BorderWidth="2px" BorderColor="black" ID="headerPanel" runat="server" Width="100%" Height="20px"> <input type="text" id="iName" readonly="readonly" value="Drag me"/> </asp:Panel> <asp:Panel BorderStyle="Solid" BackColor="#0B3D73" ForeColor="whitesmoke" BorderWidth="2px" BorderColor="black" ID="Panel8" runat="server" Width="100%" CssClass="overflowHidden">Something here </asp:Panel></asp:Panel>

The panel above working fine with Atlas's DragPanel, as I can freely click on anywhere inside the headerPanel to move the Panel6 around, include the area within the "iName" label.

But the problem is when I move to Ajax Asp.NET Beta 2, I can click only on the area of headerPanel in which "iName" is not cover move Panel6 around. When I click iName and move it, nothing happen.

Do you guy have any idea or workaround to fix this? As I need iName as an input to dynamically change the text using Javascript

This is by design perwork item 6429: undraggable elements are "input", "button", "select", "textarea", "label". You're welcome to modify checkCanDrag in FloatingBehavior.js if you'd like to play around with removing this limitation.

Monday, March 26, 2012

Determining the source of a partial rendering postback

Is there a way to determine (on the server) what trigger/control/event was the source of the postback? How about something that indicates what update panel(s) will be rendered?

I see that the script manager has an IsInAsyncPostBack property, but I'm curious if there is something more specific.

UpdatePanel.IsInPartialRendering does not seem to work.

You could check the _EventTarget for a hint on what triggered the PostBack.

What would you do differently if you knew what triggered the PostBack?


You could use the ScriptManager.AsyncPostBackSourceElementID to determine the source of the asynchronous postback. In terms of what UpdatePanels will get updated, in server code I don't think there is a summary list that lists them because the Update() method can be called by any code and tracking that is difficult if not impossible(?). However, on the client you can use the pageLoaded or pageLoading events of the PageRequestManager to get information about what panels will be created, updated or deleted.

Design view problem w/Atlas and Visual Studio 2005

New to Atlas:Downloaded Atlas July CTP version and Atlas tools w/Visual Studio 2005 on Server 2003 os. I created a new project and .aspx webpage w/Grid1.master. I am unable to get design view to display without a gray screen appearing, so that I can put server controls in then select my data source. How do I get "design view" to appear without the gray screen?I have this code in my webpage:Help is greatly appreciated.

Open the master page in design mode - NOT your page...( I am assuming that you want to put the datasource controls in the master so all pages have access to them)

Ralph

Saturday, March 24, 2012

Deployment Question- iframe executor failed ?

Just moved to a new server and Debug output is giving me.. "A web request made using the iframe executor failed. Make sure that the app's web.config registers iframecall.axd"

Of course this doesn't happen in dev/test. The server file from the root up are exactly the same (after I switched it to debug).. Is there something else to configure?

It appears that all atlas/ajax calls back to the server are failing in the new environment. There are basic service calls registered in the script manager and some toolkit controls as well.

Where to start?

Other important things I neglected to mention.. I have already added the iframecall in the http handler & theWebOperationAttribute(true,ResponseFormatMode.Json,true) setting to each of the web methods declorations.


Other important things I neglected to mention.. I have already added the iframecall in the http handler & theWebOperationAttribute(true,ResponseFormatMode.Json,true) setting to each of the web methods declorations.


I use fiddler to make sure the script manager was registering the services and everything looks good. If I point the services back at the dev server they work great?

Fiddler namespace registrations.

HTTP/1.1 200 OK
Date: Mon, 21 Aug 2006 12:32:33 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 582

Type.registerNamespace('NU.Web.ECatalog.Services');
NU.Web.ECatalog.Services.PassortUsers=new function() {
this.appPath = "http://nunettst3:8040/apps/ecatalog/";
var cm=Sys.Net.ServiceMethod.createProxyMethod;
cm(this,"SearchInvoiceApproversByName","prefixText","returnCount");
cm(this,"SearchMaterialRequestApproversByName","prefixText","returnCount");
cm(this,"SearchByName","prefixText","returnCount");
cm(this,"SearchByNameNoLimit","prefixText");
cm(this,"GetInvoiceApproverId","name");
cm(this,"GetMaterialRequestApproverId","name");
cm(this,"GetUserId","name");
}

Deployment Question

Do the AJAX extensions need to be installed on the server that hosts the website? I'm currently troubleshooting a deployment where the extensions have not been installed on the server and the calendar controls are throwing javascript errors on page loads.

Hi

No need to Install the Ajax Extension to the server. Just put the dll into your Bin directory (ASP.NET Bin Folder).

ALL extensions to your ASP.NET applications should be possible by just putting the corresponding dll into your /Bin folder. This does not only refer to AJAX.

Best Regards

Deployment on production server : Ajax does not function; on local WorkStation is Ok

Hello,

I have just put to me to the AJAX, I installed it well on my PC, my ajax project with "Update Panel" functions locally.

I put it in production, I put the extensions in [bin]: "AjaxControlToolkit.dll"; System.Web.Extension is quite present in the GAC and when I click on the button to refresh the "update panel" in which a label update yourself. a traditional PostBack of alll the page is carried out! as if there were no Ajax!!?

Help me!


En fran?ais :

Bonjour,

Je viens de me mettre à l'AJAX, je l'ai bien installé sur mon poste, mon projet ajax avec un Update Panel fonctionne en local.

Je le mets en production, j'ai mis les extensions dans [bin] :
"AjaxControlToolkit.dll", System.Web.Extension est bien présent dans le GAC

et quand je clique sur le bouton pour rafraichir l'update panel dans lequel un label se mets à jour. un rafraichissement classique de toute la page s'effectue! comme si il n'y avait pas d'Ajax!!?

un peu d'aide ne serait pas de refus!

The first think I will ask you is to make sure the same version of Ajax is installed on the production server. I know it may sound silly, but I know several people with similar problem and they claim that they have the same version, but when they take a deeper look, they notice that there was not the same.

Deployment of ASP.NET AJAX based application

Hey,

I want to deploy my AJAX application on a server which does not have the ASP.NET AJAX framework.Can anybody tell me what the requirements on the server are for the application deployment apart from Microsoft.Web.Extensions.dll in GAC?

Thanks

I would like to have further information about the same issue.

For sure you must have the .dll either in GAC or /bin of the deployed Atlas website, but I think it's required to update the web.config (obviously server-side) but unfortunately I don't know exactly how.

There is a lot of confusion about this issue all around... Help!

Thanks

Deployment of AJAX-enabled web page on production server trouble

VS 2005 sp2, vb.net, sql 2005 enterprise sp2, IE7 & IE6, AJAX 1.0 toolkit and extensions.

The specific problem I am having is that I can't get the tabcontrol/tabpanels ("tab controls") to show up properly on the production server. I have a tabcontrol with 3 tabpanels. Inside each panel, I have a gridview and/or detailsview. When I load the page, I see the center gridlines (without the outer borders) of the gridview and detailsview and no tabs and no data. I also notice the "Done. Page loaded with errors" message on the bottom left status bar.

As with most of you, I have a dev machine and a production server. The tab controls show up just fine on the dev machine but when I move it to the production server, the same tab controls do not completely show up. The following is the watered-down version of what I am using:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:TabContainer ID="Tabs" runat="server">
<cc1:TabPanel runat="server" ID="tab1" HeaderText="Tab1">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" meta:resourcekey="GridView1" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="Column1" HeaderText="Column1" meta:resourcekey="BoundFieldResource1"></asp:BoundField>
<asp:BoundField DataField="Column2" HeaderText="Column2" meta:resourcekey="BoundFieldResource2"></asp:BoundField>
</Columns>
</asp:GridView>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel runat="server" ID="tab2" HeaderText="Tab2">
<ContentTemplate>
...
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>

I have installed the extensions on the production server (to fix another problem) and I have also confirmed that the dll's are in the bin folder. Any assistance as to why the tab controls not showing up is appreciated.

Thanks in advance to all. I am able to provide further information upon request.

anyone?

Just in case this may help someone else,

I found out the root of my problem was that I was using an AJAX enabled web-site instead of using the AJAX control toolkit template when I first made my website. I have mixed and matched some lines from my orginial "AJAX enabled" web-site and my new "toolkit template" web-site and found that the difference is only a few lines in the web.config file.

However, being exhausted in the search for an answer and not wanting to debug any further..., I decided to just move over all of my pages and worked it up in the "toolkit template" style.


I am having some of the same problems with my website and using the Tab Control. However, my website is pre-AJAX so I incorporated the new web.config and converted the existing web to use AJAX. Everything works fine on my development machine, but not when I deploy to the production server (which is running IIS 5.1). Do you think I should create a new website by using the new "toolkit template" and then copy pages to it?

I think installing the lastest versions of the toolkit and using the AJAX template is a good idea, perhaps not the only idea but the only one I have run across so far. Try to stay away from the AJAX enabled website since that was what I was using. I had also tried installing the AJAX toolkit extensions on the production server, which helped fix another problem I had with accordionpanes. This may have been related or not but since the toolkit is very new, it looks like there are still a lot of kinks they need to go over and for us to go around for now. But I would do the upgrade first before going and installing things on the production server.

If you can/have figure(d) out the difference in the web.config file, that should be enough but if it would give you peace of mind, upgrading it might not be a bad idea as it seems to have fixed additional minor bugs that I have run across.

When upgrading, the major difference I noticed was that I had to delete the two <cc1> references on each page (first the reference at the top of each page and the second in the page itself) and replaced it with <ajaxtoolkit> only inside the page. The reference was not needed at the top of each page for <ajaxtoolkit>, maybe something to do with the new web.config.

Deployment Issue of AjaxControlToolkit

Hi,

I have used the Ajax Control toolkit and on the Development machines it is working fine. but when I deployed it to the production server it stops working. The error it displays is that it is not able to get the embedded JavaScript files. This problem occurs on the pages which are using control like the Accordion and calender pop up.

I am not sure what is causing this because i have installed the latest asp.net Ajax on the server and copied the AjaxControlToolkit dll in the Bin also

Other embedded resources are working fine on type of resources like the images but they give errors when the resource type is JavaScript.

Do you have the proper setup (in web.config file) for the ScriptHandlerFactory handler and the scriptmodule?

Also, does any other ajax control work in your app? If Ajax is not GAC-ed you will probably need to set the app to full trust.


I have copied the Script Handler from the Ajax Toolkit.

Second. I have installed the Ajax and used the default settings.

There is another custom control which is working fine except that we have to put its resources through the Script tag of the ScriptManager. this is also does not load the scripts from the embedded assembly. but it works fine after we referenced the script through the Script Manager.

The same is working just fine on my development machine.

deployment

hi

is it possible to deploy a asp.net ajax web site on a server that does not support asp.net ajax ?

thanks

shaul

you must upload the DLL files in default directory C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

but the host must be full turst.

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 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 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 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 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 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

Deploy Toolkit to Server

Please help!

My development box works gret with the latest toolkit. When I try to deploy to the production server, my popups do not work. I've installed the latest AJAX components per the instructions on the server and copies the latest AjaxControlToolkit.dll to the bin directory. What am I missing?

If this helps:

The ScritManager output from the site that works is:

<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tupTable','tdateStart$UpdatePanel2','tdateEnd$UpdatePanel2'], [], [], 90);

//]]>

The ScritManager output from the site that does not work is missing the //<![CDATA[

Also,

the page that does not work does not have any of the javascript create code from the toolkit.

Any ideas?

Did you modify the web.config properly on the server (should pretty much match your dev machines one...) also on your server make sure you have this entry in it:

<location path="ScriptResource.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>

Thats the probable solution if all the installs went well and are properly GACed

Deploy to a web server

As most hosts, my web host will not install any beta products on their server, which means that I'm stuck with the "Atlas" july CTP (which works just fine in the Bin folder). The fact that you need to install ASP.NET AJAX on the server makes it useless for most people. It's great, but I can't use it because it isn't installed on the server. PLEASE! Make a version that works when copied into the /Bin birectory!

Asbj?rn

hello.

well, according to several guys, it works ok if you drop the dll on the bin and set the app to full trust. i guess that most hosts will only install it when v1.0 is released.


And how would I set the app to full trust if I don't have access to the server?
And how would I set the app to full trust if I don't have access to the server?
hello.
well, you just need to ask them the level that your app runs. it mya be running at full trust, though i doubt it.