Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. need help!!! thanks...

need help!!! thanks...

Scheduled Pinned Locked Moved C#
helpworkspacecsharpdebuggingquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alexyxj
    wrote on last edited by
    #1

    Hi friends, I need to fix a part of .cs code and recompile and publish a project into production, but when i build it, it shows below error: can anyone give me some suggestion? what might be the cause? do I need to check my development environment? :confused: many thanks... ------ Build started: Project: Z:\scor_ip\, Configuration: Debug .NET ------ Pre-compiling Web Site Z:\scor_ip\Global.asax(1): Publication (web): Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Pre-compilation Complete ------ Skipped Publish: Project Z:\scor_ip\, Configuration: Debug .NET ------ ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== ========== Publish: 0 succeeded, 0 failed, 1 skipped ==========

    T 1 Reply Last reply
    0
    • A alexyxj

      Hi friends, I need to fix a part of .cs code and recompile and publish a project into production, but when i build it, it shows below error: can anyone give me some suggestion? what might be the cause? do I need to check my development environment? :confused: many thanks... ------ Build started: Project: Z:\scor_ip\, Configuration: Debug .NET ------ Pre-compiling Web Site Z:\scor_ip\Global.asax(1): Publication (web): Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Pre-compilation Complete ------ Skipped Publish: Project Z:\scor_ip\, Configuration: Debug .NET ------ ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== ========== Publish: 0 succeeded, 0 failed, 1 skipped ==========

      T Offline
      T Offline
      Tony Richards
      wrote on last edited by
      #2

      Suggestion 0: Next time give your question a more useful subject. Suggestion 1: Questions like this are more likely to get better answers on the ASP .Net forum. In answer to your question:

      alexyxj wrote:

      Request for the permission of type 'System.Web.AspNetHostingPermission

      This means exactly what it says: You don't have permission to host an ASP .Net website. This often means you are trying to run the website from an untrusted location. The drive letter Z suggests you might be trying to run it off of a mapped network drive. These are usualy untrusted locations. Try copying the whole project to somewhere on your local hard drive and trying again.

      My Blog: This Blog

      A 1 Reply Last reply
      0
      • T Tony Richards

        Suggestion 0: Next time give your question a more useful subject. Suggestion 1: Questions like this are more likely to get better answers on the ASP .Net forum. In answer to your question:

        alexyxj wrote:

        Request for the permission of type 'System.Web.AspNetHostingPermission

        This means exactly what it says: You don't have permission to host an ASP .Net website. This often means you are trying to run the website from an untrusted location. The drive letter Z suggests you might be trying to run it off of a mapped network drive. These are usualy untrusted locations. Try copying the whole project to somewhere on your local hard drive and trying again.

        My Blog: This Blog

        A Offline
        A Offline
        alexyxj
        wrote on last edited by
        #3

        Thanks Brother....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups