Tuesday, December 6, 2011

Windows azure assembly not listed under .Net tab

while developing azure application, i stuck with a strange issue.

When i tried to add windows azure assemblies, i was not able to find them under .Net tab on add reference dialogue.

after spending some, I was able to fix this issue. here i have narrated whole problem. hope this can save your time.

Recently I was writing application to rad data from windows azure table storage. I have created windows application to display data from azure table storage.

I need to query data from azure table storage, using windows azure SDK.

These assemblies are:

1) Microsoft.WindowsAzure.Diagnostics
2) Microsoft.WindowsAzure.StorageClient

When I click on Add Reference in my windows application, I was not able to find any assembly in the list of .Net assemblies.

I have tried but not able to find exact reason on this issue. Then after I realized that this was working on my previous application. It was web application.

I have compared all the properties of both the project and find out exact problem.

Cause of problem:

  • In the project properties we have “Target framework” option, when I see for windows application it was set to “.Net Framework 4 Client Profile”. See figure-1.

clip_image002[4]

  • So I was not able see windows azure assemblies under .Net tab.
  • When I inspect my web application, it was set to “.Net Framework 4”. Here I was able to see all windows azure assemblies. See figure-2.

clip_image004[4]

So it was finalized that when there “.Net Framework 4 Client Profile” is selected as “Target framework”, we will not able to reference windows azure assemblies .

Behaviour of this issue:

Because of this setting you can face following issue.

1) You will not able to see windows azure assembly in .Net assembly list.

2) You will not able to reference windows azure assemblies in your application.

3) If you have any class library which includes reference of windows azure assemblies,

And you are trying to add this assembly into your project. Assembly will be added but

It will give you “are you missing an assembly reference?” error.

Resolution:

If you face this issue, you can go to project properties and change “Target framework” To ”.Net Framework 4”.

Microsoft has delivered a new target framework type, to optimize for client applications which run on client only; it doesn’t include windows azure assemblies.

You can see more about .Net Framework Client Profile at

http://msdn.microsoft.com/en-us/library/cc656912.aspx

18 comments:

  1. it helps me out.. thanks.

    ReplyDelete
  2. Good article

    You can submit your .net related article links on http://www.dotnettechy.com to get more traffic

    ReplyDelete
  3. Its not the case that reader must be completely agreed with author's views about article. So this is what happened with me anyways its a good effort I appreciate it. Thanks exington collection

    ReplyDelete
  4. Good example man...
    Check my blog here
    ctrlcvprogrammer.blogspot.in

    ReplyDelete
  5. This has been a lot help to me, while tackling with windows azzure assembly, it was getting hard for me to figure out the problems, but after going through your mentioned steps my problem was fixed, now its working completely fine.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. Hey great ,,,,,,
    Follow me,,,i will place your BLOG LINK on my blog,, i am ur blog follower,, superbbb
    Technical Gossips and scripts
    http://techterabyte.blogspot.in

    ReplyDelete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. This comment has been removed by a blog administrator.

    ReplyDelete
  11. This comment has been removed by a blog administrator.

    ReplyDelete
  12. This comment has been removed by a blog administrator.

    ReplyDelete
  13. It is very rare these days to find blogs that provide information someone is looking for. I am glad to see that your blog share valued information that can help to many readers. Thanks and keep writing!
    Business leads

    ReplyDelete
  14. This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It's the old what goes around comes around routine.
    private investigator

    ReplyDelete
  15. This is one of the good articles you can find in the net explaining everything in detail regarding the topic. I thank you for taking your time sharing your thoughts and ideas to a lot of readers out there.
    infidelity

    ReplyDelete
  16. It is very rare these days to find blogs that provide information someone is looking for. I am glad to see that your blog share valued information that can help to many readers. Thanks and keep writing!
    car decals

    ReplyDelete
  17. Its really an interesting blogging for the tech seekers. It provides very newly emerged ideas on Windows Azure. Writer also shows some figures to make the readers clear about his writing.
    Drupal

    ReplyDelete
  18. http://www.aspnetajaxtutorials.com/2011/12/windows-azure-assembly-not-listed-under.html?showComment=1337166173013#c7467968686548803453

    ReplyDelete

Comments posted on ASP.Net Ajax Tutorials Blog are moderated and will be approved only if they are on-topic and not abusive. Please email me or my team for tech-support or blogging related questions. Avoid including website URLs in your comments - Thanks Author