Wednesday, September 14, 2011

Load 32bit assemblies on 64bit Azure Server(IIS) Machine.

Normally when we used to deploy the apps on azure server. If we have some old assembly which was build on 32bit environment then we used to get the Exception.
"Could not load file or assembly 'XXXXX' or one of its dependencies. An attempt was made to load a program with an incorrect format." as

The one solution is redeploy the whole project by changing the project platform to Any CPU Good blog post are here.

But there is one other way also there without redeploying the whole process which are as.

Step1.) Login to azure portal and open the Remote desktop of role which is causing the problem.
Step2.) Inside the azure machine open the IIS manager and Application Pool in the left Pane.
Step3.) Right click on the pool used by azure roles(Long guid kind of name) and select the Advanced Setting as:


Step4.) A New "Advanced Setting" window will appear. Under General tab Set "Enable 32-Bit Application" to TRUE. Press Ok and Done..


It will solve the your all 32-bit assembly problem on azure server.

Cheers!
Munish Bhargav

Extend/Change the Expiration time of the Azure Remote Desktop.

Then we start think shall i need to redeploy the whole role again (At least I think of it when first time encounter with this and even re deploy everything. My bad.) But there is one good option is also available on azure portal to reconfigure it as explained step by step below.

Step1.) Login to your azure portal and select the role whose period is expired and the press the configure button.



Step 2.) A new window “Set Remote Desktop Credentials” will open change the expiration time accordingly and press the OK button as.


Step 3.) You will see that role status is now changed to updating. In few minute role status will changed to ready and you are done.


Once Ready you will be able to login to your account.

Now you can configure your Remote desktop any time.
Cheers!
Munish Bhargav

Change password of Azure Remote Desktop connection.

Once you remote desktop is configured and working properly, you can change the password of your role according your needs. To change the password steps are as:

Step1.) Go to your azure portal select the Role whose password you want to change and the press the configure button as shown below.



Step 2.) A new window will open Set Remote Desktop Credentials Change the password and confirm password and press the OK button as.



Step 3.) You will see that role status is now changed to updating. In few minute role status will changed to ready and you are done.



In order to use the new password select the role and press the connect button, open or save the rdp file enter the new password and enjoy..
Cheers!
Munish Bhargav

Setup Remote Desktop on Windows Azure Roles.

Hi,
In windows azure you have the provision to see your azure virtual machine that is allocated to your role. In order to access the machine you need to do some configuration inside your role. By configuring Remote desktop you can easily debug and use you machine according to your need. I will not go step by step to configure your role because there are already some good article out there but i will definitely blog some advance configuration that you can do with configured role in future posts.
So MSDN article to configure Remote Desktop is as:
http://msdn.microsoft.com/en-us/library/windowsazure/gg443832.aspx

and one another good article that i can find is as:
http://www.intertech.com/Blog/post/Windows-Azure-Remote-Desktop.aspx


Cheers!
Munish Bhargav