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. Web Development
  3. ASP.NET
  4. Cannot create instance of 'Window' defined in assembly 'Presentation Framework' ,Version=3.0.0.0

Cannot create instance of 'Window' defined in assembly 'Presentation Framework' ,Version=3.0.0.0

Scheduled Pinned Locked Moved ASP.NET
htmlcsswpfsecurityhelp
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.
  • P Offline
    P Offline
    pjc 0
    wrote on last edited by
    #1

    I am getting below type of error when I try to run WinFX web browser application by putting 'window' component in .aspx page.How to solve this? System.Windows.Markup.XamlParseException: Error at element 'Grid' in markup file 'Page1.xaml' : Cannot create instance of 'Window' defined in assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' due to security exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    R 1 Reply Last reply
    0
    • P pjc 0

      I am getting below type of error when I try to run WinFX web browser application by putting 'window' component in .aspx page.How to solve this? System.Windows.Markup.XamlParseException: Error at element 'Grid' in markup file 'Page1.xaml' : Cannot create instance of 'Window' defined in assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' due to security exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

      R Offline
      R Offline
      RichardGrimmer
      wrote on last edited by
      #2

      It's caused because an XBAP has no Window - it has a Page - subtle difference I know, but there you go - swap Window for Page in the main declaration (right at the top) and bottom closing tag. May be a few attributes of a window that are incompatible with a page, but trial and error will soon sort THAT one out :) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

      P 1 Reply Last reply
      0
      • R RichardGrimmer

        It's caused because an XBAP has no Window - it has a Page - subtle difference I know, but there you go - swap Window for Page in the main declaration (right at the top) and bottom closing tag. May be a few attributes of a window that are incompatible with a page, but trial and error will soon sort THAT one out :) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

        P Offline
        P Offline
        pjc 0
        wrote on last edited by
        #3

        Thanks for giving me an answer,but I want to make such a control that can minimize,maximize,drag and drop.So If I use Page in place of Window ,I can't able to minimize,maximize or drag-drop it.So can you have any Idea for that?

        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