开发者

Strange IIS/ASP.NET JIT Compilation Issue

I've got extremely strange behavior on one of my pages. I was able to get a work-around in place, but I'd like to get input on why this error is happening (and why my work-around actually works).

(Let me also say that this is in no way, shape, or form my code...so please don't bash me too hard)

When loading the page, we're getting

BC30456 'InitializeCulture' is not a member of...

I worked through the tips here and nothing worked:

BC30456 Fixes

I was able to get the page back up and working by changing

<%@ Page Language="VB" AutoEventWireup="false" 
    CodeFile="newsproduct_rss.aspx.vb" Inherits="product_nrss" %>

to

<%@ Page Language="VB" AutoEventWireup="false" 
    CodeFile="newsproduct_rss.aspx.vb" Inherits="product_nrss" Debug="true" %>

I'm hoping there's something obvious I'm missing so please, enlighten me!

Also, if anybody needs more details...just let me know and I'll supply everything I can (if you can't tell, this one is really eating at开发者_如何学Python me).


Also, you could add a Title="Something" to the page. I know the asp.net compiler is flakey at best. I've had published sites where two pages will not work, just for it to be a missing title or something.


The debug statement really should be in the web.config of the application. My first suggestion was going to be to make sure that the ASP.Net version you're using is installed correctly. I did find this article (which I'm sure you read already) that details some of the work-arounds to this problem.

http://social.msdn.microsoft.com/Forums/en/clr/thread/54a40a36-209a-46ee-b834-df946532719f


Well, it turns out that my PowerShell-Fu missed a stupid error on the server.

There were two files declaring the same methods of the same partial class. Oddly enough there were two pages, each references a different copy of the partial class.

Got rid of one of the copies and voila! no more Debug="true" needed.

Still leaves me a little curious as to why adding Debug="true" allowed the page to execute at all...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜