Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkyAPM.Agent.AspNetCore Version 2.1.0 cannot monitor the data of the IIS program #578

Open
1 of 4 tasks
2741823826GX opened this issue Feb 2, 2024 · 1 comment
Open
1 of 4 tasks

Comments

@2741823826GX
Copy link

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Question

  • 我使用的SkyAPM.Agent.AspNetCore版本是最新版本的2.1.0,在本地监控运行的.NET CORE项目是正常的,但是我将.net项目配置成IIS程序后,我的skywalking 9.3 就接收不到数据,并且 SkyAPM.Agent.AspNetCore 的日志也并没有生成,我也尝试在issue中寻找答案,看到有大佬说需要在web.config中配置环境变量,下方是我的web.config配置文件,不幸的是,配置之后,接口都不能正常访问,抛出500的错误,请大佬帮忙解答一下
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
		<environmentVariables>
			<environmentVariable name="ASPNETCORE_HOSTINGSTARTUPASSEMBLIES" value="SkyAPM.Agent.AspNetCore" />
		</environmentVariables>
       </aspNetCore>
    </system.webServer>
  </location>
</configuration>
@2741823826GX
Copy link
Author

目前我是通过在IIS 配置编辑器当中配置环境变量可以解决了问题了
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant