I know I’ve seen the solution to this one somewhere, but if you’re getting the following error on a 64-bit platform, the solution is to set your application to compile as “x86” and not “Any CPU”:
ERROR: 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
There have been several people requesting help using the Yahoo! Address Book web services in the .NET Developer Forum. People are getting 403 or 404 error codes back.
I did some digging into the issue this morning and the cause for the 404 error turns out to be an invalid URL for the DOCTYPE declaration for the returned XML data. In short the URL http://l.yimg.com/a/lib/pim/r/abook/xml/2/pheasant.dtd set as the DOCTYPE for the resulting successful web service call XML data is invalid.
This causes problems when using the Yahoo.Authentication class methods, such as GetAuthenticatedDataSet(), resulting in a 404 when the .NET XmlReader attempts to validate the data against the DTD.
The way to work around this issue is to use your own XmlReader with custom XmlReaderSettings specifying to ignore the DTD. More...
One big surprise for me was that out of browser support made it into version 3. While it is nowhere near as comprehensive as Adobe Air, its main advantages are that users don’t need a separate runtime download and for developers the programming model is pretty much the same for in and out of browser.
View the session.
Installing a Silverlight application is easy for the user, and making an application available is easy for the developer.
- Shortcuts can be placed on desktop and Start-menu.
- No Control Panel Add/Remove Programs item added (listening to feedback).
- Right-click: Remove this application.
- Multiple icon sizes can be provided. Must be PNGs (transparency supported).
- Install dialog
- Applications can be “previewed” in the browser before installation since the application is the same in both the browser and out.
“Detaching” is the term of moving (installing) a Silverlight application from browser onto the desktop.
- Name, Title, and Description
- Application icons
- APIs on Application
- Detach method (must be called from a user interaction)
- ExecutionState property
- ExecutionStartChanged event
- RunningOffline property
- Optimized for “instant on”. No check for “new version” is done when the application starts.
- Silverlight downloads update in the background.
- Next application launch runs the new version.
- Event raised when an update has been downloaded. This lets you prompt the user to restart the application if necessary.
- Network access information is key for out of browser applications
- Silverlight adds functionality
- IP address changed event
- Network availability property
- Any net interface, connected, not looped back
- Best practice is to “ping” server by attempting to download a small file when state changes and a valid IP address exists. There maybe cases where the network is “available”, but limited to the local network (automatically generated private IP address).
Saving Data Locally
- OoB Isolated Storage limit is increased to 25MB
- Limit is increased when the application is detached
- Allows you to set file types (filter)
- Application gets access to a Stream, but not the path
- HTML DOM Bridge is not available
- Shortcuts point to a small Silverlight host application that contains a browser instance
- Bundles are used on Macs
- Use MessageBox for startup with Application_UnhandledException
- Use Attach to Process on slhost.exe in Visual Studio. Will be improved post beta.
Differences vs. In Browser
- Additional key access (Function keys for example)
- No HTML DOM Bridge
- No mouse wheel
- No XmlHttp
- Currently no HTML interop or rendering.
- Out of browser will currently always have operating system window chrome.
- (See above for network availability testing)
- Download local data in the OoB instance after the application has been detached.
- Check RunningOffline to see if you’re out of browser
- Don’t fire off more than one HWR at a time.
- Keep all your code in the XAP
- Silverlight versions for you making updates easy to manage
- Assets can go outside
- If your data model changes, require a restart.
- Show UI for major updates so user knows things have changed.
Mike Harsh’s Slidentity Silverlight “PowerPoint” application.
MSDN pre-release documentation.
Here’s a quick rundown (mostly of the slide content) presented by Joe Stegman. View the session.
As I mentioned in my previous post, there were a couple of nice surprises that I didn’t believe wouldn’t make version 3, but in addition to those there are a ton of new features as listed below.
- Perspective 3D
- Rotate any visual object by its X/Y/Z axes
- Effects and Pixel Shaders
- Pixel APIs
- Dynamic bitmap generation
- Render a visual tree (elements) to a bitmap
- Image editing and effects
- Clone visuals
- DirectX SDK used to generate
Raw Audio/Video APIs
- Dynamic sound generation
- Custom audio/video decoders
- Cross plug-in Silverlight communication: cross plug-in/tab/browser/out-of-browser
- Shared memory implementation
- Exposed like "named pipes"
- String based messages only (no byte-based, maybe later based on feedback)
- Same domain required with opt-in
UI Framework Improvements
- Merged Resource Dictionaries
- BasedOn Styles
- Styles can be “cleared”
- Multi-select ListBox
- Listening to “handled” routed events
- New VSM “Invalid” states
- Supported on TextBox, CheckBox, ComboBox, ListBox, RadioButton, PasswordBox (coming later)
- Especially useful for “high contrast” settings
- Text Improvements
- ClearType Text (post beta)
- CaretBrush (SL 2 caret was black)
- Flag to optimize for animating text
- Glyphs support for system font
- Image Refinements
- Getting size
- Bypass cache
New SDK Controls
Other Big Additions
- Save File Dialog
- Navigation Framework
- “Native” integration with the browser history
- Data Control Additions
- SEO Support
- n-Tier data support
- Binary XML, SOAP faults, Credentials
Out of Browser
- Silverlight runs sandboxed on desktop
- Built into the core Silverlight runtime
- Enabled per “application”
- More storage space by default: 25MB
- User gesture required to take “out of browser”
- Right-click context menu option
- Custom buttons (user action required to trigger event)
- New networking APIs
- Connected, disconnected and changed state
- Available in the browser, too
- Offline APIs
- Launch state, update APIs
- Add icon to install dialog
- “Take a XAP offline” – easy to deploy if everything is in the XAP. Doesn’t have to be.
- No printing support.
- No FlowDocument.
- 3 behavior changes that aren’t backwards compatible
- No Commanding support
- Isolated Storage performance problems fixed
Here’s a quick rundown of the items covered during the initial Mix09 keynote. View keynote.
Beta available today.
Allows you to compare the rendering of a web page in different browsers. Supports both local installations of browsers and a cloud-based service to render in other browsers.
Read more on the Expression Blog.
ASP.NET MVC 1.0
ASP.NET 4 and VS 2010
Even better IDE for C#/VB and web developers.
Web Platform Installer
Version 2.0 beta available today. Now allows web applications to be installed along with any dependencies.
- FastCGI/PHP and .NET full trust
- SQL Data Services
- .NET Services
Commercial release this year.
Two surprises from left-field: Out of Browser and Multitouch support!
- 350+ million installations
- 300,000 Developers & Designers
- 200+ partners worldwide
- 200+ Microsoft Products and Websites
- 10,000’s of apps globally
Silverlight 3 Media Enhancement
- GPU hardware acceleration
- New codec support (H.264, AAC, MPEG-4)
- Raw bitstream Audio/Video API, use .NET to access stream data
- Improved logging for media analytics
IIS Media Services
- Free for IIS
- On-demand smooth streaming
- Live smooth streaming
- Edge caching
- Web playlists
- Bit-rate throttling
- Advanced logging
Silverlight 3 Graphics
- GPU acceleration and hardware compositing
- Perspective 3D
- Bitmap & pixel API
- Pixel shader effects
- Deep Zoom improvements
- Deep linking, navigation and SEO
- Improved text quality (ClearType)
- Multi-touch support
- 100+ controls available
- Library caching support (finally! Like a Global Assembly Cache for Silverlight)
- Eclipse Support for Silverlight (on the Mac)
Silverlight 3 Data
- Data-binding improvements
- Validation error templates
- Server data push improvements
- Binary XML networking support
- Multi-Tier REST data support
Out of Browser
Run Silverlight applications on the desktop for both Windows and Mac.
- Extend media experiences
- Companion applications for your website
- Lightweight data snacking applications
- Simple consumer friendly experience
- Safe, secure, sandboxed environment
- Built-in auto-update support
- Build offline-aware applications
- Integrate with underlying operating systems
Total size: ~4.4MB. 40k smaller than Silverlight 2!
- Thousands of new APIs
- Hundreds of new features
- New codecs
- Out of browser support
- Single beta planned
- Ship later this year
- Silverlight 3 Beta
- Expression Blend 3 Preview
- Silverlight 3 Tools for Visual Studio 2008
- IIS Media Services
Expression Blend 3
Be sure to watch the keynote by Bill Buxton. Great energy and view on design.
- Flow diagram for different parts of an application.
- “Wiggly” controls. Working controls that look like conceptual prototypes.
- Free viewer application to view “sketches”.
- Supports multiple options.
- Supports displaying transitions with animations.
- Supports giving feedback. Notes and drawing on the sketches directly. Send to Blend and view in context.
- Export to Word to auto-generate documents for clients.
- Adobe Photoshop and Illustrator import
- Designing with data
- Source code controls
- XAML, C# and VB code Intellisense
I just added the source code that Drew requested to the Downloads page.
I was playing around with the WCF REST Starter Kit CodePlex Preview 1 package and had some problems getting the Visual Studio 2008 templates installed correctly. Someone suggested running MSIEXEC with elevated permissions, but in the end I did the following:
- Run the setup, let the add-in installer crash closing any debug requests and such.
- Open the installation directory, such as C:\Program Files (x86)\WCF REST Starter Kit\Visual Studio Templates Installer.
- Double-click on RESTStarterKit.vsi and follow the instructions.
I still haven’t got the item templates to show up as expected. I noticed they got installed under Documents\Visual Studio 2008\Templates\ItemTemplates\Visual Web Developer instead of Visual C#, but moving them didn’t fix the issue.
I had to get my work laptop reinstalled the other week due to disk failure, and today I tried to open a Visual Studio 2008 project but I kept getting “The project type is not supported by this installation”.
What I had thought was a simple C# project was actually a Silverlight application project. (If you’re wondering why I didn’t know which type of project was in question, it’s a “dummy” project I’m using to create class diagrams, for ActionScript no less. VS is a great tool for many things.)
The reason the project wouldn’t start was that I hadn’t installed the Silverlight Tools for Visual Studio 2008 SP1. A (not so) quick install later I was up and running again.