Showing posts with label installed. Show all posts
Showing posts with label installed. Show all posts

Wednesday, March 28, 2012

Pre-emptive Controls not working

I have installed Atlas the way the documentation says and am using VWD Express.
When I am in code mode, and type in <atlas: it does not pre-emp it and have the controls in the drop down. I'm not sure why? I finish manually entering it in, and receive no error. Not sure why this is doing it. Any ideas, or anyone had similar problems?

Mick

hello.

sometimes it takes a while to initialize the intellisense list here, but then it starts working without any problems.


yes, it does take awhile, today it is working perfectly!!
Thanks,
mick

Saturday, March 24, 2012

Problem after update to RTM from RC

Hi, I have VS 2005 Pro with sp1 installed.

I uninstalled RC version correctly, after that I installed RTM version. I open Visual Studio and reload my solution, but when I try to select a form in browse solution it turns out to be impossible.
So I tried to uninstall RTM and reinstall it but the situation is the same.

Are there someone can help me?

Thanks in advance.

Filippo Macchi.

hi

Can you give me more detail about "select a form in browse solution it turns out to be impossible"

like you can not click ? or solution can not open? is it only for AJAX project?

thanks


The solution is opening correctly. The problem is that when I click the toolbox the system play a sound like as "operation not permitted", so it's impossible to select a form.

This problem occured also when I start Visual Studio without open any exiting project, usually you can click into the toolbox, but now I can't do it. And that sound keeps repeating itself.

Problem calling Web Service using the DynamicPopulate Extender - Web Service Call Fails: 5

Hi, I'm quite new to ASP.Net AJAX so please forgive my ignorance.

I have downloaded and installed the RC1 version and am following through some of the tutorial videos.

I am having a problem with the Dynamic Populate Extender example. I have created some asp controls with onclick events calling a javascript function. From there I am attempting to use a dynamic populate extender control to call a web service - it's a function declared on that ASPX page as the tutorial explains in necessary and decorated with the System.Web.Services.WebMEthod AND System.Web.Script.Services.ScriptMethod attributes.

Everything works as expected until I attempt to pass a parameter to the web services - in fact until I declare the web service function with a parameter. Once I do this, all that is returned to (or at least all that displays in) the control linked to the DynamicPopulateExtender is "Web Service Call Failed: 500".

Can anyone possibly put me on the right track here? (or would I need to post some code examples?)

Thanks in Advance.

Stu.

the tutorial is in beta version.

i will post my code for you

ASPX page

<%@. Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="DynamicPopulateDemo._Default" %>

<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>

</head>
<body>

<form id="form1" runat="server">
<script type="text/javascript">

function updateDateKey(value) {

var behavior = $find('dpe');

if (behavior) {
behavior.populate(value);
}

}

Sys.Application.add_load(function(){updateDateKey('G');});
</script>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:DynamicPopulateExtender ID="dpe" runat="server" ClearContentsDuringUpdate="true"
PopulateTriggerControlID="Label1" TargetControlID="pan" ServiceMethod="GetHtml">
</cc1:DynamicPopulateExtender>

<p>
<asp:Label ID="Label1" runat="server" Text="Label" CssClass="subheading">Time at the server:</asp:Label>
</p>
Choose a date/time format:<p>
<label for="r0"><input type="radio" name="rbFormat" id="Radio1" value='G' onclick="updateDateKey(this.value);" checked="checked" />Normal</label><br />
<label for="r1"><input type="radio" name="rbFormat" id="Radio2" value='d' onclick="updateDateKey(this.value);" />Short Date</label><br />
<label for="r2"><input type="radio" name="rbFormat" id="Radio3" value='D' onclick="updateDateKey(this.value);" />Long Date</label><br />
<label for="r3"><input type="radio" name="rbFormat" id="Radio4" value='U' onclick="updateDateKey(this.value);" />UTC Date/Time</label><br />
</p>
<br />
<p>

This time is dynamically formatted and<br /> returned as HTML from the server:

<asp:Panel ID="pan" runat="server" BorderColor="#404040" BorderStyle="Solid" BorderWidth="1px" Height="15px" HorizontalAlign="Center" Width="380px">
</asp:Panel>
</p>

</form>


</body>

</html>

ASPX.CS

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace DynamicPopulateDemo
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
[System.Web.Script.Services.ScriptMethod]
[System.Web.Services.WebMethod()]
public static string GetHtml(string contextKey)
{
System.Threading.Thread.Sleep(250);
string value = string.Empty;

if (contextKey == "U")
{
value = DateTime.UtcNow.ToString();
}
else
{
value = String.Format("{0:" + contextKey + "}", DateTime.Now);
}
return String.Format("<span style='font-family:courier new;font-weight:bold;'>{0}</span>", value);


}
}
}


Thankyou very much for posting this code.

I have worked through the differences between your version of the tutorial and the code I was trying to get running. It all boiled down to the name of the parameter on the web service method. I don't understand this yet but if I call the parameter on my web service method, "contextKey" it works, if I call it anything else, it fails.

Is anyone able to shed some light on this for me?


In the documentation it states that the paramater must be astring namedcontextKey

[WebMethod]string DynamicPopulateMethod(string contextKey) { ... }

Note you can replace "DynamicPopulateMethod" with a naming of your choice, but thereturn type and parameter name and type must exactly match, including case.

Problem Getting Atlas Wiki to Work

Help!

I've installed the wiki template and created a project. When I run it the first time, the page loads and all is well. However, when I go to click on links to some of the other pages like "Membership in the Wiki", the URL shows "default.aspx?page=membership%20in%20the%20wiki" as expected, however, the homepage is what is displayed. Other curious behavior:

If I attempt to create a user, that user does in fact get written to the database and I am able to grant it roles in the website configuration, however, if I go back to the wiki to log in, it is stuck on "Validating Credentials"Clicking on either "Comments" or "Contents" gives me a stuck "Loading" message.I have verified the following:
I do have ASPNET & Annonymous internet users with write access to the App_data directoryDatabase connection strings work.Does anyone have any suggestions? I'm about to give up.Update: If I create the Wiki using the "local filesystem" option it works fine. If I try to use the copy tool and copy it to my IIS directory (same machine), I get the bad behavior. Sounds like an IIS problem. Is it configuration? Is it buggy IIS? I'm using 5.1 on XP.

I'm new to the "ajax" world, also to the Atlas Wiki and am having the same issue with the linking.

When creating and article and saving, directly afterwards, the article is displayed correctly.

Yet if I navigate to the contents menu, then to that or any other article currently in the wiki, it routes me to this URL: "default.aspx?page=" then the article's name, but it does not display the article. The contents of that page are always the same.

Wednesday, March 21, 2012

Problem in deployment of AJAX enabled website

Hello Everybody:

Recently I have installed ajax extension in VS2005. I have a asp.net 2.0 website and I made necessary change in the web-config file for the ajax extension as described in AJAX video tutorial in this website. It works fine but when I deploy it to my server then it finds error in web-config file related to missing dll. What can I do? Please give me a suggestion.

Thanks to all.

The ajax installer puts the dlls into the GAC. Because of this, they do not deploy with your app in the bin folder.

You need to also install ajax on the server you are deploying to.


Well, the only things you can do are:

Install the Ajax Extensions on your server! If it is a shared hosting company contacting them may help: I succeeded once -- BUT ONLY ONCE!
The other solution it to copy over: System.Web.Extensions.dll, System.Web.Extensions.Design.dll from C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 into your bin folder and it should work if your application runs in full trust mode!

Hope it works!


I was able to deploy my ajax app on my server without installing anything, just putting the System.Web.Extensions.dll into the bin folder and referencing it. I am still unable to get the control toolkit to work without installing anything on the server. Any ideas on that?(Sorry, I know it's not the control toolkit forum, but the question fits perfect in this post :) )

problem in using AJAX

i am using visual web developer 2005 and SQL Express 2005 with VB as the code behind

i have created a web site using ASP.NET Web Site installed template

now i want to add AJAX to my web site .

i have downloaded the AJAX December CTP and installed and it is working fine with newly created website using the ASP.NET AJAX CTP-Enabled WebSite template

is it possible to convert my existing web site to use AJAX or should i do it from the beginning

please help me

You can convert the website to use Ajax from an Atlas CTP. This guide should help.

http://ajax.asp.net/documentation/Migration_Guide_CTP_to_RTM.aspx

problem in using atlas

I just installed Atlas and in VS.NET 2005 beta 2, I get this error:

Error 1 Unrecognized attribute 'appliesTo'. Note that attribute names are case-sensitive. (C:\AtlasWebSite\web.config line 53)
It seems it doesn't want the appliesTo keyword on web.config. Any suggestion?

Depending on the version of ASP.net you have, you can simply remove the "appliesTo" keyword and then the web.config will work.
Also, make sure you download the appropriate VSI file from this page:http://beta.asp.net/default.aspx?tabindex=7&tabid=47
Choose the VSI you want (either the Blank Project one, or the Hands on Lab one), and from there you can choose either the RTM version, or the Beta 2 version.
Thanks,
Eilon

Eilon :

the link you posted goes nowhere..asked to login..??No

Problem installing Atlas

I am installing Atlas for the first time. I have both Visual Studio 2003 and 2005 installed. When I try to install Atlas I get this error message

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

Is this because I have both Visual Studios installed and can it be remedied short of uninstalling 2003.

Thanks for reporting the issue. We will investigate the problem and post an update when we have more info.

In the meanwhile, can you try the following workaround:
- Launch Atlas setup, uncheck "Install Atlas Visual Studio Project Template" and finish the setup.
- Then go to locate ASPNETAtlas.vsi under your program files path (e.g. C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727)
- Double click the ASPNETAtlas.vsi file to launch the Visual Studio Content Installer dialog.
- Find the link above the Publish information area, it is called "View files in Windows Explorer..."
- Click on it to open the content of the vsi in Window Explorer
- If you have Visual C# installed, copy ASPNETAtlasWebApplicationCS.zip to the folder C:\Documents and Settings\<your user id>\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Web Developer\CSharp\
- Respectively, if you have Visual Basic installed, copy ASPNETAtlasWebApplicationVB.zip to C:\Documents and Settings\<your user id>\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Web Developer\VisualBasic\
- Open a new VS 2005, do File->New->Web Site, you should see the Atlas Web Site template under "My Templates" when you choose Language Visual C# or Visual Basic


Perfect. I plopped the zip file into the location of the template directory and Visual Studio 2005 saw it and the template appeared in my templates objects. Thanks

Hello there,

i just installed atlas , and still cant make it appear in my toolbox even though i see it in "My Templates" when i choose the language...

so please tell me what to do, im using Visual web developer.

waiting for ur reply thanx


I presume you are referring having Atlas controls on the toolbox. Please check out thispost and see if that helps.


cool that worked thanx

but how can i get the AtlasControlExtender file

Thanx


Will thissetup walkthrough help?
ell ya if i was uisng visual studio 2005 ! im uisng the visual web developer !! it says it doesnt work with it :(

Problem installing the AJAX Control Toolkit

I tried a search and didn't come up with my key words. I downloaded the ASP.NET 2.0 AJAX Extensions 1.0 and installed it without problems. I can start up Visual Web Developer 2005 Express Edition and now I'm able to choose "AJAX enabled website" from the create website menu.

The problem comes along when I try to install the AJAX Control Toolkit. I watched the second video in the AJAX series regarding how to install the toolkit. The guy unzipped the toolkit file and double clicked on the .sln file. When I do that, VWD opens up but throws up an error message ....

The application for project 'C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AJAX Control Toolkit\AjaxControlToolkit\AjaxControlToolkit.csproj ' is not installed.
Make sure the application for the project type (.csproj) is installed.

Did anyone come across this issue? I know I can't be the only one.Smile

TIA for your help.Cool

there's no need to install the AjaxControlToolkit. After you unzip the downloaded file, just find the AjaxControlToolkit.dll in their sample folder (Bin) and copy that file to your current Bin folder.


Forgive the ignorance, but what do you mean by the current bin directory? Currently, this is the path on my computer where the website (that I'm developing with VWD Express) resides....

C:\Documents and Settings\Paul\My Documents\Visual Studio 2005\WebSites\Website1\

Under there, there's the App_Data folder, but no bin folder. Do I create a bin folder directly under my folder and just throw in that file? Or would this bin folder that you speak of, somewhere else on the computer? And once I put this file in the right place, the AJAX web controls related to the toolkit will show up in the panel in VWD (I imagine I'd have to restart VWD)?

Thanks in advance.


Never mind, I got the controls to show up on the toolkit panel in VWD Express by adding a tab and adding in the controls referenced by AjaxControlToolkit.dll.Smile They now are accessible in the panel to be used. I will experiment with the new AJAX Controls in a bit.

A question.... when creating a website that I want to incorporate with AJAX, must I choose "ASP.NET AJAX-Enabled Web Site"? Or can I choose either that or the regular "ASP.NET Web Site"? The reason I ask is, all those AJAX related controls are available for me to use regardless of which kind of website I choose at the beginning.

Thanks.