John John
John John

Reputation: 1

The .SVC file inside Azure "Kudu" is empty

I have the following asp.net web application which contain a .SVC, as follow:-

enter image description here

the .SVC file inside visual studio contain this code:-

<%@ ServiceHost Language="C#" Debug="true" Service="ProjectUpdateSystem.RER" CodeBehind="RER.svc.cs" %>

I deploy the above VS project to Azure web app using this command:-

az webapp deployment source config-zip --resource-group "PUS" --name "TGroupPUSRER" --src "C:\pus\bin.zip"

but when i try to edit the RER.SVS file inside Kudu as follow:- enter image description here

it showed any empty file as follow:- enter image description here

so can anyone advice? is this normal?

Upvotes: 1

Views: 357

Answers (2)

AnshuBhola
AnshuBhola

Reputation: 206

I faced the same Issue , It seems its a bug in the Kudu. The problem is with the *.svc extension file.

Try creating a new file with ".svc" extension and it will immediately give you an 404 error. enter image description here

You can use "App Service Editor" instead of kudu.

Found the existing defect in github https://github.com/projectkudu/kudu/issues/2872

Upvotes: 1

Reza Aghaei
Reza Aghaei

Reputation: 125187

The content is there inside the file. But for some reason (may be a bug?) it cannot show the content.

Assuming you have a sample.svc file having some content, to see the content, you can use either of the following PowerShell or cmd commands:

  • Get-Content sample.svc
  • type sample.svc

Upvotes: 1

Related Questions