-
Notifications
You must be signed in to change notification settings - Fork 73
asp.net 3.5 run get 500 server error, how get the app detail infos? #16
Comments
Can you try adding this Dockerfile to containerImageNet35 FROM microsoft/aspnet:3.5 build docker build -t mysite1 . and then launch docker run -d -p=80:80 mysite1 hit the default website |
@shhsu my i change ${site_root} to my application folder, FROM microsoft/aspnet:3.5 Next, this Dockerfile creates a directory for your applicationRUN mkdir C:\aspnet35 ARG site_root=. ADD net35/ /aspnet35 ps. net35 folder is my asp.net webforms application thank. |
@shhsu FROM microsoft/aspnet:3.5 ADD net35/ /inetpub/wwwroot after run , i will get 500 error There is a problem with the resource you are looking for, and it cannot be displayed. |
@shhsu if i don't copy web.config then it work well. |
@shhsu will cause 500 error. should we remove configSections session from web.config ? do you have any ideas ? Thanks for your help. |
is your ${site_root} relative path? |
@shhsu |
Not sure what the problem could be. To find the reason of 500 error, there are a few places you can look
|
@shhsu |
@rainmakerho |
@janvorli Error response from daemon: hcsshim::ActivateLayer failed in Win32: The process cannot access the file because it is being used by another process. |
This error looks a little vague. It's hard to tell what the issue is. Do you know which IIS feature is required by your website? You might need to install them in your container. We have something like this in our docker file for ASP.NET tests. Note that this is for .NET 45 but it might include some feature that you are missing. You can go over these features and see if any of these is what you need RUN start /w dism /online /enable-feature /featurename:IIS-WebServerRole /featurename:WAS-WindowsActivationService /featurename:WAS-ProcessModel /featurename:NetFx4Extended-ASPNET45 /featurename:WAS-NetFxEnvironment /featurename:WAS-ConfigurationAPI /featurename:IIS-ApplicationDevelopment /featurename:IIS-NetFxExtensibility /featurename:NetFx3 /featurename:IIS-ASPNET /featurename:IIS-ASPNET45 /featurename:IIS-NetFxExtensibility /featurename:IIS-NetFxExtensibility45 /featurename:IIS-DefaultDocument /featurename:IIS-NetFxExtensibility /featurename:IIS-ISAPIExtensions /featurename:IIS-ISAPIFilter /featurename:IIS-RequestFiltering /featurename:IIS-Metabase /featurename:IIS-WMICompatibility /featurename:IIS-LegacyScripts /featurename:IIS-IIS6ManagementCompatibility /featurename:IIS-WebServerManagementTools /featurename:IIS-HttpTracing |
@shhsu |
@shhsu
i pull microsoft/aspnet:3.5 image , then build aspnetap image like below,
FROM microsoft/aspnet:3.5
RUN mkdir C:\aspnet35
RUN powershell -NoProfile -Command
Import-module IISAdministration;
New-IISSite -Name "ASPNET" -PhysicalPath C:\aspnet35 -BindingInformation "*:8000:"
EXPOSE 8000
ADD containerImageNet35/ /aspnet35
after image build and run.
i navigate asp.net page in browser, will get
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
may i get the app detail error messages?
thanks.
The text was updated successfully, but these errors were encountered: