aspnet_merge.exe错误;此处不允许相对虚拟路径"VE/web_form.aspx" [英] aspnet_merge.exe EROR; The relative virtual path 'VE/web_form.aspx' is not allowed here

查看:67
本文介绍了aspnet_merge.exe错误;此处不允许相对虚拟路径"VE/web_form.aspx"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在发布在asp.net 4.0中构建的asp.net Web窗体应用程序

I am publishing the asp.net web forms application build in asp.net 4.0

应用程序成功构建,但构建后在输出"窗口中出现以下错误

The application builds successfully but after build it gives the following error in the Output window

生成AssemblyInfo.

Generating AssemblyInfo.

设置[assembly:AssemblyFileVersion("1.0.0.0")]

Setting [assembly: AssemblyFileVersion("1.0.0.0")]

设置[assembly:AssemblyVersion("1.0.0.0")]

Setting [assembly: AssemblyVersion("1.0.0.0")]

成功生成了AssemblyInfo文件.

Successfully generated AssemblyInfo file.

运行aspnet_merge.exe.

Running aspnet_merge.exe.

C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v10.0A \ bin \ NETFX 4.7.2 Tools \ aspnet_merge.exe C:\ Users \ me \ AppData \ Local \ Temp \ WebSitePublish \ project_folder-90277028\ obj \ Debug \ AspnetCompileMerge \ TempBuildDir -w project_name -copyattrs C:\ Users \ me \ AppData \ Local \ Temp \ WebSitePublish \ project_folder-90277028 \ obj \ Debug \ AssemblyInfo \ AssemblyInfo.dll -a aspnet_merge(0,0):发生错误:合并程序集时发生错误:此处不允许相对虚拟路径'VE/web_form.aspx'.

C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\aspnet_merge.exe C:\Users\me\AppData\Local\Temp\WebSitePublish\project_folder-90277028\obj\Debug\AspnetCompileMerge\TempBuildDir -w project_name -copyattrs C:\Users\me\AppData\Local\Temp\WebSitePublish\project_folder-90277028\obj\Debug\AssemblyInfo\AssemblyInfo.dll -a aspnet_merge(0,0): Error occurred: An error occurred when merging assemblies: The relative virtual path 'VE/web_form.aspx' is not allowed here.

===========构建:1成功或最新,0失败,0跳过==========

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

===========发布:0成功,1失败,0跳过==========

========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

推荐答案

从项目的主文件夹中删除以下文件

Delete the following files from the project's main folder

App_Code.compiled
App_global.asax.compiled

并从"bin"文件夹中删除以下文件

and delete the following files from the "bin" folder

    App_global.asax.dll
    App_WebReferences.compiled

,该错误将得到解决.我仍然在寻找这个问题背后的原因

and the error will be solved. I am still looking for the reason behind this problem

这篇关于aspnet_merge.exe错误;此处不允许相对虚拟路径"VE/web_form.aspx"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆