Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

Saturday, March 24, 2012

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