Solved

Windows 7 Xp mode

Posted on 2014-09-26
7
227 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
  • 4
  • 3
7 Comments
 
LVL 21

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 21

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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 21

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Image capture and Deploy method is consist on two phases. In our first phase we capture the image of windows from the PC in which Windows and others softwares are already installed. In second phase we deploy the created image on new PC in which we…
I hope this helps those who have been battling the SanDisk / U3 problem for a while. For anyone that is running Windows 7 64bit and is receiving and searching the internet for the “Windows Error: Windows has allocated a drive letter to the U3 dri…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now