Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

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


Thanks
Posted
Updated 12-Mar-12 3:23am
v4
Comments
PopeDarren 9-Mar-12 15:25pm    
Did you move the rest of your site with the web.config? Are you using IIS? Did you set IIS to look for the "application" in the new directory?
Member 8702062 12-Mar-12 9:24am    
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.
Mahmud Hasan 10-Mar-12 16:50pm    
How did you define MyWebService in your web.config?
Member 8702062 12-Mar-12 9:24am    
MyWebservice is defined as following:

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

Thanks

Cause for this error occurs when a migrated application has an existing “Shared” folder. If you attempt to add new pages to enhance the role based security feature, you may be denied access to the Shared folder. This approach was implemented to avoid circular dependency problems that might arise when controls and pages referring to these controls are in the same folder.

Create a new folder called “Security” and move your Sign In and Sign Out web pages to this folder before adding any customizations to them.
 
Share this answer
 
Comments
Member 8702062 12-Mar-12 16:52pm    
Is this answer in response to my question above? I not able to use a reference declared in web.config file?
Alternative is that it has something to do with the asp.net worker process not having the correct access rights on the server. So its trying to load an assembly and is being denied.

MSDN reference http://msdn.microsoft.com/en-us/library/aa302435.aspx[^] Table 19.3 for a list of all the folders the worker process account must have access to in order to function. And don't forget to give it rights to all files and folders in your virtual directory!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900