473,289 Members | 1,839 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,289 software developers and data experts.

Parse error: "could not load type"

I'm hoping someone can explain the following.

I have installed Visual Studio 2003. Setup several web application
projects, compliled and ran them with no problem. All of this was
accomplished with my local server. The default or root directory for
my local IIS server is my "C:\" drive. (c:\inetpub\wwwroot)

Now I would like to change my root or default directory for my local
IIS server to be a network drive (x:\inputpub\wwwroot). (This will
gaurantee me daily backups). After changing the directory property
for my local IIS server (and running IISRESET) I created a new Visual
Studio web application just like before, no problem. I put a single
line of static text on the form and then "built" the solution, just
like before. However, when I try to view the application in my
browser I get the following error.

Parser Error Message: Could not load type 'testproject4.Global'.

I don't understand why pointing the directory to a network drive would
cause the application to act differently. I have full rights to the
network drive. I can create, modify and delete files in that
directory.

Any help with this problem would be appreciated.

Thanks
Nov 17 '05 #1
4 10291
Thanks for you response.

The application is a web application consisting of a single aspx page
with 1 line of static text.

I'm not sure I understand your theory. Would this still hold true for
a web application? What specifically should I be checking for in
terms of security settings? Recall, I have full rights to the network
shared drive that I am refering to.

Any suggestions would be appreciated.

Mike S

"John Saunders" <jo***********@surfcontrol.com> wrote in message news:<up**************@tk2msftngp13.phx.gbl>...
Mike,

I haven't tried this with ASP.NET applications, but perhaps this is an issue
with Code Access Security? If this were a Windows Forms application, for
instance, the assembly containing your type would be in a different zone,
with less trust than if it had come from a local disk.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"Mike S" <cm*****@hotmail.com> wrote in message
news:c2**************************@posting.google.c om...
I'm hoping someone can explain the following.

I have installed Visual Studio 2003. Setup several web application
projects, compliled and ran them with no problem. All of this was
accomplished with my local server. The default or root directory for
my local IIS server is my "C:\" drive. (c:\inetpub\wwwroot)

Now I would like to change my root or default directory for my local
IIS server to be a network drive (x:\inputpub\wwwroot). (This will
gaurantee me daily backups). After changing the directory property
for my local IIS server (and running IISRESET) I created a new Visual
Studio web application just like before, no problem. I put a single
line of static text on the form and then "built" the solution, just
like before. However, when I try to view the application in my
browser I get the following error.

Parser Error Message: Could not load type 'testproject4.Global'.

I don't understand why pointing the directory to a network drive would
cause the application to act differently. I have full rights to the
network drive. I can create, modify and delete files in that
directory.

Any help with this problem would be appreciated.

Thanks

Nov 17 '05 #2
Mike, I'd first suggest you check in the documentation on "Code Access
Security".
http://msdn.microsoft.com/library/de...l/THCMCh09.asp
looks interesting, and applies to ASP.NET.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"Mike S" <cm*****@hotmail.com> wrote in message
news:c2**************************@posting.google.c om...
Thanks for you response.

The application is a web application consisting of a single aspx page
with 1 line of static text.

I'm not sure I understand your theory. Would this still hold true for
a web application? What specifically should I be checking for in
terms of security settings? Recall, I have full rights to the network
shared drive that I am refering to.

Any suggestions would be appreciated.

Mike S

"John Saunders" <jo***********@surfcontrol.com> wrote in message

news:<up**************@tk2msftngp13.phx.gbl>...
Mike,

I haven't tried this with ASP.NET applications, but perhaps this is an issue with Code Access Security? If this were a Windows Forms application, for
instance, the assembly containing your type would be in a different zone, with less trust than if it had come from a local disk.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"Mike S" <cm*****@hotmail.com> wrote in message
news:c2**************************@posting.google.c om...
I'm hoping someone can explain the following.

I have installed Visual Studio 2003. Setup several web application
projects, compliled and ran them with no problem. All of this was
accomplished with my local server. The default or root directory for
my local IIS server is my "C:\" drive. (c:\inetpub\wwwroot)

Now I would like to change my root or default directory for my local
IIS server to be a network drive (x:\inputpub\wwwroot). (This will
gaurantee me daily backups). After changing the directory property
for my local IIS server (and running IISRESET) I created a new Visual
Studio web application just like before, no problem. I put a single
line of static text on the form and then "built" the solution, just
like before. However, when I try to view the application in my
browser I get the following error.

Parser Error Message: Could not load type 'testproject4.Global'.

I don't understand why pointing the directory to a network drive would
cause the application to act differently. I have full rights to the
network drive. I can create, modify and delete files in that
directory.

Any help with this problem would be appreciated.

Thanks

Nov 17 '05 #3
John,

Thanks for the suggestion. At first glance of the article, it looks
like I'm already running in "FULL" access mode. I'll continue to dig.

Thanks again,

Mike S
Nov 17 '05 #4
John,

THANK YOU !!! Thanks for working through this problem with me. I
appreciate it.

Your suggestions and recommendation solved the problem. I ran the
configuration utility that you mentioned and changed the security
level of the "local intranet zone" to "full access". (Based on my
environment, this level is acceptable.)

For others who may want to know, the steps I went through were:

1) run ".NET Framework Configuration Utility" (under programs->admin
tools)
2) select "Runtime Security Policy" (left side of dialog)
3) select "Adjust Zone Security" (right side of dialog)
4) select "Local Intranet Zone"
5) adjust mode to "Full Access" (for me this was appropriate)

After making these changes I was able to run the app from a network
share. I am also able to step through and debug the application as
well.

NOTE: The one thing that I noticed was that if I changed the security
for a specific assembly (by name) those changes were lost when I
rebuilt the solution. So my recommendation would be to change the
settings at a higher level than a specific assembly, unless it is your
final build.
Thanks again John for all your help.

Mike S

"John Saunders" <jo***********@surfcontrol.com> wrote in message news:<#1**************@TK2MSFTNGP12.phx.gbl>...
Mike, if the .dlls are coming from a network share, they probably do NOT
have full access. I believe such assemblies are in the Local Intranet zone.

Take a look at ".Net Framework Configuration" in "Administrative Tools'
under "Control Panel". You could grant full rights to the specific
assemblies you care about.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"Mike S" <cm*****@hotmail.com> wrote in message
news:c2**************************@posting.google.c om...
John,

Thanks for the suggestion. At first glance of the article, it looks
like I'm already running in "FULL" access mode. I'll continue to dig.

Thanks again,

Mike S

Nov 17 '05 #5

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

Similar topics

3
by: Brian Fulford | last post by:
I am trying to deploy a web app with a deployment project since I am including Crystal Reports for .Net. I attached all the merge modules, etc but I am getting a build error when I try to build...
3
by: stash | last post by:
Help - Please! I am trying to run the V8 db2setup script *again* (maybe for the third or fourth time) and it will not re-create the sqllib directory. It always stops with this error: ERROR:Could...
0
by: M | last post by:
Hi There, I am having lot of trouble getting out the ASP.NET "dll hell", i hope i can find the help here. i have coded a simple page using Visual Studio compiled it. keep on getting works on my...
4
by: Andy Sutorius | last post by:
Hi, I have a folder with a web.config file using forms authentication thus requiring that folder to be an IIS application. When I attempt to visit a webpage in that folder, default.aspx, I...
8
by: eminemence | last post by:
Hi, I have been trying to get STLPort work for Symbian. I am using CodeWarrior compiler and it spews this errors namely *************************************************************************...
3
by: tony | last post by:
Hello! When I build an exe file that use 6 class library dll I get this error. Could not copy temporary files to the output directory. The file 'MeltPracStorage.dll' cannot be copied to the run...
4
by: bob95226 | last post by:
Hi All, I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to re-compile it with command line compiler vbc.exe like this: vbc /t:library /out:my_control.dll my_control.vb However...
1
by: amindi | last post by:
Hi, I wrote a VB6 program to read some data records from a Ms Access database and to write them into a SQL server database.(I use Ms Access 2000 and SQL server 2000).After reading each record in...
0
by: Jon Paal | last post by:
error : "Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'." using VWD 2005 with sqlexpress 2005 I am trying to create membership roles and users......
0
by: =?Utf-8?B?eHl6X2phdA==?= | last post by:
I have a winodws service which sends email using Domino. The service is installed using System Account but it is not able to send emails and gives following error - Error Message: Notes error:...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.