Monday, March 26, 2012

Intalling atlas on windows vista

hello guys.

today i've installed vista beta 2 (ultimate edition) and i'm facing a weird problem related with the installation of atlas.

everything seems to go fine but at the end of the installation i get the following error: access to the path c:\program files\microsoft asp.net\atlas\v2.0.50727\vsisetup.installstate us denied.

so, has anyone installed atlas on vista?

Hi Luis,

I got the same problem installing Atlas on Vista. I solved it by running the AtlasSetup.msi as Administrator. The problem is that Vista dont allow you to run an msi as Administrator, to do it you need to create a .bat file that executes the msi and run that .bat file as Administrator.

I just saved AtlasSetup.msi on C:\ and created atlas.bat file on c:\ with the content: "C:\AtlasSetup.msi" and saved it. To execute the bat file I clicked with the right mouse button in it and used the Run as Administrator option to execute the bat.

Hope that it helps you.

See ya,

Diego

hello Diego,

that's weird...i was testing that new feature of vista that allows you to run as non admin even though you're an admin (so, yes, i'm in the administrators group)...the funny part is that eveerything seems to run fine until the end of the installation. here i get the error presented before...


Hi Guys,

I was having the same problem yesterday and I think the problem was trying to register the asbx file extension with IIS7. After a reinstall of IIS it all worked fine.

Cheers,
Andy


I also tried to install attlas on vista. When I saw the message which prevents Atlas to write to the disk I rebooted Vista in safe mode and loged on as administrator. Then I got error that atlas cannot be installed in safe mode, The only thing which allow me to install atlas was to allow access to specified folder during setup. You need to find folder in windows explorer, select properties and manages security access tab,

Aleks Kleyn


hello.

i've managed to install it without errors by opening explorer as an admin (yep, go to the explorer.exe though windows explorer, right click on it and choose run as admin) and then running the installer didn't gave me any problems.

Integrate AjaxControls from Toolkit into VS 2005 Toolbox ?

Hi

I have just downloaded the Ajax Control Toolkit latest version. Although i did run "AjaxControlExtender.vsi"; however i cannot find the controls in the toolbox. Could anyone please point out how to integrate the controls from the toolkit into the toolbox. Thank you.

Regards,
NAB

Add on current toolbox, right click to add a new tab, name this what ever you want like AJAX Tool Kit.

Now locate the AjaxControlToolkit.dll assembly file, it should be where you installed it under the folder SampleWebSite\Bin. Drag this assembly and drop it into your new toolbox tab. All the toolkit controls should now be in this new tab.


It worked. Thanks a lot mate.

Integrating AJAX into current site

I have seen many AJAX videos now that are good but they all start from a blank page.

I have sites I have built using ASP.NET 2 and I would like to implement ajax into those sites without rebuilding them.

Are there any videos/articles that show how to do this.

You don't have to rebuild a brand-new one. The point is to change Web.Config file. You can get template web.config file in C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 (Beta 1 version) afterASP.NET AJAX v1.0 core Beta 1 release installed and then update web.config in your web application based on it. And you have to add some aspx source codes in your web pages, e.g. ScriptManager, UpdatePanel, etc.

Integrating Ajax into a SharePoint WebPart

Hello,

does anyone now how to use ajax within a webpart? In SharePoint Services V 3.0 the WebPart Class is just another component of ASP. NET 2.0 so it should be pretty easy. My question is where to import the libraies. Do I have to create WebPart pages that are ajax enabled?

thx for every help!

I've been using the client-side libraries that ship with ASP.NET AJAX beta 1 inside of SharePoint webparts - basically using the generated proxies to call webservices. I haven't played much with the controls ( and I think some of them are not fully supported in the current beta's of both products). Anyway, the basic steps are as follows:

1. Modify the web.config in your sharepoint root virtual directory to include all the ASP.NET AJAX Beta 1 settings.

2. Add the Microsoft.Web.UI control to your <SafeControls> list in the web.config.

3. Build the webpart. The gotcha here is that SharePoint will not allow you to run server-side code on an ungosted page. So if you create a page through Frontpage and embed the <asp:ScriptManager/> tags on it then it won't work. See this post for a work-around in this scenario (http://weblogs.asp.net/soever/archive/2006/07/27/SharePoint-2007_3A00_-using-ASP.NET-server-side-code-in-your-pages.aspx).

Besides embedding the <asp:ScriptManager/> tags you can also programatically add the controls to your page via the CreateChildControls() override. See an example here (http://daniellarson.spaces.live.com/Blog/cns!D3543C5837291E93!311.entry).

Thanks,

Matt


Matt,

I'm planning to use MS ASP.Net 2.0 Ajax framework with SharePoint.

What did you mean by including APS.NET Ajax settings, could you post a sample? Same for Microsoft.Web.UI control.

Thank you!

Lilia


Hi Lilia,

There are certain settings that need to be placed in your web.config file. My example is probably out of data because I haven't downloaded the final ASP.Net AJAX bits yet (still using beta). However, visit this bloghttp://daniellarson.spaces.live.com/Blog/cns!D3543C5837291E93!934.entry and you should find all the information you need to get going.

Thanks,

Matt


Matt,

I downloaded SharePointAJAX.wsp and RTM deploy.cmd into C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin on the web server and ran the script, which created SharePoint.Ajax.dll and .pdb files as well as altered web.config to include System.Web.Extensions. I added SharePoint.Ajax.dll to the VS05 project references but found that SharePoint.Ajax.DataLoader, .XmlTransform, and .XmlComponent methods don't show. Would these methods be used in the javascript web service?

I'm no very clear on what is needed to create Ajax-enabled controls for SharePoint. Would I have a web part (implemented in VS05) with a grid control for example and this .cs class would call a web service implemented with javascript (Ajax capability)?

Your help is very much appreciated.

Lilia

Integration with Authentication

I don't remember seeing this in the documentation, and it is rather early in the curve, but going forward, I think it would be good to hear some suggestions with how to properly integration with various Authentication schemes, such as Forms and Windows Authentication. Also, if there is something that I have missed, please point it out. Smile [:)]
Wally

Hi Wally,
there is a login method that you can use for Forms authentication:
var x = new Web.Services.AuthenticationService();
x.login("username", "password", _callback);

integration with asp.net services

Is there any documentation or examples online for creating atlas
applications that use the asp.net services?

Wally

--
Wallace B. McClure
"The Harder I Work, the Luckier I Get."
Listen to "The ASP.NET Podcast" at http://www.aspnetpodcast.com/
Database Award: http://url123.com/vc3er
Microsoft MVP - Visual Developer ASP/ASP.NET
AspInsider
"AJAX for ASP.NET" Coming Soon!
ADO.NET Book: http://url123.com/vc2bu
865-693-3004
118 Durwood Rd.
Knoxville, TN 37922
http://www.scalabledevelopment.com/
Blog: http://weblogs.asp.net/wallym/

Have you looked at theservices quickstarts? They have examples on doing this.

David


I have not seen any examples on integrating with things like membership,
authentication, and authorization. Do you have a URL?

Wally

wrote in message news:1196178@.66.129.67.202...
> Have you looked at the services quickstarts? They have examples on doing
> this.
>
> David
>
I have not seen any examples on integrating with things like membership,
authentication, and authorization. Do you have a URL?

Wally

wrote in message news:1196178@.66.129.67.202...
> Have you looked at the services quickstarts? They have examples on doing
> this.
>
> David
>
Sorry, I misunderstood your reference to "asp.net services" as meaning calling asmx asp.net web services from script. Let me check whether there is a sample relating to auth and membership.

The current integration with Membership and Forms authentication is limited to two methods on Web.Services.AuthenticationSerivce:

login

validateUser

The first method accepts a username, password and clientside event hookups for completion, errors and timeouts. Back on the server it validates the credentials with thedefault Membership provider. Assuming the call to ValidateUser succeeds, the "login" method returns a forms authentication cookie by calling FormsAuthentication.SetCookie(). When the call to ValidateUser succeeds, the result from "login" is true - failed credentials result in a "false" return value and no cookie.

The code for this looks something like:

function OnSubmitLogin() {
//Use the built in Atlas authentication service to make a call to the server.
//This call will verify credentials, and if the credentials are good, the server will
//issue a forms authentication cookie.
Web.Services.AuthenticationService.login(username.value, password.value, OnLoginComplete);
return false;
}

//The asynchronous completion event where you process the result of calling the server
function OnLoginComplete(result) {
password.value = '';

//On success there will be a forms authentication cookie in the browser.
if (result) {
username.value = '';
textLoggedIn.style.visibility = "visible";
textNotLoggedIn.style.visibility = "hidden";

buttonLoginLogout.innerText = "Click me to logout!";
buttonLoginLogout.onclick = OnSubmitLogout;
}
else {
textLoggedIn.style.visibility = "hidden";
textNotLoggedIn.style.visibility = "visible";
}
}

The "validateUser" works similarly to "login", but no forms auth cookie is set.


Awesome info. I had been scanning through the Atlas.js file and I was
trying to understand the difference between login and validateUser. That
info really helps.

Wally

wrote in message news:1197028@.66.129.67.202...
> The current integration with Membership and Forms authentication is
> limited to two methods on Web.Services.AuthenticationSerivce:
>
> login
>
> validateUser
>
> The first method accepts a username, password and clientside event hookups
> for completion, errors and timeouts. Back on the server it validates the
> credentials with the default Membership provider. Assuming the call to
> ValidateUser succeeds, the "login" method returns a forms authentication
> cookie by calling FormsAuthentication.SetCookie(). When the call to
> ValidateUser succeeds, the result from "login" is true - failed
> credentials result in a "false" return value and no cookie.
>
> The code for this looks something like:
>
> function OnSubmitLogin() {
> //Use the built in Atlas authentication service to make a call to the
> server.
> //This call will verify credentials, and if the credentials are good,
> the server will
> //issue a forms authentication cookie.
> Web.Services.AuthenticationService.login(username.value,
> password.value, OnLoginComplete);
> return false;
> }
>
> //The asynchronous completion event where you process the result of
> calling the server
> function OnLoginComplete(result) {
> password.value = '';
>
> //On success there will be a forms authentication cookie in the
> browser.
> if (result) {
> username.value = '';
> textLoggedIn.style.visibility = "visible";
> textNotLoggedIn.style.visibility = "hidden";
>
> buttonLoginLogout.innerText = "Click me to logout!";
> buttonLoginLogout.onclick = OnSubmitLogout;
> }
> else {
> textLoggedIn.style.visibility = "hidden";
> textNotLoggedIn.style.visibility = "visible";
> }
> }
>
> The "validateUser" works similarly to "login", but no forms auth cookie is
> set.
>
No problem. I had hoped that there was something I was missing in the
quickstarts. :-)

Wally

wrote in message news:1196977@.66.129.67.202...
> Sorry, I misunderstood your reference to "asp.net services" as meaning
> calling asmx asp.net web services from script. Let me check whether there
> is a sample relating to auth and membership.
>

Integration with ViewState

Sometimes, I store information in the viewstate statebag. Since this information goes back to the server on a roundtrip, I have access to the information. If I want to send that same information back to the server, how should I handle the situation where the information is stored in the statebag? Should I go back and use hidden fields that javascript can get at? is there some type of way to reach into the statebag from the client-side javascript? I realize that the statebag is not considered to be secure so would it be possible to include some type of javascript decoder in atlas to get at values in the statebag?
WallyHi Wally,
I didn't see any viewstate support at the moment, and I think Microsoft is thinking of AJAX methods as I. If you try the Atlas web controls you will see that there is no Click event for the server.

I don't think we'll be creating solutions to change view state from the client. Often times this is not possible - view state may be encrypted. More often though, its simply not efficient to try and parse that content using script.

However, server controls that preserve the server-based programming model, while providing richer experience will use view state creatively, to provide the right behavior if an ajax-style page does need to postback for some reason.