移至vs2005会导致外部控件出错 [英] Move to vs2005 causes errors in external controls

查看:59
本文介绍了移至vs2005会导致外部控件出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我还在努力通过转换到VS2005,我到了那里,但是

有一对夫妇错误我无法解决。


我的项目使用了几个外部控件(不是由我编写的),即

Metabuilders CheckedListBox和Obout :日历控件。


在vs2003中一切正常,但每次我的代码试图调用其中一个控件时,我都会收到以下错误

.. 。


请求类型'System.Web.AspNetHostingPermission的许可,

系统,版本= 2.0.0.0,文化=中立,PublicKeyToken = b77a5c561934e089''

失败了


我尝试在.net中为网络中的所有文件夹启用完全信任

应用程序,但我仍然收到错误而且无法编译。


任何帮助都将不胜感激!


干杯

Dan

解决方案

那些控件是DLL吗?那么它们是用2.0编写的吗?


" musosdev"写道:

大家好

我还在努力通过转换到VS2005,我到了那里,但是
那里我无法解决几个错误。

我的项目使用了几个外部控件(不是由我编写的),即Metabuilders CheckedListBox和Obout:Calendar控件。

在vs2003中一切正常,但每次我的代码试图调用其中一个控件时,我都会收到以下错误

请求'System.Web.AspNetHostingPermission类型的权限,
系统,版本= 2.0.0.0,文化=中立,PublicKeyToken = b77a5c561934e089''
失败>

我''我试图在.net应用程序中为所有文件夹启用.net中的Full Trust,但我仍然收到错误而且无法编译。

任何帮助都将是赞赏!

干杯

Dan



Hi D a,


欢迎来到MSDN新闻组!


根据我的理解,我认为你在
$ b时遇到编译错误$ b在Visual Studio 2005中构建当前项目。如果我误解了

任何东西,请告诉我。


对于当前的问题,我将不胜感激如果您提供以下

信息:


1.您是否会向我们显示错误的堆栈?

在命令行中调用aspnet_compiler时可能会使用-errorstack。


2.在机器级别下是否设置了任何信任级别?你是否故意

想在部分信任下运行应用程序?


3.引用的dll在哪里? GAC还是垃圾箱?如果没有这些如何设置

up绑定?


4.这个特定的用户控件是否在源代码应用程序之前工作

预编译?


感谢您的信息!我在期待你的回复。


问候,


元人[MSFT]

Microsoft在线支持


您好


感谢您的回复。你将不得不忍受我,我对很多服务器的东西很新,所以我很少迷失.... :)


1.我正在使用VS2005构建网站选项..我可以得到一个堆栈

跟踪?如果没有,我将不得不弄清楚如何使用clc ..


2.不确定你的意思,我已经使用.NET Configurator来设置完整

信任项目的IP(10.0.0.200/*)以及文件共享

(文件:/// \\\\\\\\ web \ *)


3.这两个dll都在项目的\bin文件夹中。


4.对不起,不知道那一个!


只是另外一件事,大概已经是dll,他们没有得到编译的b $ b,因此它不应该与

aspnet 2的变化有关(也就是说,我不需要获得新版本的控件?!)


感谢您的帮助,我很抱歉,我不理解你的一些问题。如果您可以提供更多信息或许我们可以解决这个问题吗?


干杯


Dan


"" Yuan Ren [MSFT]""写道:

嗨丹,

欢迎来到MSDN新闻组!

根据我的理解,我认为你发现编译器错误在Visual Studio 2005中构建当前项目的时候。如果我误解了什么,请告诉我。

对于当前的问题,如果你提供的话,我将不胜感激。以下
信息:

1.您是否会向我们展示错误的堆栈?在命令行中调用aspnet_compiler时可能会使用-errorstack。

2.机器级别下是否设置了任何信任级别?您是否有意在部分信任下运行应用程序?

3.引用的dll在哪里? GAC还是垃圾箱?如果这些都没有设置如何绑定?

4.这个特定的用户控件是否在
预编译之前在源应用程序中工作?

谢谢供您参考!我很期待你的回复。

问候,

袁仁[微软]微软在线支持



Hi guys

I''m still working through my conversion to VS2005, I''m getting there, but
there''s a couple of errors I can''t fix.

My project uses a couple of external controls (not written by me), namely
Metabuilders CheckedListBox and the Obout:Calendar control.

Everything worked fine in vs2003, but I keep getting the following error
every time my code tries to call one of the controls...

"Request for the permission of type ''System.Web.AspNetHostingPermission,
System, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b77a5c561934e089''
failed"

I''ve tried doing enabling Full Trust in .net for all the folders in the web
app, but I''m still getting the errors and can''t compile.

Any help would be appreciated!

Cheers
Dan

解决方案

Are those controls DLL? So there for are they compiled in 2.0?

"musosdev" wrote:

Hi guys

I''m still working through my conversion to VS2005, I''m getting there, but
there''s a couple of errors I can''t fix.

My project uses a couple of external controls (not written by me), namely
Metabuilders CheckedListBox and the Obout:Calendar control.

Everything worked fine in vs2003, but I keep getting the following error
every time my code tries to call one of the controls...

"Request for the permission of type ''System.Web.AspNetHostingPermission,
System, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b77a5c561934e089''
failed"

I''ve tried doing enabling Full Trust in .net for all the folders in the web
app, but I''m still getting the errors and can''t compile.

Any help would be appreciated!

Cheers
Dan



Hi Dan,

Welcome to MSDN newsgroup!

Based on my understanding, I think you caught a compiler error when
building the current project in Visual Studio 2005. If I have misunderstood
anything, please let me know.

For the current issue, I would appreciate it if you supplied the following
information:

1. Would you show us the stack for the error? You may use -errorstack when
calling aspnet_compiler in the command line.

2. Is there any trust level set under machine level? Are you intentionally
wanted to run the app under partial trust?

3. Where is the referenced dll? GAC or bin? If none of these how do you set
up binding?

4. Is this particular usercontrol working in the source application before
precompilation?

Thanks for your information! I?ˉm looking forward your reply.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support


Hi

Thanks for the reply. You''ll have to bear with me, I''m quite new to a lot of
the server stuff so I''m a little lost.... :)

1. I''m using VS2005 "Build Website" option.. can I get that to do a stack
trace? If not, I''ll have to work out how to use the clc..

2. Not sure what you mean here, I''ve used the .NET Configurator to set Full
Trust on the IP for the project (10.0.0.200/*) and also on the file share
(file:///\\server\web\*)

3. Both dll''s are in the \bin folder for the project.

4. Sorry, don''t understand that one!

Just one other thing, presumably, being dlls already, they don''t get
compiled, and therefore it shouldn''t be something to do with changes in
aspnet 2 (ie, i shouldn''t need to get new versions of the controls?!)

Thanks for trying to help, and I''m sorry I don''t understand some of your
questions. If you could provide a bit more info perhaps we can work this out?

Cheers

Dan

""Yuan Ren[MSFT]"" wrote:

Hi Dan,

Welcome to MSDN newsgroup!

Based on my understanding, I think you caught a compiler error when
building the current project in Visual Studio 2005. If I have misunderstood
anything, please let me know.

For the current issue, I would appreciate it if you supplied the following
information:

1. Would you show us the stack for the error? You may use -errorstack when
calling aspnet_compiler in the command line.

2. Is there any trust level set under machine level? Are you intentionally
wanted to run the app under partial trust?

3. Where is the referenced dll? GAC or bin? If none of these how do you set
up binding?

4. Is this particular usercontrol working in the source application before
precompilation?

Thanks for your information! I???ˉm looking forward your reply.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support



这篇关于移至vs2005会导致外部控件出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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