newbe C#项目问题 [英] newbe C# Project Question

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

问题描述

我的C#项目出了问题。该项目是使用VS.net

(带有Service Pack 1的原始版本)构建的。该项目包括windows窗体

和一个DLL(dot.net)


获得应用程序工作后,所有编译的内容都是

排除故障。准备交付时,所有者决定更改应用程序和DLL的名称。


与其他开发人员讨论后,我们决定命名空间<应用程序中的
也需要更改。


我已将Namespace名称更改为新名称,DLL已重命名,并且

应用程序被编译了好几次。用干净的编译。


然而,当我执行代码(在IDE或直接)代码错误时,

它试图访问任何DLL课程。


我检查了参考文献,路径,编译。所有可能的错误

我能想到并且都指向新的DLL名称和正确的命名空间。我

甚至检查过命名空间拼写错误。所有都有相同的拼写。


示例错误消息:

"无法从程序集中加载类型Questionnaire.Configuration

问卷调查,版本= 1.0.1356.17027,文化=中立,PublicKeyToken = null,

调查问卷

请帮助。


解决方案

嗨琼斯,

您是否也重新编译了DLL?


B \ rgds




" Jones" ; <无********** @ insight.rr.com>在消息中写道

news:_6 ********************* @ twister.columbus.rr.c om ...

我的C#项目出了问题。该项目是使用
VS.net(带有Service Pack 1的原始版本)构建的。该项目包括windows
表格和一个DLL(dot.net)

在使应用程序正常工作后,所有编译完成并被解决了。准备发送,所有者决定更改应用程序和DLL的Name


在与另一个开发人员讨论后,我们决定应用程序中的
名称空间需要也改变了。

我已将Namespace名称更改为新名称,DLL已重命名,并且
应用程序已多次编译。使用干净的编译。

然而,当我执行代码(在IDE或直接)时,代码在尝试访问任何DLL类时错误

错误都指向新的DLL名称和正确的命名空间。
我甚至检查过命名空间拼写错误。所有都有相同的拼写。

示例错误消息:
无法从程序集中加载类型Questionnaire.Configuration
调查表,版本= 1.0.1356.17027,
Culture = neutral,PublicKeyToken = null,调查问卷

请帮助。



是。

DLL重新编译了好几次。

在应用程序项目中,我甚至包括DLL项目和

更改了引用,仍然没有成功。


" 100" < 10*@100.com>在消息中写道

新闻:ez ************* @ TK2MSFTNGP11.phx.gbl ...

Hi Jones,
你也重新编译了DLL吗?

B \ _ggds
100

琼斯 <无********** @ insight.rr.com>在消息中写道
新闻:_6 ********************* @ twister.columbus.rr.c om ...

我的C#项目有问题。该项目是使用VS.net

(带有Service Pack 1的原始版本)构建的。该项目包括windows


表单

和一个DLL(dot.net)

在使应用程序正常工作后,所有编译的内容都是
排除故障。准备交付时,所有者决定更改
名称

应用程序和DLL。

在与其他开发人员讨论后,我们决定命名空间<应用程序中的blockquote class =post_quotes>也需要更改。

我已将Namespace名称更改为新名称,DLL已重命名,并且
应用程序已多次编译。干净的编译。

然而,当我执行代码(在IDE或直接)代码错误


它尝试访问时任何DLL类。

我检查了引用,路径,编译。所有可能的


错误

我能想到并且都指向新的DLL名称和正确的



命名空间。我

甚至检查过命名空间拼写错误。所有都有相同的



拼写。
示例错误消息:
无法从程序集中加载类型Questionnaire.Configuration
调查问卷,版本= 1.0.1356.17027,


Culture = neutral,PublicKeyToken = null,

问卷调查表"

请帮助。




您是动态加载DLL程序集还是加密当你想要使用正常的类型时,抛出
方式?


无论如何,我建议你在ILDasm工具中加载dll并查看你的DLL导出类型的
,看看你的类型就在其中。


" Jones" <无********** @ insight.rr.com>在消息中写道

news:dm ********************* @ twister.columbus.rr.c om ...

是的。
DLL被重新编译了几次。
在应用程序项目中,我甚至包含了DLL项目并更改了引用,但仍然没有成功。 />
" 100" < 10*@100.com>在消息中写道
新闻:ez ************* @ TK2MSFTNGP11.phx.gbl ...

Hi Jones,
你也重新编译了这个DLL吗?

B \ _ggds
100

琼斯 <无********** @ insight.rr.com>在消息中写道
新闻:_6 ********************* @ twister.columbus.rr.c om ...

我的C#项目有问题。该项目是使用


VS.net

(带有Service Pack 1的原始版本)构建的。该项目包括windows


表单

和一个DLL(dot.net)

在使应用程序正常工作后,所有编译的内容都是
排除故障。准备交付,所有者决定更改

名称

>应用程序和DLL。

在与另一位开发人员讨论后,我们决定应用程序中的


命名空间

也需要更改。

我已将Namespace名称更改为新名称,DLL已重命名和
应用程序被编译了好几次。使用干净的编译。

然而,当我执行代码(在IDE或直接)时代码错误


out

它试图访问任何DLL类。

我检查了引用,路径,编译。所有可能的


错误

我能想到并且都指向新的DLL名称和正确的


命名空间。

甚至检查了命名空间拼写错误。所有都有相同的


拼写。
示例错误消息:
无法从程序集中加载类型Questionnaire.Configuration
调查问卷,版本= 1.0.1356.17027,


Culture = neutral,PublicKeyToken = null,

问卷调查表"

请帮助。





I am having problems with my C# project. The project was built using VS.net
(original release with service pack 1). The project includes windows forms
and a DLL (dot.net)

After getting the application working, everything compiled and was
troubleshooted. Ready for delivery, the owner decided to change the Name of
the application and DLL.

After discussing this with another developer, we decided that the namespace
in the application needed to be changed as well.

I have changed Namespace name to the new name, DLL was renamed, and the
application was compiled several times. With clean compiles.

However, when I execute the code (in IDE or direct) the code errors out when
it attempts to access any of the DLL classes.

I have checked the references, pathing, compiling. All the possible errors
I could think of and all point to the New DLL name and Correct Namespace. I
have even checked for namespace misspellings. All have the same spelling.

Example Error Message:
" Could not load type Questionnaire.Configuration from assembly
Questionnaire, Version=1.0.1356.17027, Culture=neutral,PublicKeyToken=null,
Questionnaire"

Please Help.


解决方案

Hi Jones,

Did you recompile the DLL as well?

B\rgds
100

"Jones" <no**********@insight.rr.com> wrote in message
news:_6*********************@twister.columbus.rr.c om...

I am having problems with my C# project. The project was built using VS.net (original release with service pack 1). The project includes windows forms and a DLL (dot.net)

After getting the application working, everything compiled and was
troubleshooted. Ready for delivery, the owner decided to change the Name of the application and DLL.

After discussing this with another developer, we decided that the namespace in the application needed to be changed as well.

I have changed Namespace name to the new name, DLL was renamed, and the
application was compiled several times. With clean compiles.

However, when I execute the code (in IDE or direct) the code errors out when it attempts to access any of the DLL classes.

I have checked the references, pathing, compiling. All the possible errors I could think of and all point to the New DLL name and Correct Namespace. I have even checked for namespace misspellings. All have the same spelling.

Example Error Message:
" Could not load type Questionnaire.Configuration from assembly
Questionnaire, Version=1.0.1356.17027, Culture=neutral,PublicKeyToken=null, Questionnaire"

Please Help.



Yes.
The DLL was recompiled several times.
In the Application project, I have even included the DLL Project and
changed the references, still with no success.

"100" <10*@100.com> wrote in message
news:ez*************@TK2MSFTNGP11.phx.gbl...

Hi Jones,

Did you recompile the DLL as well?

B\rgds
100

"Jones" <no**********@insight.rr.com> wrote in message
news:_6*********************@twister.columbus.rr.c om...

I am having problems with my C# project. The project was built using VS.net

(original release with service pack 1). The project includes windows


forms

and a DLL (dot.net)

After getting the application working, everything compiled and was
troubleshooted. Ready for delivery, the owner decided to change the Name of

the application and DLL.

After discussing this with another developer, we decided that the namespace

in the application needed to be changed as well.

I have changed Namespace name to the new name, DLL was renamed, and the
application was compiled several times. With clean compiles.

However, when I execute the code (in IDE or direct) the code errors out


when

it attempts to access any of the DLL classes.

I have checked the references, pathing, compiling. All the possible


errors

I could think of and all point to the New DLL name and Correct


Namespace. I

have even checked for namespace misspellings. All have the same


spelling.
Example Error Message:
" Could not load type Questionnaire.Configuration from assembly
Questionnaire, Version=1.0.1356.17027,


Culture=neutral,PublicKeyToken=null,

Questionnaire"

Please Help.




Do you load the DLL assembly dynamically or the acception is thrown when you
try to use a type in a "normal" way?

Anyway, what I can suggest to you is to load the dll in ILDasm tool and look
at the types your DLL exports and see if your type is among them.

"Jones" <no**********@insight.rr.com> wrote in message
news:dm*********************@twister.columbus.rr.c om...

Yes.
The DLL was recompiled several times.
In the Application project, I have even included the DLL Project and
changed the references, still with no success.

"100" <10*@100.com> wrote in message
news:ez*************@TK2MSFTNGP11.phx.gbl...

Hi Jones,

Did you recompile the DLL as well?

B\rgds
100

"Jones" <no**********@insight.rr.com> wrote in message
news:_6*********************@twister.columbus.rr.c om...

I am having problems with my C# project. The project was built using


VS.net

(original release with service pack 1). The project includes windows


forms

and a DLL (dot.net)

After getting the application working, everything compiled and was
troubleshooted. Ready for delivery, the owner decided to change the Name

of

the application and DLL.

After discussing this with another developer, we decided that the


namespace

in the application needed to be changed as well.

I have changed Namespace name to the new name, DLL was renamed, and the application was compiled several times. With clean compiles.

However, when I execute the code (in IDE or direct) the code errors

out when

it attempts to access any of the DLL classes.

I have checked the references, pathing, compiling. All the possible


errors

I could think of and all point to the New DLL name and Correct


Namespace.

I

have even checked for namespace misspellings. All have the same


spelling.
Example Error Message:
" Could not load type Questionnaire.Configuration from assembly
Questionnaire, Version=1.0.1356.17027,


Culture=neutral,PublicKeyToken=null,

Questionnaire"

Please Help.





这篇关于newbe C#项目问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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