Solved

Windows 7 Xp mode

Posted on 2014-09-26
7
232 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

832 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