Compilation error while hosting the webservice in IIS.

Posted by Prabu_Spark under IIS on 12/26/2012 | Points: 10 | Views : 2566 | Status : [Member] | Replies : 2
Hi sir,
I am getting the compilation error while hosting the web service in IIS.
It is given below. Kindly give me the solution for this problem.


Server Error in '/PDMS_set' 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: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\App_Code.7zyn-ukj.dll' -- 'Access is denied. '

Source Error:



[No relevant source lines]


Source File: Line: 0



Show Detailed Compiler Output:


C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\assembly\dl3\93061975\00702c68_6251cd01\AjaxControlToolkit.DLL" /out:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\App_Code.7zyn-ukj.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\App_Code.7zyn-ukj.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\App_Code.7zyn-ukj.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\App_Code.7zyn-ukj.2.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

error CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pdms_set\c8d47614\fec72398\App_Code.7zyn-ukj.dll' -- 'Access is denied. '






--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: Pavanandey on: 12/26/2012 [Member] Bronze | Points: 25

Up
0
Down
Check you virtual directory has persmissions

Thanks
Pavan Kumar
Mark Answer if this fits the need

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Guna27 on: 12/27/2012 [Member] Starter | Points: 25

Up
0
Down
You have to enable the Directory Browsing in your IIS which is there inside Features View

Guna..............

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response