bluestrattos

Hello!
I'm using Vista with VS 2005 and Ms Expression Blend, and i'm developing a xmal Browser application.

I design my application in Blend and then i test it (pressing F5), and then a IE windows opens and the application is there. But this only work when i run through Blend. If i'll try to see how the application looks, outside blend, it gives me an error saying "Application File Not Valid"

For isntance if put the link (C:\\Docs\Visual Studio 2005\Projects\b2b\b2b\bin\Debug\b2b.xbap) directly in the browser it gives me the message error above.

Again i go to Blend test it, there she is runing like it should be.

Even if i use VS to change some code and then build the solution and try to see the changes in my xaml browser application, it gives the message error "Application File not Valid".

I already searched, searched, searched without success. I configured IIS 7, everything...

The message produces an error log:
Code Snippet




PLATFORM VERSION INFO
Windows : 6.0.6000.0 (Win32NT)
Common Language Runtime : 2.0.50727.312
System.Deployment.dll : 2.0.50727.312 (rtmLHS.050727-3100)
mscorwks.dll : 2.0.50727.312 (rtmLHS.050727-3100)
dfshim.dll : 2.0.50727.312 (rtmLHS.050727-3100)

SOURCES
Deployment url : file:///C:/Documents/Visual%20Studio%202005/Projects/b2b/b2b/bin/Debug/b2b.xbap

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while downloading the manifest. Following failure messages were detected:
+ Exception reading manifest from file:///C:/Documents/Visual%20Studio%202005/Projects/b2b/b2b/bin/Debug/b2b.xbap: the manifest may not be valid or the file could not be opened.
+ The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
No phase information is available.

ERROR DETAILS
Following errors were detected during this operation.
* [18-05-2007 11:50:14] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from file:///C:/Users/forum/Documents/Visual%20Studio%202005/Projects/b2b/b2b/bin/Debug/b2b.xbap: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
at System.Deployment.Application.DeploymentManager.BindAsyncWorker()
--- Inner Exception ---
System.Xml.Schema.XmlSchemaValidationException
- The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared.
- Source: System.Xml
- Stack trace:
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaException e)
at System.Xml.Schema.XmlSchemaValidator.RecompileSchemaSet()
at System.Xml.Schema.XmlSchemaValidator.Init()
at System.Xml.Schema.XmlSchemaValidator..ctor(XmlNameTable nameTable, XmlSchemaSet schemas, IXmlNamespaceResolver namespaceResolver, XmlSchemaValidationFlags validationFlags)
at System.Xml.XsdValidatingReader.SetupValidator(XmlReaderSettings readerSettings, XmlReader reader, XmlSchemaObject partialValidationType)
at System.Xml.XsdValidatingReader..ctor(XmlReader reader, XmlResolver xmlResolver, XmlReaderSettings readerSettings, XmlSchemaObject partialValidationType)
at System.Xml.XmlReader.CreateReaderImpl(XmlReader baseReader, XmlReaderSettings settings)
at System.Xml.XmlReader.Create(XmlReader reader, XmlReaderSettings settings)
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.



I would appreciate some help.

Thank you.

Bluestrattos


Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

Chango V. - MSFT

Can you show the contents of the generated .xbap file In a normal one produced by MSBuild I'm not seeing the xml:lang attribute.




Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

bluestrattos

Thank you!!

Here it's:



Code Snippet

< xml version="1.0" encoding="utf-8" >
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity name="b2b.application" version="1.0.0.0" publicKeyToken="4a5720fd60d5455e" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="b2b" asmv2:product="b2b" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="false" />
<dependency>
<dependentAssembly dependencyType="install" codebase="b2b.exe.manifest" size="12098">
<assemblyIdentity name="b2b.exe" version="1.0.0.0" publicKeyToken="4a5720fd60d5455e" language="neutral" processorArchitecture="msil" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>UiYdyVTHDzZm0u1hrMslST761gY=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<publisherIdentity name="CN=forumvista\forum" issuerKeyHash="ca91ec892e15f751cc3bb21c4ccba71b81d3d043" /><Signature Id="StrongNameSignature" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>3oxC4wgo32X4rzmjIA/np4dmNzk=</DigestValue></Reference></SignedInfo><SignatureValue>fYwryq/4QqlJWHnO8A6yVgVzZOyhJ2zzXQXaW7XA6DJb4I0flv02yhtrTC44dNPMRwrm3SkyALI2TEXlBJ5ta624V3DwL9I23pxRGF31LtDDCkUViTzEZAo+p3e8KVPavYmP0uDPSCxcyjB0m0lCD0cAw7w5ODCEwODFq6/hRE8=</SignatureValue><KeyInfo Id="StrongNameKeyInfo"><KeyValue><RSAKeyValue><Modulus>1PxxnV67QExNxkK/+iB6q08qeIBrZcfcF5tXIW5AZAmTuesD/ws3ixIlRmXDBbRk6HgiKv/fRfNQts5uoJM1MafhxzbjbsJqdkBNeH7BDIEOHhOU5PYWfZGxx5gV8G1pLhxSrSp0r4xT8ty6L5IUINyq1Prw70LICc5MnG0fpnU=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><msrel:RelData xmlns:msrel="http://schemas.microsoft.com/windows/rel/2005/reldata"><r:license xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:as="http://schemas.microsoft.com/windows/pki/2005/Authenticode"><r:grant><as:ManifestInformation Hash="39376687a7e70f20a339aff865df2808e3428cde" Description="" Url=""><as:assemblyIdentity name="b2b.application" version="1.0.0.0" publicKeyToken="4a5720fd60d5455e" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /></as:ManifestInformation><as:SignedBy /><as:AuthenticodePublisher><as:X509SubjectName>CN=forumvista\forum</as:X509SubjectName></as:AuthenticodePublisher></r:grant><r:issuer><Signature Id="AuthenticodeSignature" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>3qTEvm4PSJNneRje5RqU3AAUI+0=</DigestValue></Reference></SignedInfo><SignatureValue>Si3IQ6iwhzt1fYYKu0rJLwAqyrdCdR+61JJPXvLfTBqcctO26MlZXfzMx/9L8mj4u+WTmcI7yZPD7ufWu3dcovm73yYxIIPtXLaAv+qxK/xiQYmHZZC59tBnRwWHqA6BmMfunHZz3U1ZVzhq/Sb4B9A6o2hIldS6n2sI+119Rdc=</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Modulus>1PxxnV67QExNxkK/+iB6q08qeIBrZcfcF5tXIW5AZAmTuesD/ws3ixIlRmXDBbRk6HgiKv/fRfNQts5uoJM1MafhxzbjbsJqdkBNeH7BDIEOHhOU5PYWfZGxx5gV8G1pLhxSrSp0r4xT8ty6L5IUINyq1Prw70LICc5MnG0fpnU=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>MIIB2TCCAUKgAwIBAgIQsMS7Wj9iNolCZr1a8Gl6qjANBgkqhkiG9w0BAQUFADArMSkwJwYDVQQDHiAAZgBvAHIAdQBtAHYAaQBzAHQAYQBcAGYAbwByAHUAbTAeFw0wNzA1MTcxNzM2MTBaFw0wODA1MTYyMzM2MTBaMCsxKTAnBgNVBAMeIABmAG8AcgB1AG0AdgBpAHMAdABhAFwAZgBvAHIAdQBtMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDU/HGdXrtATE3GQr/6IHqrTyp4gGtlx9wXm1chbkBkCZO56wP/CzeLEiVGZcMFtGToeCIq/99F81C2zm6gkzUxp+HHNuNuwmp2QE14fsEMgQ4eE5Tk9hZ9kbHHmBXwbWkuHFKtKnSvjFPy3LovkhQg3KrU+vDvQsgJzkycbR+mdQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAIerZsDknKgnBkrX3QnzysYPNJgNE+zIOjIOYVPA7EgDHazyKjYwyT4TOicFUxuiGcJ9qAgmq4NfYZKwCpIufD5W1JqiymV/giGWdTTuxUOaBSooW/SlpblK6nNd3Mj7m+EvwhFMWkZE+6sg2MUPBBwk9VwxeoAga4/p8t2SOrQI</X509Certificate></X509Data></KeyInfo></Signature></r:issuer></r:license></msrel:RelData></KeyInfo></Signature></asmv1:assembly>





Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

Chango V. - MSFT

This manifest appears valid, and there is no reference to the xml:lang attribute in it. Can you verify that it is being regenerated when you rebuild the project and that it is the one actually executed

Can you run any XBAP from the Internet

In general, you should be aware of the pitfall that if you run an XBAP directly (from the shell or from the browser), it gets cached. If you make changes and rebuild, you must increment the version number. (The Publish feature of Visual Studio, does that, but AFAIK it's not available in Blend.) If you don't, you may still be running the cached version. To clear the ClickOnce application cache, run 'mage -cc' from an SDK command window.






Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

bluestrattos

That's another problem i've. i can't simply double click in a .xbap file and open it in IE. sometimes i see in blogs a link to a .xbap, but once i click it gives me an error "Applicaton File Not Valid".
I was wondering how is possible to link a .xbap file, and simply make it available, like we do with html where we just wrote href=url and that's it.

About my deploying... maybe is the issue that xbap's have that if two IE windows are open the PresentationHost.exe, won't work, and it will be the error "Application file Not Valid".

About publishing in VS i still don't get it what i 've to do, i give permissions to the folder in IE7, i mean VS does that automatically (i think) when i say where we want to publish, but once i publish him, and try to run it, there comes the error again "Application File Not Valid".

Even if the code is correct, in Blend i can build and run it, but once i try to build and run debug in VS, there comes the error in the IE window saying "Application File Not Valid".

I can't get out of my mind the idea that UAC of Vista have something to do with this problem.

I know that xbap's have some security issues, but is it possiblem build a website with data and authentication like we do easily in asp.net

Because i can do as website with asp.net access a database in a flash, but so far i'm unable to do the same in xbap... i think i'm comming to a sad realization... cancel or allow

Thank you.





Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

Chango V. - MSFT

If you can't run any published XBAP, there must be something wrong with the installation of the .NET Framework on your computer. Look closer at the error logs & callstacks: This "Application File Not Valid" is just the top-level error message. The innermost exception is usually closest to the problem, and it is about XML validation of the manifest. It doesn't make much sense, because your manifest is valid, but at least we know it's not that the manifest is not found.

You indicated you are running Windows Vista on this computer. I suggest you try to re-install the .NET Framework v3. Go to Control Panel - Programs - Turn Windows Features On & Off. Find it there, uncheck, wait for uninstall to finish, restart if required, and install again.

What language is your OS Do you have multiple language packs installed/enabled If yes, try switching languages and running any XBAP again.

Last, if you have some design-related questions about XBAPs, I suggest you start a new thread.






Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

bluestrattos

The problem remains. My Windows Vista is in English and don't have any other language pack installed.

I did uninstall 3.0 framework, reboot, clean everything, re-install it again, yet nothing changes.

I have a project that in Blend when i press F5 he is loaded in a IE browser window.

the same link (c:\docs\...\temp.xbap) this time opened directly in browser gives me that same message "Application File Not Valid", and the same error, that i started this topic.

I really don't know what to do.... i miss the old asp.net 2.0

i'll probably follow your sugestion and open another thread about some generals questions that i have, and i started in my last post.

But thank you very much, Chango V. for helping me.




Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

Chango V. - MSFT

We have to separate issues related to building in Blend from any general XBAP deployment failures. Starting an XBAP with F5 is different from running it directly in the browser: the ClickOnce deployment & caching are bypassed. Can you run this XBAP: http://ttpdownload.bl.uk/browserapp.xbap

Did you try clearing the ClickOnce cache before running your local XBAP directly in IE

Can you try putting the same XBAP that you build in Blend on a web server (even if on the same computer) and running it via http://






Re: Windows Presentation Foundation (WPF) error deploying xaml browser application

bluestrattos

The link you provided for testing the result was the same as other times the page saying "Application File Not Valid". The error log said the same thing as the post above, the only difference was the source link....

I wasn't able to execute "mage -cc" that it's suppose to clear the cache, even so, i put a xbap project in a web server and the result was the same "Application File Not Valid".

Thank you.