尝试发布时缺少根元素 [英] Root element is missing when trying to Publish

查看:1194
本文介绍了尝试发布时缺少根元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这已经有一段时间,因为我已经出版了我的应用程序的Azure。在这段时间内,我已经升级了我的系统从32位到64位的意思是全新安装Windows和Visual Studio的。和Visual Studio更新3出来,并应用。当我走到今天发布更新,我收到了以下内容:

It has been a while since I've published my app to Azure. During that time frame, I've upgraded my system from 32-bit to 64-bit meaning a fresh install of Windows and Visual Studio. And Visual Studio Update 3 came out and was applied. When I went to publish an update today, I received the following:

以下异常被抛出试图发布:缺少根元素

我的web.config文件看起来很好,所以我不认为这是<一个href=\"http://mgadler777.word$p$pss.com/2013/03/25/microsoft-lightswitch-2012-root-element-is-missing-error/\"相对=nofollow>这个问题。

My web.config file looks fine so I don't think it's this issue.

该应用程序的工作在调试模式下细,所以我不认为这是任何.lsml文件如提到的这里

The app works fine in debug mode so I don't think it's any of the .lsml files as is mentioned here.

和我试过<一个href=\"https://blogs.msdn.com/b/david_kidder/archive/2012/12/05/declaring-lightswitch-publish-wizard-bankruptcy.aspx?Redirected=true\"相对=nofollow>此过程手工编辑.ls3proj文件,但它似乎并没有帮助。

And I tried this procedure to hand edit the .ls3proj file but it didn't seem to help.

我previously有一个问题,尝试发布时,我从独立的LightSwitch 2011到Visual Studio 2012年我能够克服使用<一个描述的方法这个问题升级href=\"http://social.msdn.microsoft.com/Forums/vstudio/en-US/7bcdee0f-046d-48b8-9584-6411f64dbcb1/no-longer-able-to-publish\"相对=nofollow>此线程。

I previously had an issue trying to publish when I upgraded from the standalone LightSwitch 2011 to Visual Studio 2012. I was able to overcome that issue using the method described in this thread.

在尝试使用此相同的方法导致了我的新项目有一个全屏幕错误说的有在应用程序定义元数据... 的严重错误和210个人的错误(达到最大错误)

Attempting to use this same method resulted in my new project has a full screen error saying "There are critical errors in the application definition metadata..." and 210 individual errors (max errors reached).

第一个错误,无法创建未知类型{的http://schemas.microsoft.com/LightSwitch/2010/xaml/model}GlobalAttributeGroup'.\"没有意义,因为在.lsml该行是从旧项目向新项目完全相同。

The first error, "Cannot create unknown type '{http://schemas.microsoft.com/LightSwitch/2010/xaml/model}GlobalAttributeGroup'." Doesn't make sense because that line in the .lsml is identical from the old project to the new project.

第二个错误,找不到项目中的任何应用程序定义。的我不明白的。

The second error, "Could not find any application definition in the project." Which I do not understand at all.

我能够简单的你好,世界风格的应用程序发布到我的Azure帐户。

I am able to publish a simple "Hello, world" style app to my Azure account.

什么引起的?我怎样才能获得究竟哪些因素导致该问题的更多信息?通过运行 devenv的/日志生成的日志是没有帮助的。

What could be causing this? How can I get more information about exactly which element is causing the issue? The log produced by running devenv /log was not helpful.

推荐答案

马特Thalman能够在解决我的问题在<一个href=\"http://social.msdn.microsoft.com/Forums/vstudio/en-US/ecdff8dc-8190-4d32-9080-ce6430d9e27a/root-element-is-missing-when-trying-to-publish?forum=lightswitch\"相对=nofollow>微软论坛。该ServiceConfiguration.cscfg和ServiceDefinition.csdef中时,签出的版本控制,从该项目丢失。从复制一个新的项目在那些恢复了我发布的能力。

Matt Thalman was able to solve my problem over in the Microsoft Forums. The ServiceConfiguration.cscfg and ServiceDefinition.csdef were missing from the project when checked out of version control. Copying those over from a new project restored my ability to publish.

这篇关于尝试发布时缺少根元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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