-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fusion++ did not work(log folder lack of permission) #14
Comments
It's really weird, I tried the Fuslogvw.exe to do the log feature. It still did not work. |
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\FUSLOGVW.exe works fine. |
C:\Users\clu\Downloads\Fusion++.1.2>corflags "Fusion++.exe" corflags : error CF008 : The specified file does not have a valid managed header C:\Users\clu\Downloads\Fusion++.1.1>corflags "Fusion++.exe" Version : v4.0.30319 |
https://stackoverflow.com/questions/18608785/how-to-interpret-the-corflags-flags Microsoft .NET 4.5 introduced a new option, Any CPU 32-bit Preferred. In the new version of CorFlags.exe, the 32BIT flag no longer exists, instead, two new flags were added, 32BITREQ and 32BITPREF. Somewhere based on the below explanation, we can interpret new CorFlags as follows. CPU Architecture PE 32BITREQ 32BITPREF x86 (32-bit) PE32 1 0 |
The fusion++1.1 was Any CPU 32-Bit version, I tried to run it as admin. And can not get any log. |
That's a strange behavior, indeed. As I read this, I don't think this is related to the bitness of the application. What Fusion++ does to activate the log - and that's similar to the old FUSLOGVW - is setting up some registry keys. See https://stackoverflow.com/questions/255669/how-to-enable-assembly-bind-failure-logging-fusion-in-net, for example. On your side, I'd check the registry and what differs from a not-working FUSLOGVW and the working one. I'd be very interested in these differences, btw. After that, it would be very interesting to see what Fusion++ does on your system. |
I have figured out why I mistakenly think the 64 bit vesion Fuslogvw did not work. Now I test the Fuslogvw with 32 bit and 64 bit version, both of them works. (I need to do the iisreset to make sure the site will reload again). |
The register keys only changed after I click the record button of fusion++, I have tried to add the missing registry key back after click record button. Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures -Value 1 -Type DWord
Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name EnableLog -Value 1 -Type DWord However, even if I did the |
Test with another site, and still did not work. The only difference seems like the log folder. |
This has nothing to do with the folders. These are being created by Fusion++ for each recording session. If nothing is logged during a session, they stay empty. |
I am running a web forms site, and it's based .net framework. |
Did you know how to build a website through IIS? |
I won't dig into this atm, thanks. This seems not related to Fusion++ but also to the FUSLOGVW (at least x86). |
FUSLOGVW x86 also works fine. |
I'm having the exact same issue: Both x86 and x64 FUSLOGVW tools are working fine (same version as @chucklu: v10.0A), though only after I recycle the relevant app-pool in IIS each time. On the other hand, I've so far been unable to get Fusion++ to record anything for my IIS web-app at all (targets ASP.NET 4.8, AnyCPU). Unlike FUSLOGVW, recycling the application pool in IIS has no effect. Confirmed that in my case, the registry keys set by FUSLOGVW and Fusion++ are identical except for the LogPath one. Fortunately at least for my own issue I was trying to solve, I was able to record the logs with FUSLOGVW and then import those logs into Fusion++. |
Well done. So this is not related to the @chucklu's machine you say? Okay, I might give it a try. Would any of you @chucklu or @lethek upload a zipped solution to reproduce the issue? |
@awaescher I am not able to build Fusion++ by source code. Could you please build a test version, and hard code the log path as "C:\FusionLogs"? Then I can test Fusion++ to check if the problem was caused by the log path. |
I'll try to create a minimal solution that reproduces the issue on my PC at least. Note: so far I haven't tried Fusion++ with any other web-apps or other .NET apps - so not yet sure if there may be something weird about this particular one (which has been continuously maintained and upgraded for about 10 years now), or the way I'm hosting it on my dev machine. |
You can start Fusion++ and start logging. Then, in the registry change the log path as you want it to be. That'll work. As soon as you close fusion++, it will reset the values as they were before starting Fusion++. Building requires you to have a DevExpress subscription. |
@awaescher I tried to change the log path to "C:\FusionLogs" after the Fusion++ start record. The log was recorded successfully. |
You might grant the new created folder with |
@awaescher I just granted the |
Nice work! That appears to be the cause of the problem for me too. However, now after manually adding permission to the parent dir, I've got an Exception when it attempted to parse the logs - I'll investigate that a bit further and post a new Issue if need be. |
Oh wow, good spot. So this has nothing to do with x86/x64?
|
@awaescher Maybe you did not read this comment yesterday. |
Just wanted to have this confirmed. |
The issue has nothing to do with the 32 bit or 64 bit. It's just a security problem, the log folder you created could not be accessed by Fuslogvw. |
Version 1.3 was just released. |
@awaescher It works with the new version 1.3 . |
I have tried with fusion++ 1.1 and 1.2, both of them did not work. I click record and open an IIS site, and the site reproduce an exception "Could not load file or assembly". Then I click stop, but the software told me "Relax no data yet".
How can I troubleshooting this, I did not find any log under Fusion++.
The text was updated successfully, but these errors were encountered: