Showing posts with label following. Show all posts
Showing posts with label following. Show all posts

Monday, March 26, 2012

Access to Path denied message appears on install

Hi,

While trying to install Atlas, I get the following message - Access to the path 'C:/Program Files/Common Files/Pumatech Shared/Transaction Manager/ComponentData/TraceLogs' is denied. What do I need to do here?

Thanks,
James

Hello. I do not have much to add other than I am experiencing thesame problem. I downloaded the installer today (4 April2006). My system is Windows XP Professional, SP 2 and I havelocal admin rights to the machine.
It seems like your Blackberry synchronization application is conflicting with the install. I have no idea why but I suspect that there is something really wrong with your system. Atlas itself knows nothing of this Pumatech folder.

I am not sure why the setup will reference the Pumatech Shared folder since it should be not be related. Can you check a couple things:

- Since it was access denial error, can you check if your current user account has the access permission to the folders through the security tab of the Properties dialog of the folders?

- From some internet search results, it looks Pumatech Shared folder might be created by Pumatech Intellisync, Blackberry Desktop Software or some PDA desktop sync software. I am just curious that if you have any of such software installed on your machine. If possible, would you be able to try Atlas setup on a machine that does not have any of such software installed?

Thanks,
Frank


I do have Blackberry Desktop sync software amd the exe I use to sync upis not loaded in memory. In other words it only syncs when I tellit to, manually. I also checked Windows Services and the Sys TrayRegistry settings (HKLM\Software\Microsoft\Windows\CurrentVersion\Run)and I do not see any suspicious exe/processes either.

Oddly enough, despite having local admin rights, when I try to look atthe Pumatech Shared folder's settings it gives me a permission deniederror!

I am really at a loss, too why the the Atlas setup would want to reference the Pumatech Shared folder. A
clean reboot and then reinstall does not help either.

At this time I do not have another machine to test the install. The only consollation I have is that I am not the only one with thisvery strange problem.

Thanks guys for the replies. Any more ideas?
One more thing, if I unckeck "Install Atlas Visual Studio ProjectTemplate" from the setup. It completes successfully (other thaninstalling the template, of course).

Originally, I thought the problem may be due to having an apostrophe inmy name (o'reilly), since the templates directory is located underc:\documents & settings\o'reilly\visual studio 2005\......, etc.

Today, I copied the contents of C:\Documents andSettings\o'reilly\My Documents\Visual Studio 2005 and pasted it toC:\Dev. I then went through the Visual Studio 2005 optionsettings and changed every pertinent setting I could to point toc:\dev\Visual Studio 2005\...

So at this point I am really grasping at straws as to why this installer is not working properly.
"I am not sure why the setup will reference the Pumatech Shared folder since it should be not be related. "

Not only does theWindows Installer Component(msiexec.exe) references this folder, it accesses alot of other foldersthat are unrleated to access. This is alarmingly so when viewingthe installer activity using sysinternal's FileMon utility.

I also had the same problem. I uninstalled the Blackberry Desktop app with Add Remove programs and this did not remove the \Pumatech Shared\ directory. So I uninstalled the Yahoo calendar sync desktop app I installed that this did not remove it. I went into the \Pumatech Shared\ directory and ran all the uninstall.exe's within the subdirectories. When I attempted to delete the directory, I hit a permission problem. I tried again to access the \Trace Logs\ directory and got a message that I could not change permissions, but could take control of the directory. So I did. I had right clicked, clicked Properties and clicked Security tab and change the owner from null to me. Then I gave myself full control of the \Trace Logs\ directory. I had repeat this process for the two xml files contained with in. Once I did that, I could delete the entire Pumatech directory. With this in the trash, I was able to install Atlas including the template. I haven't seen that I have caused any more problems by doing such a brute force uninstall, but I just finished doing this a few minutes ago. My system hasn't crashed yet and I don't forsee that this would cause any problems, so I'm feeling pretty confident. I'll see what happens next. :) Hope this helps. Dean

The setup is searching through C:\Program Files\Common Files to look for VSContentInstaller.exe to launch the VSI installation. There might be some problem when it cannot access some folder under the directory. I will investigate further and see exactly what happens under this condition. Please stay tuned.

Thanks for providing all the info, it has been really helpful to narrow down the area of the problem.
Frank


By the way, as mentioned by "Life of Riley" above, a workaround is that you uncheck "Install Atlas Visual Studio Project Template" during setup. Once setup is done, you go to "C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727" and open ASPNETAtlas.vsi. This should install the Atlas template properly.

Just an update on this, the above issue of access denied to an unrelated folder has been fixed and the next release of Atlas will not have the same issue.

Thanks,
Frank

Access nested properties

Hello everyone.
I have the following problem converning listview property binding.:
My classes are:
[DataObject]
public class Obj1 {
...
[DefaultValue ("New name")]
[DataObjectField (false)]
public string Name {
get { return this.name; }
set { this.name = value; }
}
[DataObjectField (false)]
public Obj2 Nested {
get { return this.nested; }
set { this.nested = value; }
}
...
}
and
[DataObject]
public class Obj2 {
...
[DefaultValue ("New name")]
[DataObjectField (false)]
public string Name {
get { return this.name; }
set { this.name = value; }
}
...
}

and then I use the ListView. It loads an array of Obj1 objects and successfully puts them in the listView
Then in my item template I have something like this: ...
<strong id="Strong3" runat="server">
<atlas:Label ID="name" runat="server">
<Bindings>
<atlas:Binding DataPath="Name" Property="text" />
</Bindings>
</atlas:Label>
</strong>
</td>
<td>
<strong id="Strong5" runat="server">
<atlas:Label ID="nested" runat="server">
<Bindings>
<atlas:Binding DataPath="Nested" Property="text" />
</Bindings>
</atlas:Label>
</strong>
The output is as expected : obj1.Name is shown as it is and obj1.Nested is shown as [object].
When I change:
<atlas:Binding DataPath="Nested" Property="text" />
to
<atlas:Binding DataPath="Nested.Name" Property="text" />
I get an empty text.
Any hints for that?
Thanks in advance

I don't think the current JSON serializer serializes the server-side properties to client-side properties. I think it only creates an object with public fields.
The DataPath in Binding only supports properties. The reason why the top-level field _does_ work is that the client-side DataRow overrides getProperty and returns a field (ie. calling myDataRow('Name') returns myDataRow['Name'], which equals to myDataRow.Name).

Saturday, March 24, 2012

A Simple Drag & Drop problem

Hello, I'm learning Atlas and I wrote the following code for a drag and drop issue. It doesn't work so, help me to correct this code.

<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="FirstDragAndDrop.aspx.cs" Inherits="FirstDragDrop" %>"-//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" >First Drag and Drop"server"> "text/css" rel="Stylesheet" href="FirstDragAndDropSS.css" /> "form1" runat="server"> true ID="ScriptManager" runat="server"> "ScriptLibrary/AtlasCompat.js" Browser="Firefox" /> "ScriptLibrary/AtlasUIDragDrop.js" />

class="header">Drag & Drop Example

class="main">

class="up">

class="login" id=log>

class="loginHandle">Login

class="loginContent"> "Login" runat="server">

class="calendar" id=cal>

class="calendarHandle">Calendar

class="calendarContent"> "Calendar1" runat="server">

class="down" id="dropzone">

"dropCueTemplate"class="dropCue">

Thanks

"text/xml-script"> "ScriptLibrary/AtlasUI.js"/> "ScriptLibrary/AtlasControls.js"/> "ScriptLibrary/AtlasUIDragDrop.js"/> "dropzone"> "HTML" acceptedDataTypes="'HTML'" dragMode="Move" direction="Vertical"> "dropCueTemplate"/> "log"> "loginHandle" dataType="HTML"/> "cal"> "calendarHandle" dataType="HTML"/>
the source isn't posted correctly... can't help soz!
I don't know how to do for the post to be better. I'll try to do it better.

<%@. Page Language="C#" AutoEventWireup="true" CodeFile="FirstDragAndDrop.aspx.cs" Inherits="FirstDragDrop" %><!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>First Drag and Drop</title>
<link type="text/css" rel="Stylesheet" href="FirstDragAndDropSS.css" />
</head>
<body>
<form id="form1" runat="server">
<atlas:ScriptManager EnablePartialRendering=true ID="ScriptManager" runat="server">
<Scripts>
<atlas:ScriptReference Path="ScriptLibrary/AtlasCompat.js" Browser="Firefox" />
<atlas:ScriptReference Path="ScriptLibrary/AtlasUIDragDrop.js" />
</Scripts>
</atlas:ScriptManager>
<div class="header">Drag & Drop Example</div>
<div class="main">
<div class="up">
<div class="login" id=log>
<div class="loginHandle">Login</div>
<div class="loginContent">
<asp:Login ID="Login" runat="server">
</asp:Login>
</div>
</div>
<div class="calendar" id=cal>
<div class="calendarHandle">Calendar</div>
<div class="calendarContent">
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</div>
</div>
</div>
<div class="down" id="dropzone">
<div id="dropCueTemplate" class="dropCue"></div>
</div>
</div>
<script type="text/xml-script">
<page>
<references>
<add src="ScriptLibrary/AtlasUI.js" />
<add src="ScriptLibrary/AtlasControls.js" />
<add src="ScriptLibrary/AtlasUIDragDrop.js" />
</references
<components>
<control id="dropzone">
<behaviors>
<dragDropList dataType="HTML" acceptedDataTypes="'HTML'" dragMode="Move" direction="Vertical">
<dropCueTemplate>
<template layoutElement="dropCueTemplate" />
</dropCueTemplate>
</dragDropList>
</behaviors>
</control
<!--Draggable Items--> <control id="log">
<behaviors>
<draggableListItem handle="loginHandle" dataType="HTML" />
</behaviors>
</control
<control id="cal">
<behaviors>
<draggableListItem handle="calendarHandle" dataType="HTML" />
</behaviors>
</control
</components>
</page
</script>
</form>
</body>
</html>

This looks like a sample for an older build. Here's a similar sample that works with the March CTP:

 <atlas:ScriptManagerProxy runat="server" ID="scriptManagerProxy"> <Scripts> <atlas:ScriptReference ScriptName="AtlasUIDragDrop" /> </Scripts> </atlas:ScriptManagerProxy> <div class="shim column"></div> <div class="page" id="links"> <div id="content"> <h2>Atlas.UI.DragDrop</h2> <p>This file contains script that demonstrates the drag & drop functionality.</p> <div class="dragDrop"> <div style="visibility:hidden; display:none"> <ul> <li id="dropCueTemplate" style="border-top: 1px solid #000" /> <li id="emptyHostTemplate">No draggables in this host.</li> </ul> </div> Zone 1 <ul id="zone1"> <li id="item1"> <div class="draggableFrame"> <div id="item1handle" class="handle"> <span class="handleText">Draggable 1.1</span> </div> <div id="item1data" class="draggableBody"> Draggable list item 1 from zone 1 </div> </div> </li> <li id="item2"> <div class="draggableFrame"> <div id="item2handle" class="handle"> <span class="handleText">Draggable login</span> </div> <div id="item2data" class="draggableBody"> <asp:Login ID="Login1" runat="server" /> </div> </div> </li> </ul> Zone 2 <ul id="zone2"> <li id="item3"> <div class="draggableFrame"> <div id="item3handle" class="handle"> <span class="handleText">Draggable 2.1</span> </div> <div class="draggableBody"> Draggable list item 1 from zone 2 </div> </div> </li> <li id="item4"> <div class="draggableFrame"> <div id="item4handle" class="handle"> <span class="handleText">Draggable 2.2</span> </div> <div class="draggableBody"> Draggable list item 2 from zone 2 </div> </div> </li> <li id="item5"> <div class="draggableFrame"> <div id="item5handle" class="handle"> <span class="handleText">Calendar</span> </div> <div> <asp:Calendar ID="Calendar1" runat="server" /> </div> </div> </li> </ul> </div> </div> </div> <script type="text/xml-script"> <page xmlns:script="http://schemas.microsoft.com/xml-script/2005"> <components> <control id="zone1"> <behaviors> <dragDropList dataType="HTML" dragMode="Move" acceptedDataTypes="'HTML'"> <dropCueTemplate> <template layoutElement="dropCueTemplate" /> </dropCueTemplate> <emptyTemplate> <template layoutElement="emptyHostTemplate" /> </emptyTemplate> </dragDropList> </behaviors> </control> <control id="item1"> <behaviors> <draggableListItem handle="item1handle" /> </behaviors> </control> <control id="item2"> <behaviors> <draggableListItem handle="item2handle" /> </behaviors> </control> <control id="zone2"> <behaviors> <dragDropList dataType="HTML" dragMode="Move" acceptedDataTypes="'HTML'"> <dropCueTemplate> <template layoutElement="dropCueTemplate" /> </dropCueTemplate> <emptyTemplate> <template layoutElement="emptyHostTemplate" /> </emptyTemplate> </dragDropList> </behaviors> </control> <control id="item3"> <behaviors> <draggableListItem handle="item3handle" /> </behaviors> </control> <control id="item4"> <behaviors> <draggableListItem handle="item4handle" /> </behaviors> </control> <control id="item5"> <behaviors> <draggableListItem handle="item5handle" /> </behaviors> </control> </components> </page> </script>

Is it possible to retain these postions for the widgets when the user logs in for the second time.

manjunath

Wednesday, March 21, 2012

a first-day atlas user got this error, HELP!

when i following the basic atlas application from the following link, btw, I didn't use visual studio, I just manually do it from text editor and command line compiler.

http://atlas.asp.net/docs/Walkthroughs/GetStarted/Basic.aspx

I got a "syntax error" when I launched the page. then when i input text and pressed button, I got "sample undefined" error and nothing happen.

This is the log :

2006-06-29 20:21:18 192.168.1.1 - 192.168.1.36 80 GET /AtlasScript.aspx - 200 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) -
2006-06-29 20:21:19 192.168.1.1 - 192.168.1.36 80 GET /WebResource.axd d=-qnjsxFIQPRe60N1ywfq1ZGbOVMGC5TKMX4JTqrXTR7atJCaMTR4Fc76IpI0uvmBTmmGba1jsr6v9f3MrKscIivr3HdGL-IH8Yqrm9oH01I1&t=632799165960000000 200 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727)http://www.mydomain.com/AtlasScript.aspx
2006-06-29 20:21:19 192.168.1.1 - 192.168.1.36 80 GET /HelloWorldService.asmx - 302 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727)http://www.mydomain.com/AtlasScript.aspx
2006-06-29 20:21:19 192.168.1.1 - 192.168.1.36 80 GET /ErrorPage.aspx aspxerrorpath=/HelloWorldService.asmx/js 200 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727)http://www.mydomain.com/AtlasScript.aspx

hello.

can you be more specific about the error? is it a script error?


yes, it's a script error from browser(IE)

hello again.

well, where are you getting it? what does the error message say? where does it stop in the debugger? what's your code? without knowing this we won't be able to help you.


PROBLEM solved, I followed the installation instruction to modify web.config, it failed, buy when I copied the web.config from atlas folder, it works now!

Thank you very much!

60731 error

I heve the following code

<asp:TextBox ID="txtde_la" runat="server" CssClass="TextBox"
Font-Bold="True" Font-Size="XX-Small" Width="30%" OnInit="txtde_la_Init"></asp:TextBox>
<asp:RegularExpressionValidator ID="validde_la" runat="server" ErrorMessage="*"
Font-Bold="True" ControlToValidate="txtde_la"></asp:RegularExpressionValidator>
<asp:Panel ID="Panel1" runat="server">
<atlas:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<atlasToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server">
<atlasToolkit:PopupControlProperties PopupControlID="Panel1" Position="Bottom" TargetControlID="txtde_la" ID="foo" />
</atlasToolkit:PopupControlExtender>
<center>
<asp:Calendar ID="Calendar3" runat="server" BackColor="White" BorderColor="#999999"
CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" OnSelectionChanged="Calendar3_SelectionChanged" Width="160px">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="Gray" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</center>
</ContentTemplate>
</atlas:UpdatePanel>
</asp:Panel>

protected void txtde_la_Init(object sender, EventArgs e)
{
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("ro-RO", false);
DateTime dt = new DateTime();
dt = DateTime.Today;
txtde_la.Text = txtpana_la.Text = dt.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString();
}

After upgrading to 60731 on Panel at design time I get the following error: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

And another problem with an TextBoxWatermarkExtender on the same page.

After selecting a date on that Calendar the watermark text dissapears.

Sorin

Shawn outlines the Atlas change that introduced locking and the workaround for the resulting problem here:http://forums.asp.net/thread/1358703.aspx.