Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Windows 7 Xp mode

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
LoGa1234567890
Asked:
LoGa1234567890
  • 4
  • 3
1 Solution
 
mcsweenSr. Network AdministratorCommented:
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
 
LoGa1234567890Author Commented:
Yes,  XPMUser is already an administrator in the XP VM.
Any suggestion to solve the Security Exception  problem ?
0
 
mcsweenSr. Network AdministratorCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LoGa1234567890Author Commented:
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
 
mcsweenSr. Network AdministratorCommented:
0
 
LoGa1234567890Author Commented:
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
 
LoGa1234567890Author Commented:
Thank you for trying to help me.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now