如何让应用程序运行????? [英] How to make the app run?????

查看:62
本文介绍了如何让应用程序运行?????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我已经接受了为期四天的C#培训,非常好的培训,经验丰富的

老师以及所有这些,非常积极。


我回家花了一个星期的时间来制作我的第一个申请,比通常的Hello world略高于




和我一起去找我最好的顾客,不管它是不是......它不会工作!!!!


怎么样发生这种情况!!!

它在家里的XP-pro上工作正常,而在客户XP-pro上完全没有用

所有更新,域用户帐户,无论我如何尝试,它拒绝执行代码的某些部分,一切都微不足道,如显示一个

形式(当然是空的)没问题,但一切都很有趣像打开数据库的
ADO连接,获取记录集填充并填写空白表格NOPE上的列表,由于某些.Net Framework不能这样做安全问题。


那么,我该怎么办? ake 200客户端机器无需手动接受我的C#代码

逐个配置它们?


Kjell

Hello

I''ve taken a four days training in C#, very good training, experienced
teacher and all that, very positive.

Went home spent a week making my first application, slightly more than the
usual "Hello world".

Took it with me to my best customer, and beleive it or not....It will not
work !!!!

How can that happen!!!
It works fine on my XP-pro at home and not at all on my customers XP-pro
with all updates, with Domain User account, no matter how I try, it refuses
to execute certain sections of the code, everything trivial like showing a
form (empty of course) no problem, but everything interesting like open the
ADO connection to the databas, get the recordset filled and fill the List on
the empty form NOPE, can''t do that due to some .Net Framework security issues.

So, How can I make 200 client machines accept my C# code without manually
configuring them one by one?

Kjell

推荐答案

您需要提供有关不工作的更多信息。事情。并且它是非常常见的,一个不完整的测试应用程序无法在

客户端计算机上运行。


是你的应用程序窗口表单应用程序? (看起来是的)


你怎么进入已安装的在客户端计算机?你有没有创建一个

安装包?或者你只是XCopied整个文件夹到客户端

计算机?点击你安装在本地或在网络共享上?


客户端计算机上是否安装了适当版本的.NET框架?


有了这样的基本信息,唯一可以说的是你没有

做正确的事情并且过早地向你的客户展示你的应用。

Kjell < Kj *** @ discuss.microsoft.com写信息

新闻:CD ************************* ********* @ microsof t.com ...
You need to provide more information on the "not working" thing. And it is
very common with a not thorough testing application does not work on the
client computer.

Is your app an Window Form application? (it seems yes)

How do you get in "installed" on client computer? Did you created an
installation package? Or did you simply XCopied whole folder to the client
computer? Dod you "install" it locally or on a network share?

Is proper version of .NET framework installed on the client computer?

With such very basic information, only thing that can be said is you did not
do things correctly and show your app to your client a bit too early.
"Kjell" <Kj***@discussions.microsoft.comwrote in message
news:CD**********************************@microsof t.com...

你好


我已经在C#接受了为期四天的培训,非常好的培训,经验丰富的

老师和所有这一切,非常积极。


我回家花了一周时间做了我的第一个申请,略高于

通常的Hello world。


带我去找我最好的顾客,相信或不相信....这不会是
工作!!!!


怎么会发生这种情况!!!

它在我的XP上工作正常亲在家里,而不是在我的客户XP-pro

所有更新,使用域用户帐户,无论我如何尝试,它

拒绝

执行代码的某些部分,一切都很简单,比如显示一个

表格(当然是空的)没问题,但一切都很有趣,比如打开

the br />
ADO连接到数据库,得到记录集填写并填写列表



空表格NOPE,由于某些.Net Framework安全性而无法做到这一点

问题。


那么,我怎样才能让200台客户端机器不用手动接受我的C#代码

逐一配置它们?


Kjell
Hello

I''ve taken a four days training in C#, very good training, experienced
teacher and all that, very positive.

Went home spent a week making my first application, slightly more than the
usual "Hello world".

Took it with me to my best customer, and beleive it or not....It will not
work !!!!

How can that happen!!!
It works fine on my XP-pro at home and not at all on my customers XP-pro
with all updates, with Domain User account, no matter how I try, it
refuses
to execute certain sections of the code, everything trivial like showing a
form (empty of course) no problem, but everything interesting like open
the
ADO connection to the databas, get the recordset filled and fill the List
on
the empty form NOPE, can''t do that due to some .Net Framework security
issues.

So, How can I make 200 client machines accept my C# code without manually
configuring them one by one?

Kjell



如果您测试的唯一系统是您的
,那么它很容易发生/>
开发系统。获取Visrtual PC 2007,自己制作一台XP SP2虚拟机(b)b b机器(如果你愿意,可以更新)做你正在使用的任何部署和

看看它是否有效。 br />
-

Phil Wilson

[MVP Windows安装程序]

" Kjell" < Kj *** @ discuss.microsoft.com写信息

新闻:CD ************************* ********* @ microsof t.com ...
It can happen very easily if the only system you tested it on is your
development system. Get Visrtual PC 2007, make yourself a XP SP2 virtual
machine (with updates if you like) do whatever deployment you''re using and
see if it works.
--
Phil Wilson
[MVP Windows Installer]
"Kjell" <Kj***@discussions.microsoft.comwrote in message
news:CD**********************************@microsof t.com...

你好


我已经在C#接受了为期四天的培训,非常好的培训,经验丰富的

老师和所有这一切,非常积极。


我回家花了一周时间做了我的第一个申请,略高于

通常的Hello world。


带我去找我最好的顾客,相信或不相信....这不会是
工作!!!!


怎么会发生这种情况!!!

它在我的XP上工作正常亲在家里,而不是在我的客户XP-pro

所有更新,使用域用户帐户,无论我如何尝试,它

拒绝

执行代码的某些部分,一切都很简单,比如显示一个

表格(当然是空的)没问题,但一切都很有趣,比如打开

the br />
ADO连接到数据库,得到记录集填写并填写列表



空表格NOPE,由于某些.Net Framework安全性而无法做到这一点

问题。


那么,我怎样才能让200台客户端机器不用手动接受我的C#代码

逐一配置它们?


Kjell
Hello

I''ve taken a four days training in C#, very good training, experienced
teacher and all that, very positive.

Went home spent a week making my first application, slightly more than the
usual "Hello world".

Took it with me to my best customer, and beleive it or not....It will not
work !!!!

How can that happen!!!
It works fine on my XP-pro at home and not at all on my customers XP-pro
with all updates, with Domain User account, no matter how I try, it
refuses
to execute certain sections of the code, everything trivial like showing a
form (empty of course) no problem, but everything interesting like open
the
ADO connection to the databas, get the recordset filled and fill the List
on
the empty form NOPE, can''t do that due to some .Net Framework security
issues.

So, How can I make 200 client machines accept my C# code without manually
configuring them one by one?

Kjell



ok。


首先,它没有显示给我的客户,我把它带到一个非常好的

客户让我用他的网络进行测试。


这是MDI应用程序有三个子窗体和几个对话框,它不是一个

" ready"应用程序。它更像是典型的我的应用的横截面。 最低

等级只是为了确认最佳实践。 (我正在从VB6转向C#)


所以,我想检查某些事情是否正在运行,因为我希望。

和是;我已经制作了一个安装包。


因此执行看起来没问题,MDI表单出现了,我没看到

是打开ADO连接到本地存储的Access数据库是

有点跳过


我不知道任何其他的话,让我列出我管理的部分

验证从未执行过。


我认为这与VB GetSettings相当

this.Left =(int)Application.UserAppDataRegistry.GetValue(this .Name +

" left",50);

无论如何,它被跳过了。 />

''''这是一个很好的功能我找到了

用户MyU =新用户();

MyU.InitializeWithWindowsUser() ;


if(MyU.IsInRole(" Dom?¤nadministrat?? rer))

mess ="你是Dom?¤nadministrat ?? rer" ;;

MessageBox.Show(mess);

它被跳过了


最后,打开数据库。

我不知道究竟什么没有被执行,它可以打开一个外部的

文件来获取数据库的路径。

或ADO Open连接字符串,但我正在测试文件

读取的结果,如果失败,我尝试使用OpenFileDialog从用户那里获得输入。

这从未出现过,所以必须跳过整个功能。


所以如果没有ADO连接,子表单将不会显示任何内容。


程序结束


我的目的是使程序变得非常小,以便在客户环境中获得最小的错误和最大限度的检验。


Kjell


" Norman Yuan"写道:
ok.

First of all, it was not shown to my customer, I took it to a very nice
customer letting me use his network for testings.

It''s a MDI app with three child forms and a couple of dialogs, It''s not a
"ready" app. it''s more of a cross section of a typical "My app" "lowest
level" just to confirm best practice. (I''m moving from VB6 towards C#)

so, I wanted to check that certain things is running as I was hoping.
and yes; I''ve made an Installation package.

so the execution looked first ok, the MDI form came up, what I did not see
is that the call to open the ADO connection to a locally stored Access DB was
kind of "skipped"

I don''t know any other word for it, let me list which part I manage to
verify that never got executed.

I think this is equvilent to VB GetSettings
this.Left = (int)Application.UserAppDataRegistry.GetValue(this .Name +
"left", 50);
anyway, it was skipped.

''''this is a nice function I found
User MyU = new User();
MyU.InitializeWithWindowsUser();

if (MyU.IsInRole("Dom?¤nadministrat??rer"))
mess = "You are a Dom?¤nadministrat??rer";
MessageBox.Show(mess);
it was skipped

and finally, open the database.
I don''t know exactly what did not get executed, it could be open an external
file to get the Path for the database.
Or the ADO Open connection string, but I''m testing the result from the file
reading and if it fails I try to get input from user with OpenFileDialog.
this never show up so the whole function must have been skipped.

so with no ADO connection the child forms will not show anything.

End of program

I made the program very small by purpose, to get minimum chans for bugs and
maximum chans for a positive test run in customer environment.

Kjell

"Norman Yuan" wrote:

您需要提供有关不工作的更多信息。事情。并且它是非常常见的,一个不完整的测试应用程序无法在

客户端计算机上运行。


是你的应用程序窗口表单应用程序? (看起来是的)


你怎么进入已安装的在客户端计算机?你有没有创建一个

安装包?或者你只是XCopied整个文件夹到客户端

计算机?点击你安装在本地或在网络共享上?


客户端计算机上是否安装了适当版本的.NET框架?


有了这样的基本信息,唯一可以说的是你没有

正确地做事情并且过早地向你的客户展示你的应用程序。


" Kjell" < Kj *** @ discuss.microsoft.com写信息

新闻:CD ************************* ********* @ microsof t.com ...
You need to provide more information on the "not working" thing. And it is
very common with a not thorough testing application does not work on the
client computer.

Is your app an Window Form application? (it seems yes)

How do you get in "installed" on client computer? Did you created an
installation package? Or did you simply XCopied whole folder to the client
computer? Dod you "install" it locally or on a network share?

Is proper version of .NET framework installed on the client computer?

With such very basic information, only thing that can be said is you did not
do things correctly and show your app to your client a bit too early.
"Kjell" <Kj***@discussions.microsoft.comwrote in message
news:CD**********************************@microsof t.com...

你好


我已经在C#接受了为期四天的培训,非常好的培训,经验丰富的

老师和所有这一切,非常积极。


我回家花了一周时间做了我的第一个申请,略高于

通常的Hello world。


带我去找我最好的顾客,相信或不相信....这不会是
工作!!!!


怎么会发生这种情况!!!

它在我的XP上工作正常亲在家里,而不是在我的客户XP-pro

所有更新,使用域用户帐户,无论我如何尝试,它

拒绝

执行代码的某些部分,一切都很简单,比如显示一个

表格(当然是空的)没问题,但一切都很有趣,比如打开

the br />
ADO连接到数据库,得到记录集填充并填写列表

空白表格NOPE,由于某些.Net Framework安全性而无法做到这一点b / b
问题。


那么,我怎样才能让200台客户端机器接受我的C#代码而无需手动

逐一配置它们?


Kjell
Hello

I''ve taken a four days training in C#, very good training, experienced
teacher and all that, very positive.

Went home spent a week making my first application, slightly more than the
usual "Hello world".

Took it with me to my best customer, and beleive it or not....It will not
work !!!!

How can that happen!!!
It works fine on my XP-pro at home and not at all on my customers XP-pro
with all updates, with Domain User account, no matter how I try, it
refuses
to execute certain sections of the code, everything trivial like showing a
form (empty of course) no problem, but everything interesting like open
the
ADO connection to the databas, get the recordset filled and fill the List
on
the empty form NOPE, can''t do that due to some .Net Framework security
issues.

So, How can I make 200 client machines accept my C# code without manually
configuring them one by one?

Kjell






这篇关于如何让应用程序运行?????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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