Advertisement

07.03.2008 at 01:06PM PDT, ID: 23538051
[x]
Attachment Details

problem with web form not running on web server. Compiles ok in visual Studio

Asked by cds-studio in Programming for ASP.NET, C# Programming Language

Tags: , , , ,

Hi,
I have a web form (c#) in asp.net v2. It uses user controls in the controls folder, and namespaces of classes in the App_Code folder in subfolders.

The application compiles fine in Visual Studio 2005, but when I upload it to the webserver, I get the error:

Error:500 >>> System.Web.HttpParseException: d:\websites\bree20\www\MODULES\COMBINED\leedsmental_COMBINEDmoduleASPX\admin3\controls\adminlist.ascx.cs(32): error CS0246: The type or namespace name 'stringlibclass' could not be found (are you missing a using directive or an assembly reference?)

I have tried adding codeSubDirectories and Assemblies to the the web.config file but this doesn't work.

I have also tried adding @Assembly directives to the asp.net files but this doesn't solve it either.

The problem seems to be that the code in the controls folder doesn't access the code in the App_Code subfolders when on the webserver.

Does anyone have any suggestions?
Thanks
Martin Start Free Trial
[+][-]07.03.2008 at 11:12PM PDT, ID: 21931253

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 11:23PM PDT, ID: 21931277

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 02:08AM PDT, ID: 21931848

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 11:51PM PDT, ID: 21936149

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.28.2008 at 07:39AM PDT, ID: 22591219

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.29.2008 at 12:17PM PDT, ID: 22599629

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.02.2008 at 02:29PM PDT, ID: 22628910

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, C# Programming Language
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628