本文介绍了更改web.config位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我的IIS网站c:\ mysite \ adam上具有以下目录结构. Adam被配置为应用程序",并在其中包含web.config文件.现在,我决定要删除adam应用程序,而是在mysite级别上创建一个应用程序".因此,我将web.config文件移到了mysite级别.执行此操作时,出现指示
的错误
BC30002:未定义类型``MyWebservice.MyWebservice''.

MyWebService在web.config文件中定义. < add key ="MyWebService.MyWebservice" value ="http://someservice/thisservice/thisservice.asmx">

将应用程序"从c:\ mysite \ adam移至c:\ mysite之后,我没有修改web.config文件.

任何人都可以帮助我,为什么我会收到此错误消息?

谢谢

==============================================

我不确定通过使用web.config移动网站的其余部分"是什么意思.我只是将web.config文件在层次结构中上移了一层,并声明该层为应用程序".

是的,我正在使用IIS 6.0

如何设置IIS在新位置中查找web.config? mysite属性框中的ASP.NET选项卡指示web.config现在位于c:\ mysite

顺便说一句:所有此站点都配置有常规/旧的ASP.只有一小部分是asp.net.

===============================================
MyWebservice的定义如下:

Hello,

I have the following directory structure on my IIS web site c:\mysite\adam. Adam was configured as an ''application'' and contained web.config file in it. Now I have decided that I want to remove the adam application and instead create an ''Application'' on the mysite level. Hence I moved the web.config file to mysite level. When I do this, I get errors indicating

BC30002: Type ''MyWebservice.MyWebservice'' is not defined.

MyWebService is defined in web.config file. <add key="MyWebService.MyWebservice" value="http://someservice/thisservice/thisservice.asmx">

I did not modify the web.config file after I moved the ''application'' from c:\mysite\adam to c:\mysite.

Can anyone help me with why I am getting this error message?

Thanks

================================================

I am not sure what you mean by moving ''the rest of your site with the web.config''. I just moved the web.config file one level up in the heirarchy and declared that level as the ''application'' .

Yes I am using IIS 6.0

How do I set IIS to look for web.config in the new location? ASP.NET tab in mysite properties box indicates that web.config now lived in c:\mysite

BTW: All this site is configured with conventional/old ASP. Only small portions are asp.net.

=================================================
MyWebservice is defined as following:

<appSettings>
  <add key="MyWebservice.MyWebservice" value="http://docmgmt/docwebservice/docwebservice.asmx" />
</appSettings>



感谢



Thanks

推荐答案



这篇关于更改web.config位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:06