Shiny Silverlights

...Another Silverlight MVP blog

Error

...now browsing by category

 

Could not load file or assembly ‘mswacdmi.dll’ or one of its dependencies. The specified module could not be found.

Monday, February 28th, 2011

Pretty much out of the blue, I couldn’t debug my Azure web role on my local machine anymore. I kept getting the following error:

Could not load file or assembly ‘mswacdmi.dll’ or one of its dependencies. The specified module could not be found.

Digging around it turned out to be a known issue when running full IIS on the x86 devfabric.

The solution is to add the Azure SDK path to your system path environment value and of course restart your system.

Right click My Computer => Properties => Advanced System settings => Environment values => New

C:\Program Files\Windows Azure SDK\v1.3\bin\runtimes\storage\simulation\x86

Just in Time PivotViewer not showing description

Monday, February 21st, 2011

I was playing around with JIT Pivot example (available from here) and noticed that image description isn’t displayed on the sidebar. The solution is actually quite simple. We have to ask the image Description to be serialized to XML as well.

Open PivotServerTools –> CxmlSerializer.cs and to the method MakeItemContent add a row:

if (!string.IsNullOrEmpty(item.Description)){
    yield return new XStreamingElement(Xmlns + "Description", item.Description);
}

Handler "CXML" has a bad module "ManagedPipelineHandler" in its module list

Tuesday, February 15th, 2011

Possible solutions I found while searching for a solution myself:

Check if IIS is installed correctly:

run %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –i

or for x64

run %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –i

http://forums.iis.net/t/1149449.aspx

Comment out the Visual Studio httpHandlers from web.config after the commenct

 

<!–
The Visual Studio Development Server uses these httpHandler configuration values.
To run the server under IIS, comment these handlers so that IIS will use the
duplicate set of handlers in the system.webServer section below.
–>

http://getsatisfaction.com/live_labs_pivot/topics/handler_cxml_has_a_bad_module_managedpipelinehandler_in_its_module_list

Add .cxml as an allowed mime type

Most pages recommended using .cxml and text/xml, but somewhere I also saw .cxml text/cxml recommended. I also set .dzi and .dzc to text/xml.

http://serverfault.com/questions/179591/iis7-how-to-configure-server-to-serve-cxml

 

Set the correct Application Pool

For me what fixed the problem was setting the correct Application Pool for the site.

It was set to .NET Classic, it has to be on ASP.NET v4.0

http://forums.silverlight.net/forums/p/209710/494967.aspx

Other links that I browsed

http://forums.silverlight.net/forums/p/205826/482545.aspx

Azure BLOB files not found – 404

Thursday, February 10th, 2011

I am just walking my first steps on the Azure high-way. Got everything working, files were uploading and life was good until I tried to access the files, then Azure told me they weren’t there.

So if you’re getting File not found error with Azure then you have to set the permissions so that container is public.

	CloudBlobContainer container = objClient.GetContainerReference("mycontainer");
        container.CreateIfNotExist();

        var permissions = container.GetPermissions();
        permissions.PublicAccess = BlobContainerPublicAccessType.Container;
        container.SetPermissions(permissions);

Now you can access your files with ease :)

Errors with Azure certificates

Monday, January 31st, 2011

When publishing to Azure you are asked to provide a certificate you want to use, and of course you should upload the certificate to the Azure portal beforehand. It seems so trivial now but I did manage to upload the certificate to the wrong place and get errors when trying to publish my service.

So if you are getting one of these error messages there is a change you uploaded your certificate to the wrong place.

The wrong place is the upload form with a password field.

The http request was forbidden with client authentication scheme ‘anonymous’

or

SEHException was caught

External component has thrown an exception.

 

The right place to upload your certificate

 

Upload your certificate to: Hosted Services, Storage, Accounts and CDN = > Management certificates.

image

image

Hope I saved you some troubles.