Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

#ExternalChecksum directive causes compile error #52

Open
BillSobel opened this issue Nov 23, 2018 · 12 comments
Open

#ExternalChecksum directive causes compile error #52

BillSobel opened this issue Nov 23, 2018 · 12 comments

Comments

@BillSobel
Copy link

It appears that's after Mono 5.0.1.1 that this directive is always being placed into VB ASPX files which causes a compilation error. VB ASPX has been broken due to this for quite some time. If not fully supported, could this directive at least be read and discarded so compilation can continue?

@MattL0
Copy link

MattL0 commented Nov 24, 2018

I was going to downgrade again to 5.0.1.1, because i needed aspx function again!

I guess I 'll wait :)

@BillSobel
Copy link
Author

A bit more info. The change in Mono post 5.0.1.1 is a change was made which reflects the IncludeDebugInfo flag to the compiler. When this is set the #ExternalChecksum() directive is emitted. This directive is not security related, it is used to the debugger can verify it has the right source file. As such, it is safe to ignore. I would suggest that VBNC treat that directive as a comment. This will allows VNBC to execute even with debugging information is requested to be emitted.

@peteeee
Copy link

peteeee commented Nov 28, 2018

Just watching thread ....thank you Bill.

@BillSobel
Copy link
Author

In the meantime, I have changed the vbnc launch script to the below which removes the #ExternalChecksum line if it exists and the file is in the /tmp folder (works for HomeSeer, can be customized for other cases)

#!/bin/bash
for x; do
if [[ $x = '/tmp'* ]]; then
sed -i '1{/#Externa/d}' $x
fi
done
exec /usr/bin/mono --debug $MONO_OPTIONS /usr/lib/mono/4.5/vbnc.exe "$@"

@cp1983
Copy link

cp1983 commented Nov 30, 2018

In the meantime, I have changed the vbnc launch script to the below which removes the #ExternalChecksum line if it exists and the file is in the /tmp folder (works for HomeSeer, can be customized for other cases)

#!/bin/bash
for x; do
if [[ $x = '/tmp'* ]]; then
sed -i '1{/#Externa/d}' $x
fi
done
exec /usr/bin/mono --debug $MONO_OPTIONS /usr/lib/mono/4.5/vbnc.exe "$@"
Hi

I am also interested in getting the ASPX pages to work again. Reverting back to 5.0.1.1 is not an option as I have had memory leak issues in that version.

Can you give me a little more direction on this temp file. Can only see a bunch of K1.vb, K2.vb... files in the /tmp folder on my system.

@BillSobel
Copy link
Author

BillSobel commented Nov 30, 2018 via email

@cp1983
Copy link

cp1983 commented Nov 30, 2018

Thanks alot, now the aspx pages work in Homeseer!!!

@dibble9012
Copy link

Where is the file located on a MacOS machine?

@ddb157
Copy link

ddb157 commented Apr 8, 2019

Can someone tell me how to access Homeseer ASPX files within the /tmp directory? How should I construct the URL to point to the correct location? Specifically I am trying to get
Jon00EventViewer.aspx working.

@BillSobel
Copy link
Author

BillSobel commented Apr 8, 2019 via email

@ddb157
Copy link

ddb157 commented Apr 9, 2019

Actually, I got it working on my Raspberry Pi thanks to your patch and Mono 5.18.1.0!

@FalcoGer
Copy link

Has this been resolved yet?
I dare not update mono in fear that my apache2 server with modmono stops running properly with .vb code ( see also: mono/mono#10066 ).

But at the same time I have another annoying issue that was only fixed later in my c# code.

So I can either choose one bug or another for nearly a year now.

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

No branches or pull requests

7 participants