我在Microsoft Azure的
我已经阅读过其他SO帖子,其中提到我们必须在
上面的错误只在我尝试上传.svg文件时发生(我拥有的所有其他文件类型都不会引发此错误)。
是否还需要做其他事情来发布我的.svg文件?
注意:我正在使用VS2013 Pro将我的网站发布到Windows Azure。
"~/css/fonts/"
目录下有一个.svg文件。当我发布网站时,所有的CSS和EOT文件都被发布了,但是我的唯一的.svg文件却没有被发布。我已经阅读过其他SO帖子,其中提到我们必须在
web.config
中显式添加,因此我已经更新/发布了我的web.config
,如下所示:<system.webServer>
<staticContent>
<remove fileExtension=".svg" />
<remove fileExtension=".eot" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
</staticContent>
</system.webServer>
我重新发布了特定的 .svg 文件,但是出现了以下错误:
Preparing to publish files...
Using ID 'dc2a......' for connections to the remote server.
Using ID 'a2c7......' for connections to the remote server.
Using ID '9720......' for connections to the remote server.
Using ID 'aff7......' for connections to the remote server.
Using ID '4d1d......' for connections to the remote server.
The synchronization is being stopped because the maximum number of sync passes '5' has been exceeded even though all the changes could not be applied. This could occur if there are external changes being made to the destination.
上面的错误只在我尝试上传.svg文件时发生(我拥有的所有其他文件类型都不会引发此错误)。
是否还需要做其他事情来发布我的.svg文件?
注意:我正在使用VS2013 Pro将我的网站发布到Windows Azure。