Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > Compilation error after hotfix 7.0.33 View modes: 
User avatar
Member
Member
BeerWill - 5/6/2013 11:16:35 PM
   
Compilation error after hotfix 7.0.33
After installing hotfix 7.0.33 I am getting a Compilation Error when trying to go to any page:

CS0117: 'CMS.WebAnalytics.GeoIPHelper' does not contain a definition for 'GetCurrentGeoLocation'

\App_Code\CMSModules\WebAnalytics\WebAnalyticsMethods.cs Line: 101

Strangely, comparing to the previous version we had, the new code actually seems right, as the old code had "GetCurrectGeoLocation", but is not compiling.

Previous version (I think hotfix 21):
return GeoIPHelper.GetCurrectGeoLocation().Distance(lat, lon);

7.0.33:
return GeoIPHelper.GetCurrentGeoLocation().Distance(lat, lon);


Any way to fix this before I roll back to 7.0.21?

Thanks,

Will.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/7/2013 4:05:52 AM
   
RE:Compilation error after hotfix 7.0.33
Hello.

Did you apply the hotfix manually, or using the KIM utility? It seems that maybe not all assemblies have been replaced by new ones. Could you please try apply the hotfix via KIM, or manually copy all dll files from hotfix package over /Bin folder in your web site project? Optionally, please try to clear ASP.NET cache after you apply a hotfix. Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
BeerWill - 5/7/2013 7:09:13 PM
   
RE:Compilation error after hotfix 7.0.33
It was applied via the KIM, and after seeing the error I had restarted both the website and the App Pool.
Now installed 7.0.34 (via the KIM again), restarted App Pool and Website and same issue is occurring. Based on the dates on the files in the website /bin/ folder nothing had been copied in there by the KIM. The Log file for the Hotfix update gave no errors, although the list of files did not include any .dll, only .cs - Does the Log normally show which dlls are copied?

Went and downloaded the 7.0.34 hotfix manually, ran it to get extracted files, and copied everything in \Hotfix70_34\DLLs\net40 to the \bin folder on the website, restarted the Pool and App, and it is all now working.

That was just a dev site, but we have another Kentico site that is running hotfix .23 that needs to be updated as well.
Is there anything we can do to try and ensure this problem doesn't occur? (Stop the website, run an earlier hotfix first etc?)
I'm also concerned about how we can tell if there are any files other than the /bin/ dlls that also weren't copied correctly since no errors were given.

Thanks,

Will.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/7/2013 9:19:50 PM
   
RE:Compilation error after hotfix 7.0.33
I had the same problem. I was updating from HF18 to 32 last week and had the website running and open in Visual Studio. The KIM didnt copy any dlls and didnt give any errors. I had to manually copy them all over. Once I did, all was fine. http://devnet.kentico.com/Forums/f73/t36971/CMS-WebAnalytics-GeoIPHelper.aspx

User avatar
Member
Member
BeerWill - 5/7/2013 9:43:46 PM
   
RE:Compilation error after hotfix 7.0.33
Interesting FroggEye. There is clearly a problem with at least HF 32, 33 and 34 then.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/8/2013 1:58:30 AM
   
RE:Compilation error after hotfix 7.0.33
Hi,

Would it be possible to describe us the exact steps? What was done to the CMS before? I am unable to reproduce the issue and so far, you are only two who had this issue - there must be some setup or circumstances causing this.

Thank you.

Best regards,
Juraj Ondrus

User avatar
Member
Member
BeerWill - 5/8/2013 5:54:17 PM
   
RE:Compilation error after hotfix 7.0.33
There was nothing unusual about the updates themselves. Logged in to the Windows Server as Administrator, ran KIM, clicked check for updates, chose the site, and clicked update. First time (HF 33) I backed up the site and database, the second time (HF 34) I didn't. Neither time did the dll's copy, and neither time did the log indicate any error.

The CMS is not a brand new install, it has about 1200 documents, various custom webparts, widgets etc. One thing that has changed since the last hotfix we applied is that the Global Administrator no longer has the login 'Admin', but I don't know why that would make a difference.

Can you please clarify - does the hotfix log list all the files that are copied during the update including the dlls? If that is the case then at least I will know in the future to double-check the update if I don't see any dlls in the log.

Thanks,

\ / \ / i L L

User avatar
Member
Member
BeerWill - 5/8/2013 6:20:46 PM
   
RE:Compilation error after hotfix 7.0.33
Just did another update on the same server to a dev site from 7.0.23 to 7.0.34 and it appears to have copied the dlls fine. I can't check the actual site right now because we need yet another update to the dev license, but the files seem to be there. So it appears to be a site specific rather than server specific problem.

\ / \ / i L L

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/13/2013 2:19:24 AM
   
RE:Compilation error after hotfix 7.0.33
Hi,

We were able to find the cause - it is in the web.config file. It seems it was modified and some elements that are used to detect the .Net version were moved to another level or surrounded with another elements and the HF tool does not see them - so the version is not detected and no DLLs copied. This will be changed and in such a case, there will be a message displayed explaining what to do.

Best regards,
Juraj Ondrus