Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1108225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:03:00+00:00 2026-05-17T02:03:00+00:00

Has anyone tried deploying unsafe code in Azure? I’m working with code containing unsafe

  • 0

Has anyone tried deploying unsafe code in Azure? I’m working with code containing unsafe blocks dealing with pointers and all that fun stuff. And I’m wondering if that has something to do with errors I’m getting trying to deploy/upgrade the web project in Azure.

Also, is there actually a way to view specific errors that are breaking the upgrade?

Fyi, yes I do have ‘allow unsafe code’ checked in my web project settings.

Thanks in advance.

UPDATE:

This is the error I get trying to upgrade…

Role instances recycled for a certain
amount of times during an update or
upgrade operation. This indicates that
the new version of your service or the
configuration settings you provided
when configuring the service prevent
role instances from running. The most
likely reason for this is that your
code throws an unhandled exception.
Please consider fixing your service or
changing your configuration settings
so that role instances do not throw
unhandled exceptions. Then start
another update or upgrade operation.
Until you start another update or
upgrade operation, Windows Azure will
continue trying to update your service
to the new version or configuration
you provided

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:03:00+00:00Added an answer on May 17, 2026 at 2:03 am

    A lot of folks run ‘unsafe’ code in various forms (mostly native C/C++). If the role is recycling, you have an unhandled exception that may or may not be related to the unsafe code. I would suggest several things:

    1) Try running the code local in the DevFabric

    2) Check your On_Start block. Surprisingly often this is where the problem is (e.g. bad path, bad config, etc.)

    3) Enable the diagnostics logging and see if you can get any trace info.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone successfully tried minifying AND concatenating all the jqGrid locale files so that
Has anyone tried using the NHibernate Velocity L2 cache provider against the Azure AppFabric
Has anyone tried out working with the Delete and update command of SPDataSource used
Has anyone tried compiling SciPy 0.7.1 on Windows using numpy-1.3.0 that was built with
Has anyone tried migrating from ScrewTurn to Confluence ? I'm hoping that I can
Has anyone tried to style JButton to look like NetBeans toolbar buttons? That would
Has anyone tried NHibernate on Azure? Is there conflicts with the medium trust or
Has anyone tried it? Can this be used for sites that require high security
Yet, has anyone tried whether ReSharper is working properly after installing SP1? Wonder if
Has anyone tried installing SQL Server 2008 Developer on a machine that already has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.