C#似乎无法编译 [英] C# Seems to failing Compiling

查看:128
本文介绍了C#似乎无法编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我正在研究一个使用C#Express版本开发的项目.

I am working on a project that I develop on C# Express edition. 

一切都从5天前开始.

Everything started 5 days ago.

当我编译时,应用程序启动,并且一切正常.但是,当我构建解决方案...并运行可执行文件...

When I Compile, application starts, and everything works fine. But when I Build the solution... and run the executable file...

 

我进入那里的web浏览器似乎无法正常工作时,sql连接器似乎却无法正常工作可以正常工作.

The webBroweser that i got inside there doesnt seem to work, The sql connector doesnt seem to work either.

出现意外错误.有什么建议?

Unexpected errors are coming up. Any suggestions? Please, any help will be appriciated:) thanks a lot.

推荐答案

当我编译时,应用程序启动,并且一切正常.但是,当我构建解决方案...并运行可执行文件...
When I Compile, application starts, and everything works fine. But when I Build the solution... and run the executable file...

 

我看不出这两件事之间有什么区别.您是说调试的时候可以工作吗?我认为该应用程序需要某种类型的配置文件,这些文件位于debug文件夹中,而不位于release文件夹中.如果不给出更多细节,很难说出那是怎么回事.您的意思是"SQL连接器似乎不起作用"?它行不通吗?您是否正在连接到数据库,或者您不是在连接数据库,我无法想象任何介于两者之间的状态.另外,Web浏览器如何似乎不起作用"?您的SQL连接在另一台计算机上吗?也许当您调试它时,它会附加到VS上运行,因此您的防火墙会接受它,但是作为独立应用程序,它被阻止了吗?

I don''t see what the difference between these two things is.  Do you mean when you debug it works ? I would assume the app needs some sort of config files that are in the debug folder but not the release folder.  It''s really hard to say what is going on beyond that without being given more specifics.  What do you mean the ''sql connector doesn''t seem to work'' ? Does it work or not ? Either you''re connecting to the DB or you''re not, I can''t imagine any inbetween state.  Also, how does the web browser ''not seem to work'' ? Is your SQL connection on another machine ? Perhaps when you debug it runs attached to VS and so your firewall accepts it, but as a stand alone app it is being blocked ?


您是对的.

这不是防火墙问题.当我调试该应用程序时,它可以连接到sql服务器(不在我的计算机上)

This is not a firewall Issue. When i Debug the application it can Connect to the sql server (that is not on my machine)

 

,并且当我运行可执行文件时,它无法连接到sql服务器由于某些Windows Expeption.并且WebBrowser无法连接到Internet. 

and when I am running the executable file it cannot connect to the sql server due to some Windows Expeption. and the WebBrowser cannot connect to the internet. 

 

此外,我不得不在前面提到的另一个事实是,发行版"上没有任何文件丢失

Also, another fact that i had to mention earlier is that, there are not any files missing on the "Release" Folder that there are on the "Debug" one.


您怎么知道这不是防火墙问题."您所说的某些例外"是什么意思?如果您需要帮助,则需要提供详细信息.您提供的内容更像是某种代码.您看到什么错误?准确地粘贴它们,不要含糊地是这样的".您可能有防火墙问题,也有部署问题.我看不到其他选择.

How do you know it''s not a firewall issue.  What do you mean by ''some exception'' ? If you want help, you need to provide details.  What you''re providing is more like some sort of code.  What errors are you seeing ? Paste them EXACTLY, not a vague ''it''s something like this''.  You either have a firewall issue, or you have a deployment issue.  There''s no other options that I can see.


这篇关于C#似乎无法编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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