Solved

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

Posted on 2008-10-28
9
463 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
Comment Utility
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
Comment Utility
0
 

Author Comment

by:JDEE8297
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:JDEE8297
Comment Utility
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
Comment Utility
Just curious, do you have the issue when you access the page from another computer?
0
 

Author Comment

by:JDEE8297
Comment Utility
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
Comment Utility
Which permissions did you change on the folder? Was the SYSTEM account on the folder?
0
 

Author Comment

by:JDEE8297
Comment Utility
I changed the permssions for the IUSR account, and that seem to work
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

14 Experts available now in Live!

Get 1:1 Help Now