What effect does the new precompile during publishing option have on MVC4 applications?

后端 未结 2 1917
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 23:01

So I recently updated Visual Studio 2012 to Update 2. Lo and behold, the next time I go to publish my application (via File Publish in this case) I notice that there are thr

2条回答
  •  心在旅途
    2020-12-04 23:32

    It is an old question, but I just encounter similar issue and feel something worth sharing.

    My error message is same in this post. My project is MVC5, build with Visual Studio 2013 professional. Compilation Error: The type 'ASP.global_asax' exists in both DLLs

    In my case, with precompile option, there is a file, App_global.asax.dll, in bin folder, and cause above error message. First, I remove App_global.asax.dll on server, restart application pool, issue is gone. Then I tried another approach, uncheck precompile and republish, redeploy to server, issue is gone.

提交回复
热议问题