473,378 Members | 1,382 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,378 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 10295
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:...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.