Ask a Question related to ASP.NET General, Design and Development.
-
Mike S #1
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
Mike S Guest
-
CFINPUT type="radio" w/ "value" requires "label"
On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'... -
#25348 [Opn->Csd]: make install: "parse error"
ID: 25348 Updated by: sniper@php.net Reported By: rjmooney at lsb dot syr dot edu -Status: Open +Status: ... -
#25348 [NEW]: make install: "parse error"
From: rjmooney at lsb dot syr dot edu Operating system: OpenBSD 3.2 PHP version: 4.3.3 PHP Bug Type: Reproducible crash Bug... -
could not load type "_default"
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... -
HELP: I got a "Parse error" when try to get data from form
I got a "Parse error: parse error in ..." in this line: if(empty($_POST){ ..... But if I fist assign $ssn=$_POST; and then if(empty($ssn){ ...... -
Mike S #2
Re: Parse error: "could not load type"
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" <john.saunders@surfcontrol.com> wrote in message news:<up4$08sVDHA.3924@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
> [email]john.saunders@surfcontrol.com[/email]
>
> "Mike S" <cmsuser@hotmail.com> wrote in message
> news:c2e26e6b.0307300709.40f49fe2@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.
> >
> > ThanksMike S Guest
-
John Saunders #3
Re: Parse error: "could not load type"
Mike, I'd first suggest you check in the documentation on "Code Access
Security".
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/THCMCh09.asp[/url]
looks interesting, and applies to ASP.NET.
--
John Saunders
Internet Engineer
[email]john.saunders@surfcontrol.com[/email]
"Mike S" <cmsuser@hotmail.com> wrote in message
news:c2e26e6b.0307310528.54f968a8@posting.google.c om...news:<up4$08sVDHA.3924@tk2msftngp13.phx.gbl>...> 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" <john.saunders@surfcontrol.com> wrote in messageissue> > Mike,
> >
> > I haven't tried this with ASP.NET applications, but perhaps this is anzone,> > with Code Access Security? If this were a Windows Forms application, for
> > instance, the assembly containing your type would be in a different> > with less trust than if it had come from a local disk.
> > --
> > John Saunders
> > Internet Engineer
> > [email]john.saunders@surfcontrol.com[/email]
> >
> > "Mike S" <cmsuser@hotmail.com> wrote in message
> > news:c2e26e6b.0307300709.40f49fe2@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
John Saunders Guest
-
Mike S #4
Re: Parse error: "could not load type"
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
Mike S Guest
-
Mike S #5
Re: Parse error: "could not load type"
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" <john.saunders@surfcontrol.com> wrote in message news:<#1rJbJEWDHA.2212@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
> [email]john.saunders@surfcontrol.com[/email]
>
>
>
> "Mike S" <cmsuser@hotmail.com> wrote in message
> news:c2e26e6b.0308010715.60d1eeee@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 SMike S Guest



Reply With Quote

