vs2010+devexpress插件开发是一个不错的开发模式,效率较高。在编译个一个项目的时候,报出了如下错误:ASPNETCOMPILER : error ASPRUNTIME: 未将对象引用设置到对象的实例。后经查找,是汉化资源dll冲突,去掉bin目录中的App_GlobalResources.resources.dll文件,问题解决。
参考文献地址:
ASPNETCOMPILER : error ASPRUNTIME: 
问题
-
We have a build script that uses the <MSBuild> task to call a solution file like so.
<MSBuild Projects="MySolution.sln" Properties="Configuration=Release;OutDir=c:\MyOuput"/>
For some reason we seem to get the error "ASPNETCOMPILER : error ASPRUNTIME: Object reference not set to an instance of an object" when calling our solution file. The error does not seem to be very descriptive so we're really not sure what to look at.
The MSBuild task splits out the following before spitting out the error:
"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /localhost -p ..\webservices\ -u -f c:\MyOutput\_PublishedWebsites\webservices\"
We're thinking the error has to do with something to do with the parameters supplied or not supplied to the asp.net compiler. The other two projects in the solution file are class libraries and compile just fine. They are setup as project references to the website.
Anyone have insight on where we should start looking?
Mac
答案
-
As often happens, the poster of issues finds out the solution soon after hitting "post."
For those of you who run into an obscure error like this, here is what caused our error.
This project gets some additional built APIs (e.g. OtherGroup.dll) from another development group at build time. In the past with .NET 1.x this has worked slick as we just take their output from our company API landing string and stick them in the .\bin folder. With .NET 2.0 we noticed the other development group has begun to ship App_Code.dll and App_global.asax.dll (and their *.compile files) with their APIs. This caused our build to fail so we removed the two assemblies (dll), but forgot about the two ".compile" files. After removing the two ".compile" files, we have success.
Does anyone know what the ".compile" files are used for and if they are needed for deployment?
全部回复
-
As often happens, the poster of issues finds out the solution soon after hitting "post."
For those of you who run into an obscure error like this, here is what caused our error.
This project gets some additional built APIs (e.g. OtherGroup.dll) from another development group at build time. In the past with .NET 1.x this has worked slick as we just take their output from our company API landing string and stick them in the .\bin folder. With .NET 2.0 we noticed the other development group has begun to ship App_Code.dll and App_global.asax.dll (and their *.compile files) with their APIs. This caused our build to fail so we removed the two assemblies (dll), but forgot about the two ".compile" files. After removing the two ".compile" files, we have success.
Does anyone know what the ".compile" files are used for and if they are needed for deployment?
-
I knw this is an old post but i just had a similar problem but this time it was caused by an app_offline.htm file sitting in the source folder!!
Very odd!
Pete
在使用VS2010和DevExpress插件开发时遇到编译错误:ASPNETCOMPILER : error ASPRUNTIME: 未将对象引用设置到对象的实例。问题根源是汉化资源DLL冲突,删除bin目录中的App_GlobalResources.resources.dll文件即可解决。
17万+

被折叠的 条评论
为什么被折叠?



