将webapp 2008转换为2010时出现问题 [英] Problem when converting webapp 2008 to 2010

查看:95
本文介绍了将webapp 2008转换为2010时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在用VS2008和.NET 3.5开发一个Web应用程序,然后又转向VS2010和.NET 4.0.
我将解决方案文件夹通过VS2010移到了我的新计算机上,然后开始了将其转换为.NET 4的过程.
在此之后,一切似乎都可以正常工作,但是现在当我重定向到任何页面时,都会收到HTTP错误400-错误的请求.

感谢all

I have been developing a webapp with VS2008 with .NET 3.5 and I moved to VS2010 and .NET 4.0.
I moved the solution folder to my new computer with VS2010 and I began the process of converting it to .NET 4.
After this everything appears to work fine, but now when I make redirect to any page I get a HTTP Error 400 - Bad Request.

Thanks all

推荐答案

我不应该与转换本身相关:Framework 4.0与3.5向后兼容.看来您的解决方案本身存在一些错误,使其无法移动(硬编码的路径字符串可能是原因之一).一次执行一个步骤.使移动的网站在不转换为4.0的情况下正常工作,并且它们可以转换.或者,先在相同位置转换您的解决方案,并确保它首先生效.

另一条建议:从纯工件(除纯源代码)之外的任何工件中清除解决方案.您需要确切地知道哪些文件属于源代码.始终在某些版本控制系统下工作.不是手动移动解决方案,而是擦除本地目录并将代码签出到其他位置.首先尝试在同一台计算机上移动解决方案,以确保您没有丢失任何东西.

至少,您不会责怪无辜的Visual Studio转换过程.

—SA
I should not be related to the conversion itself: Framework 4.0 is backward-compatible with 3.5. It looks like your solution itself has bugs which makes it not movable (hard-coded path strings could be one reason). Do one step at a time. Make moved site working without conversion to 4.0, and them convert. Alternatively, convert your solution first on the same location and make sure it works first.

One more advice: clean up the solution from any artifacts except pure source code. You need to know exactly which files belong to the source code. Always work under some revision control system. Move solution not manually, but by wiping your local directory and checking out the code to a different location. Try to move solution around on the same computer first, to make sure you''re not missing something.

At lest, you won''t blame the innocent Visual Studio conversion procedure.

—SA


这篇关于将webapp 2008转换为2010时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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