Solved

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

Posted on 2008-10-28
9
466 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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

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…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

21 Experts available now in Live!

Get 1:1 Help Now