Solved

Server Error using VS 2005 on Windows Vista 64bit IIS 7.0

Posted on 2008-10-28
9
468 Views
Last Modified: 2012-05-05
I am gettingt the error down below and not exactly sure why, I am using VS 2005 and have set up IIS 7.0 on my vista machine and I am getting this error down below on sites that I have set up on my machine. These did work, so I am thinking some security patch changed a setting on my machine and was wondering if anyone had an idea on what could be causing it.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC31019: Unable to write to output file 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\App_Web_default.aspx.cdcab7d2.cle2onnc.dll': Access is denied.

Source Error:

 

[No relevant source lines]
 

Source File: vbc :    Line: 0



Show Detailed Compiler Output:


c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\App_Web_default.aspx.cdcab7d2.cle2onnc.dll" /debug- /win32resource:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\omqlm7b6.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls  "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\App_Web_default.aspx.cdcab7d2.cle2onnc.0.vb" "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\App_Web_default.aspx.cdcab7d2.cle2onnc.1.vb" "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\App_Web_default.aspx.cdcab7d2.cle2onnc.2.vb"


Microsoft (R) Visual Basic Compiler version 8.0.50727.1434
for Microsoft (R) .NET Framework version 2.0.50727.1434
Copyright (c) Microsoft Corporation.  All rights reserved.

vbc : error BC31019: Unable to write to output file 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe408e04\5e6012f5\App_Web_default.aspx.cdcab7d2.cle2onnc.dll': Access is denied.

 




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
0
Comment
Question by:JDEE8297
  • 5
  • 4
9 Comments
 
LVL 13

Expert Comment

by:brent_caskey
ID: 22828738
There are two things that you need to do to get VS2005 to work with Vista.

1. You need to make sure that the correct roles are installed. You can run the following script to install all the roles needed:

start /w pkgmgr /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;IIS-FTPPublishingService;IIS-FTPServer;IIS-FTPManagement;WAS-WindowsActivationservice;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

2. You need to make sure that you load IE as an administrator. You can use the following to create a new shortcut and then run this as an administrator:

"C:\Program Files\Internet Explorer\iexplore.exe" "http://localhost/VirtualServer/vswebapp.exe?view=1
0
 
LVL 13

Expert Comment

by:brent_caskey
ID: 22828740
0
 

Author Comment

by:JDEE8297
ID: 22829921
thanks for the tips, but you see it was working and when I tried it last night it wasn't. I didn't know if new security patches had changed permissions on me, but I had been developing without any issues on my machine without any issues for the past few months. So I was surprised and puzzled as to why I was getting this error.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 13

Accepted Solution

by:
brent_caskey earned 125 total points
ID: 22835671
JDEE8297,

Is basic authentication set on both the web site and the virtual folder?

You said that you thought a windows update might have done this, what updates have been applied to the system recently? Also, I have noticed on my Vista x64 system that windows updates will sometimes turn on UAC, and some other security "features" automatically even though I had them set to disabled. I ended up having to put a GPO on the domain controller just for my system so that it wouldnt keep apply the default security settings.

If all else fails, you could also try re-installing VS2005.

brent_caskey
0
 

Author Comment

by:JDEE8297
ID: 22836870
I never did turn off UAC, i was able to get this to work with UAC, so i don't think it was that. I will probably have to reinstall VS, not that I really want to go through that. However, unless I find a solution for this, then I am afraid that is what I will have to do . Thanks for oyur help.
0
 
LVL 13

Expert Comment

by:brent_caskey
ID: 22837240
Just curious, do you have the issue when you access the page from another computer?
0
 

Author Comment

by:JDEE8297
ID: 22837346
okay, no idea why this worked, but I changed the permissinos on my windows/temp folder and the bloody thingseems to be working. I shouldn't complain, but I hadn't changed anything on the machine for this to occur, so it is kind of frustrating. Still, one less thing to be concerned about. right. :)
0
 
LVL 13

Expert Comment

by:brent_caskey
ID: 22837424
Which permissions did you change on the folder? Was the SYSTEM account on the folder?
0
 

Author Comment

by:JDEE8297
ID: 22837674
I changed the permssions for the IUSR account, and that seem to work
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

Suggested Solutions

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

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