Solved

Windows 7 Xp mode

Posted on 2014-09-26
7
233 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
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 introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

828 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