473,414 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Help! - Could not load type error

I am hoping this is a simple problem for someone. We have two development
servers, DEVNET (a web server) and DEVSQL (a DB / File Server). We have
recently moved all of our .NET source code from an old server to DEVSQL,
where it compiles beautifully. We have an application with several
projects. One of them (Pages) has all of the ASPX files, the Global.asax
file, etc. in it. The other projects in the solution are made up of the C#
files for the business logic. When attempting to run the application, we
receive the following error:

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'EGG.Yeoman.Pages.Global'.

Source Error:
Line 1: <%@ Application CodeBehind="Global.asax.cs"
Inherits="EGG.Yeoman.Pages.Global" %>

Source File: \\devsql\Source Code\Solutions\EGG.Yeoman.Pages\global.asax
Line: 1

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

I have tried every approach found in the various news groups I have
searched. The standard (and as far as I can tell only) Microsoft answer
(recompile) does NOT solve the problem. The appropriate DLLs are ALL
included in the \bin subdirectory of the IIS virtual directory.

Anyone have any ideas? Is this a problem caused by creating the virtual
directory with a UNC path to its actual content? If so, is it possible to
host an ASP.NET application from a virtual directory with a UNC path to a
different physical server?

Paul
Nov 18 '05 #1
5 1408
Hi Paul:

You hit upon the problem in the second paragraph.
I have tried every approach found in the various news groups I have
searched. The standard (and as far as I can tell only) Microsoft answer
(recompile) does NOT solve the problem. The appropriate DLLs are ALL
included in the \bin subdirectory of the IIS virtual directory.

Anyone have any ideas? Is this a problem caused by creating the virtual
directory with a UNC path to its actual content? If so, is it possible to
host an ASP.NET application from a virtual directory with a UNC path to a
different physical server?


There are two obstacles to overcome when pointing a vdir to a UNC
share and trying to run an ASP.NET web app.

The first obstacle happens because a web app must run in "full trust"
mode, and .NET does not fully trust an assembly on a remote machine
unless you tell it to. Go to the Microsoft .NET Framework Wizards in
Administrative Tools and walk through the steps for "Trust an
Assembly".

Secondly, the web app has to be able to read the files on the remote
share. If the web app is running under the ASPNET account you could
duplicate the account on the second machine and synchronize the
passwords, or run your web app under a "least privileged" domain
account.

HTH,

--
Scott
http://www.OdeToCode.com
Nov 18 '05 #2
Scott,

Thank you for the information. This looks very promising. Our network administrator and I did some additional research, though, and I have another question. Is using a UNC path for the virtual directory's content compatible with using impersonation / delegation in the ASP.NET application. A presentation we found by Erik Olson form MSDN TV seemed to suggest that impersonation would not work in this case. What are the implications for using impersonation when the content of the application's virtual directory is found on a UNC share?

"Scott Allen" wrote:
Hi Paul:

You hit upon the problem in the second paragraph.
I have tried every approach found in the various news groups I have
searched. The standard (and as far as I can tell only) Microsoft answer
(recompile) does NOT solve the problem. The appropriate DLLs are ALL
included in the \bin subdirectory of the IIS virtual directory.

Anyone have any ideas? Is this a problem caused by creating the virtual
directory with a UNC path to its actual content? If so, is it possible to
host an ASP.NET application from a virtual directory with a UNC path to a
different physical server?


There are two obstacles to overcome when pointing a vdir to a UNC
share and trying to run an ASP.NET web app.

The first obstacle happens because a web app must run in "full trust"
mode, and .NET does not fully trust an assembly on a remote machine
unless you tell it to. Go to the Microsoft .NET Framework Wizards in
Administrative Tools and walk through the steps for "Trust an
Assembly".

Secondly, the web app has to be able to read the files on the remote
share. If the web app is running under the ASPNET account you could
duplicate the account on the second machine and synchronize the
passwords, or run your web app under a "least privileged" domain
account.

HTH,

--
Scott
http://www.OdeToCode.com

Nov 18 '05 #3
Scott,

Thank you for the information. This looks very promising. Our network administrator and I did some additional research, though, and I have another question. Is using a UNC path for the virtual directory's content compatible with using impersonation / delegation in the ASP.NET application. A presentation we found by Erik Olson form MSDN TV seemed to suggest that impersonation would not work in this case. What are the implications for using impersonation when the content of the application's virtual directory is found on a UNC share?

"Scott Allen" wrote:
Hi Paul:

You hit upon the problem in the second paragraph.
I have tried every approach found in the various news groups I have
searched. The standard (and as far as I can tell only) Microsoft answer
(recompile) does NOT solve the problem. The appropriate DLLs are ALL
included in the \bin subdirectory of the IIS virtual directory.

Anyone have any ideas? Is this a problem caused by creating the virtual
directory with a UNC path to its actual content? If so, is it possible to
host an ASP.NET application from a virtual directory with a UNC path to a
different physical server?


There are two obstacles to overcome when pointing a vdir to a UNC
share and trying to run an ASP.NET web app.

The first obstacle happens because a web app must run in "full trust"
mode, and .NET does not fully trust an assembly on a remote machine
unless you tell it to. Go to the Microsoft .NET Framework Wizards in
Administrative Tools and walk through the steps for "Trust an
Assembly".

Secondly, the web app has to be able to read the files on the remote
share. If the web app is running under the ASPNET account you could
duplicate the account on the second machine and synchronize the
passwords, or run your web app under a "least privileged" domain
account.

HTH,

--
Scott
http://www.OdeToCode.com

Nov 18 '05 #4
Paul:

That could be another problem. I've never tried running off a UNC
share with impersonation, but you might be running into the "two-hop"
rule, where the user can be impersonated on the web server, but the
web server cannot use that security context to access network
resources without some configuration, specifically you have to set up
Kerberos.

This KB article has some more info:
http://support.microsoft.com/default.aspx?kbid=810572

On Tue, 6 Jul 2004 06:12:01 -0700, "Paul"
<Pa**@discussions.microsoft.com> wrote:
Scott,

Thank you for the information. This looks very promising. Our network administrator and I did some additional research, though, and I have another question. Is using a UNC path for the virtual directory's content compatible with using impersonation / delegation in the ASP.NET application. A presentation we found by Erik Olson form MSDN TV seemed to suggest that impersonation would not work in this case. What are the implications for using impersonation when the content of the application's virtual directory is found on a UNC share?

"Scott Allen" wrote:
Hi Paul:

You hit upon the problem in the second paragraph.
>I have tried every approach found in the various news groups I have
>searched. The standard (and as far as I can tell only) Microsoft answer
>(recompile) does NOT solve the problem. The appropriate DLLs are ALL
>included in the \bin subdirectory of the IIS virtual directory.
>
>Anyone have any ideas? Is this a problem caused by creating the virtual
>directory with a UNC path to its actual content? If so, is it possible to
>host an ASP.NET application from a virtual directory with a UNC path to a
>different physical server?
>


There are two obstacles to overcome when pointing a vdir to a UNC
share and trying to run an ASP.NET web app.

The first obstacle happens because a web app must run in "full trust"
mode, and .NET does not fully trust an assembly on a remote machine
unless you tell it to. Go to the Microsoft .NET Framework Wizards in
Administrative Tools and walk through the steps for "Trust an
Assembly".

Secondly, the web app has to be able to read the files on the remote
share. If the web app is running under the ASPNET account you could
duplicate the account on the second machine and synchronize the
passwords, or run your web app under a "least privileged" domain
account.

HTH,

--
Scott
http://www.OdeToCode.com


--
Scott
http://www.OdeToCode.com
Nov 18 '05 #5
Paul:

That could be another problem. I've never tried running off a UNC
share with impersonation, but you might be running into the "two-hop"
rule, where the user can be impersonated on the web server, but the
web server cannot use that security context to access network
resources without some configuration, specifically you have to set up
Kerberos.

This KB article has some more info:
http://support.microsoft.com/default.aspx?kbid=810572

On Tue, 6 Jul 2004 06:12:01 -0700, "Paul"
<Pa**@discussions.microsoft.com> wrote:
Scott,

Thank you for the information. This looks very promising. Our network administrator and I did some additional research, though, and I have another question. Is using a UNC path for the virtual directory's content compatible with using impersonation / delegation in the ASP.NET application. A presentation we found by Erik Olson form MSDN TV seemed to suggest that impersonation would not work in this case. What are the implications for using impersonation when the content of the application's virtual directory is found on a UNC share?

"Scott Allen" wrote:
Hi Paul:

You hit upon the problem in the second paragraph.
>I have tried every approach found in the various news groups I have
>searched. The standard (and as far as I can tell only) Microsoft answer
>(recompile) does NOT solve the problem. The appropriate DLLs are ALL
>included in the \bin subdirectory of the IIS virtual directory.
>
>Anyone have any ideas? Is this a problem caused by creating the virtual
>directory with a UNC path to its actual content? If so, is it possible to
>host an ASP.NET application from a virtual directory with a UNC path to a
>different physical server?
>


There are two obstacles to overcome when pointing a vdir to a UNC
share and trying to run an ASP.NET web app.

The first obstacle happens because a web app must run in "full trust"
mode, and .NET does not fully trust an assembly on a remote machine
unless you tell it to. Go to the Microsoft .NET Framework Wizards in
Administrative Tools and walk through the steps for "Trust an
Assembly".

Secondly, the web app has to be able to read the files on the remote
share. If the web app is running under the ASPNET account you could
duplicate the account on the second machine and synchronize the
passwords, or run your web app under a "least privileged" domain
account.

HTH,

--
Scott
http://www.OdeToCode.com


--
Scott
http://www.OdeToCode.com
Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
0
by: tbatwork828 | last post by:
If you were like me trying to figure out how to launch context sensitive help topic by the context id, here is the link: http://weblogs.asp.net/kencox/archive/2004/09/12/228349.aspx and if...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
4
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
3
by: lord.zoltar | last post by:
I've managed to get a nice little chm help system written. Now I need to display it! I added a HelpProvider to my MDIParent form and set the namespace of the HelpProvider to be the help file. So...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.