I am trying to run a web service build in .Net on IIS 6 server.
But it is giving an Error while starting Web Service
ERROR
Server Error in ' /9448' Application
Configuration Error
Description : "An error occurred during the processing of configuration file required to service this request.Please review the
specific details below and modify your configuration file
appropriately.
Parse Error Message :An error occurred loading the configuration file: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config"
is denied.
Source Error:
[No relevant source lines]
Source File : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config
Line: 0
Version Information : Microsoft.NET Framework Version v2.0.50727.3625; ASP.Net Version : v2.0.50727.3625
The user under which it is running have full Administrator Rights
While it was working fine previously
What could be the problem?
Related
I am trying to run SonarQube for my Xamarin Forms project, I am on the path where my .SLN file is there and executing the following command
Command:
$ mono /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/MSBuild.SonarQube.Runner.exe begin /k:"HIDReaderManagerApp" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="My Login Token"
Error:
SonarQube Scanner for MSBuild 4.0.2
Default properties file was found at /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml
Loading analysis properties from /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml
Pre-processing started.
Preparing working directories...
17:29:10.391 Updating build integration targets...
17:29:10.414 Fetching analysis configuration settings...
17:29:10.517 Failed to request and parse 'http://localhost:9000/api/settings/values?component=HIDReaderManagerApp': The remote server returned an error: (401) .
17:29:10.517 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.
17:29:10.518 Pre-processing failed. Exit code: 1
The api/settings/values API requires Browse permission when the component argument is used. Please, see if the user you are authenticating with has the aforementioned permission.
More details about security and permissions here:
https://docs.sonarqube.org/latest/instance-administration/security
I am a complete beginner on the .NET world trying to get my first dummy .NET Core webapp to run on Azure App Service.
The code can be found here:
https://github.com/jordi-chacon/bcn_pollution
My development machine runs Ubuntu, so I am using Visual Studio Code.
I currently have my .NET Core webapp running on localhost:5000 just fine and now I want it to run on Azure App Service.
I have successfully configured Continuous Deployment on my App Service to fetch the code from Github.
Then Azure tried to deploy my webapp but it failed with the following error:
Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "D:\home\site\repository" -o "D:\home\site\deployments\tools" --aspNet5 "D:\home\site\repository\project.json" --aspNet5Version "1.0.0-rc1-final" --aspNet5Runtime "CLR" --aspNet5Architecture "x86"'.
Project file path: .\project.json
Generating deployment script for ASP.NET 5 Application
Generated deployment script files
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET 5 Web Application deployment.
Downloading dnx-clr-win-x86.1.0.0-rc1-final from https://www.nuget.org/api/v2
Unable to download package: An exception occurred during a WebClient request.
At C:\Program Files
(x86)\SiteExtensions\Kudu\50.41223.1987\bin\scripts\dnvm.ps1:694 char:13
+ throw "Unable to download package: {0}" -f
$Global:downloadData.Erro ...
+
Failed exitCode=1, command=PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';$CmdPathFile='"D:\local\UserProfile\.dnx\temp-set-envvars.cmd"';& 'C:\Program Files (x86)\SiteExtensions\Kudu\50.41223.1987\bin\scripts\dnvm.ps1' " install 1.0.0-rc1-final -arch x86 -r CLR
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to downl...Client requ
An error has occurred during web site deployment.
est.:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to download package: An exception occurred during a WebClient request.
Anyone knows what I am doing wrong?
Thanks!
I guess you are hitting not enough disk space issue.
https://github.com/projectkudu/kudu/issues/1682
I tried your code, and repro the deployment failure.
when navigate to https://{site name}.scm.azurewebsites.net, i see below message
Parser Error Message: There is not enough space on the disk.
by default free site has 1 GB of disk space, but seems like it is an known issue that asp.net 5 application kind of require a lots of dependency and easily go over the limit. And they (Asp.net 5 folks) are working on addressing the issue.
walk-around is to deploy to a Basic or Standard site
I am having the same exact problem described here:
Web service Compilation Error
But the answer is not detailed enough for me to try a fix. I cannot find a bin folder.
I connected to a web service using Add Service Reference in visual studio. I copied the entire folder to the IIS wwwroot folder including the App_WebReferences folder which was automatically added when adding the service reference.
Running the site right from visual studio works great.
Any help would be great. I'm using IIS 7.5.
UPDATE to show error:
FlightWS is the reference name I gave to the service when I connected it using the 'Add Service Reference' and pasted in the url of the wsdl file.
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: CS0246: The type or namespace name 'FlightWS' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 13: protected void Page_Load(object sender, EventArgs e)
Line 14: {
Line 15: FlightWS.AccountType user = (FlightWS.AccountType)Session["user"];
Line 16: if (user != null && !user.Equals(null))
Line 17: {
Source File: c:\inetpub\wwwroot\ServiceClient\Index.aspx.cs Line: 15
Show Detailed Compiler Output:
Show Complete Compilation Source:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
When I try to run my web application, the following error occurs:
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: CS0009: Metadata file
'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' could not
be opened -- 'File is corrupt.'
It seems to me that the .NET framework 4 installation is corrupt, but I am using Windows 8.1, and I'm not sure how to repair this, as it is integrated into the Windows installation.
I manually copied the corrupted file from a different computer with the same Windows installation. It took some permission changing, but I managed to do it.
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Root element is missing.
Source Error:
[No relevant source lines]
Source File: D:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config Line: 0
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
How to fix "Root element is missing." when doing a Visual Studio (VS) Build?
Make sure that your web.config isn't empty. It needs a <configuration> element at the root.