Azure本地环境:“500 - 内部服务器错误”。迁移到不同的机器后 [英] Azure local environment: "500 - Internal server error." after migration to different machine

查看:73
本文介绍了Azure本地环境:“500 - 内部服务器错误”。迁移到不同的机器后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助 - 我已经尝试解决这个问题好几天了。



我在本地环境中运行一个非常简单的Web角色应用程序,其中包含RESTful WCF。我使用的是Visual Studio 2012和Azure 2.2版。在我的一台机器(Windows 7,32位)中,应用程序按预期工作。但是当在另一台机器(Windows 7,64位)中构建和运行时,会导致以下错误:



500 - 内部服务器错误。

您正在寻找的资源存在问题,并且无法显示。



如果您愿意帮忙,那么您可以从此处 [ ^ ]。这只是几行代码。



请求



http://127.0.0.1:81 /ImagingSvc.svc/Init



导致上述错误,而此请求的预期响应是关闭



<?xml version =1.0?>

< string xmlns =http://schemas.microsoft.com/2003/10/Serialization/> TEST< / string> ;



申请时。启动方法

 WebRole.OnStart()

工作正常(我已经删除它),但在

 ImagingSvc.Init()方法从未被击中。 



提前谢谢。



Igor

解决方案

Please help - I have being trying to solve this problem for days.

I am running a very simple Web Role application containing RESTful WCF in local environment. I am using Visual Studio 2012 and Azure version 2.2 . In one of my machines (Windows 7, 32 bits) the application works as expected. But when being built and run in another machine (Windows 7, 64 bits) it causes the following error:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

If you will kindly decide to help then you can download the application from here[^]. This is just few lines of code.

Request

http://127.0.0.1:81/ImagingSvc.svc/Init

causes the above error, whereas expected respomse on this request is following

<?xml version="1.0"?>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">TEST</string>

When app. starts method

WebRole.OnStart() 

works fine (I debigged it), but after browser request breakpoint in

ImagingSvc.Init() 

method was never hit.

Thank you in advance.

Igor

解决方案

这篇关于Azure本地环境:“500 - 内部服务器错误”。迁移到不同的机器后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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