Questions tagged [xap]

XAP is an XML-based declarative framework for building, deploying and maintaining rich, interactive Ajax powered web applications.

XAP is an XML-based declarative framework for building, deploying and maintaining rich, interactive Ajax powered web applications. XAP aims to reduce the need for scripting and help solve the development and maintenance challenges associated with large scale JavaScript programming.

Simple login screen:

<xal>
    <dialog>
        <horizontalBoxPane>
            <label text="Username"/>
            <textField id="username"/>
            <label text="Password"/>
            <textField id="password"/>
            <button text="login"
              onCommand="login-url"/>
        </horizontalBoxPane>
    </dialog>
</xal>

XAP is a complete framework for building Ajax applications. Whether you're building a large application with many screens or you simply want to enhance an existing website with Ajax, the XAP project can help get your project done quicker and easier.

More information available here.

191 questions
41
votes
11 answers

Xap packaging failed. Object reference not set to an instance of an object

I'm getting this error message on my PC when I try to build my Windows Phone app: Xap packaging failed. Object reference not set to an instance of an object I'm using Dropbox. On my laptop, It works perfectly fine and I can debug etc...On my PC…
Subby
  • 5,370
  • 15
  • 70
  • 125
30
votes
5 answers

Forcing browsers to reload Silverlight xap after an update

I have a Silverlight control packaged up and deployed to a SharePoint web part. I'm having trouble with the browser loading new versions of the control after I push an update. I'm updating the assembly and file version of my xap project, but it…
Chris Stewart
  • 3,303
  • 9
  • 36
  • 55
24
votes
7 answers

Making the Silverlight XAP file expire from browser cache programmatically

How to do I prevent a Silverlight XAP file being cached by the web browser? The reason I want to do this is during development I don't want to manually clear the browser cache, I'm looking for a programmatic approach server side.
AwkwardCoder
  • 24,893
  • 27
  • 82
  • 152
15
votes
1 answer

Cannot install company app on windows phone 8

We are developing a company app for windows phone 8. I have followed every step described in Company app distribution for Windows Phone Here is what I did: Registered company account Bought an enterprise certificate from Symantec. Exported PFX…
11
votes
4 answers

VS 2010 loading slow - Xap packaging failed. Exception of type 'System.OutOfMemoryException' was thrown

I'm having an issue with VS 2010. It's running very slow and also crashes occasionally when compiling and packaging a xap file with the following error: Xap packaging failed. Exception of type 'System.OutOfMemoryException' was thrown. In the local…
ramnz
  • 631
  • 1
  • 6
  • 24
9
votes
2 answers

How do browsers handle caching of XAP packages?

As you know all, you can build a silverlight XAP package and reference it using object tag on your HTML page or asp.net page. When the browser downloads the XAP package from the server the first time the page is referenced by the user, if the user…
ActiveX
  • 1,064
  • 1
  • 17
  • 37
8
votes
1 answer

Visual Studio packs into WP8 XAP unnecessary XML doc files

If you create Windows Phone 8 App in Visual Studio and reference any libs with XML documentation files supplied from nuget or manually, Visual Studio will automatically pack those XML files into output XAP as well. In our case this weird behavior of…
A-student
  • 785
  • 1
  • 5
  • 12
7
votes
3 answers

How to force re-download of Silverlight XAP file

I'm trying to figure out how to force the browser to re-download a .xap file if the new version is available and yet the old one is still cached in the browser. I've seen the other thread: How do you force Firefox to not cache or re-download a…
user302845
6
votes
4 answers

silverlight 4, dynamically loading xap modules

I know that it is possible to load xap modules dynamically using Prism or MEF framework. However, I'd like not to use those frameworks; instead load my xap files manually. So, I created the following class (adapted from internet): public class…
synergetic
  • 7,756
  • 8
  • 65
  • 106
6
votes
3 answers

XAP Expires after half a Day?

Im just wondering what would be causing my xap to expire every half day (approx). What i mean is that in the morning a user hits the website and it downloads a copy of the xap, by the afternoon if that user goes back to the website and the website…
Matt
  • 3,305
  • 11
  • 54
  • 98
6
votes
2 answers

Prevent Silverlight xap from being cached by proxy server

The company I work for has proxies/WAN accelerators between our international sites to cache Intranet web content. I have a Silverlight application being hosted on a server at one location, but being accessed by clients in another location. When…
Tim Trout
  • 1,062
  • 12
  • 20
6
votes
2 answers

Packaging ResourceDictionary for Silverlight Class Library

I have a silverlight class library (not a top-level application) with several user controls that are shared by different silverlight applications. I have gone through and pulled out several styles and brushes for the controls and put them in a…
Dan Auclair
  • 3,607
  • 25
  • 32
6
votes
2 answers

TFS build Xap packaging failed because it is being used by another process

I am responsible over managing our automated builds and recently we have moved two silverlight based web applications into the same solution. Now about half the time when we build through the build server the build fails randomly with one of the two…
Ben Anderson
  • 7,003
  • 4
  • 40
  • 40
5
votes
5 answers

Deploy more than one WP7 App with same Visual Studio Solution?

How can I deploy more than one WP7 app with the same Visual Studio solution? What do I need to change to achieve this? Changing Xap file name and assembly GUID and title does not achieve it. In fact VS overrides the old one with new title but does…
Buju
  • 1,546
  • 3
  • 16
  • 27
5
votes
1 answer

"Can't install company app" on Windows Phone 8

I've developed a company app for Windows Phone 8, and have gone through all the recommended steps to set it up for installation. I have a Symantec code-signing certificate, and I have generated my Application Enrollment Token and my signed XAP,…
Billious
  • 2,563
  • 4
  • 21
  • 26
1
2 3
12 13