1

Getting a very strange error in the Event Log while trying the access a precompiled asp.net page. The error is Event Code 3007, "A compilation error has occurred. Further information reveals that it's tripping on the ClientIDMode property of the page, which is set to Static.

I have several other pages that use this same ClientIDMode=Static property with no problems. Also this compiles and runs just fine in a development environment. It's only when I move it to another server that the problem crops up.

What could it be?

christok
  • 1,087
  • 2
  • 12
  • 29
  • Can you check that, on the server causing the problem, the App Pool is running under .NET 4 and not 2 ? ClientIDMode is not supported before v4 – sh1rts Jun 24 '14 at 01:08
  • I did check that, but thanks for the suggestion! – christok Jun 24 '14 at 18:16

1 Answers1

0

I'm not sure exactly why this error was occurring, but I was able to work around it by unchecking the "Allow this precompiled site to be updatable" option when publishing.

christok
  • 1,087
  • 2
  • 12
  • 29
  • This is worth a look, it describes the differences between setting or not setting that option - http://stackoverflow.com/questions/11975787/what-is-the-difference-between-allowing-a-precompiled-visual-studio-web-page-to – sh1rts Jun 25 '14 at 03:36