Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows 7 Xp mode

Posted on 2014-09-26
7
Medium Priority
?
236 Views
Last Modified: 2014-10-01
Hi Experts,

My VS2008 run too slow in Windows 7, so I installed XP-mode to the machine to re-live its smoothness.

But now I have a problem, when running web application built from VS2008, I got security exception, below is its top message:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.


I tried to add 'XPMUser' – which is user name created by Xp mode, to be one of the Administrator, but windows 7 would not accept it because it can’t locate it.

How can I fix the problem above ?

Thank you in advance
0
Comment
Question by:LoGa1234567890
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 22

Expert Comment

by:mcsween
ID: 40345859
XPMUser is only within the XP virtual machine; it doesn't exist in the Windows 7 host.

You would want to open lusrmgr.msc from within XP and add them there though I think (but am not sure) that XPMUser is already an administrator in the XP VM.
0
 

Author Comment

by:LoGa1234567890
ID: 40345890
Yes,  XPMUser is already an administrator in the XP VM.
Any suggestion to solve the Security Exception  problem ?
0
 
LVL 22

Expert Comment

by:mcsween
ID: 40345905
Your trust level has to be configured in your web.config in IIS.  Please read the article below.
http://msdn.microsoft.com/en-us/library/wyts434y.aspx
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:LoGa1234567890
ID: 40345983
Hi mcsween,
I just install iis in xp mode virtual pc, but how to configure the trust level in iis ?
I tried to put :
<system.web>
<securityPolicy>
    <trustLevel name="Full"    policyFile="internal"/>  
    </securityPolicy>

 </system.web>
inside the web config file, but doesn't work ?
0
 
LVL 22

Expert Comment

by:mcsween
ID: 40346221
0
 

Accepted Solution

by:
LoGa1234567890 earned 0 total points
ID: 40347225
Hi mcsween,
I couldn't find the Microsoft .NET Framework Configuration from Administrative Tools, i checked my older computer with vs2003 installed, the Microsoft .NET Framework Configuration do exist but not in my windows 7 or in xp mode.
Anyway, it seems my problem has been solved. When i said running slow in windows 7, i mean the eval code in debug mode took too long to flash out. See this link: http://stackoverflow.com/questions/6499493/visual-studio-2008-script-documents-full-of-eval-code ( i tried this method last time, didn't work, but it work now - can't explain why )
0
 

Author Closing Comment

by:LoGa1234567890
ID: 40354149
Thank you for trying to help me.
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question