Parse error: "could not load type"

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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'...
    2. #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: ...
    3. #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...
    4. 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...
    5. 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){ ......
  3. #2

    Default 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.
    > >
    > > Thanks
    Mike S Guest

  4. #3

    Default 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...
    > 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.
    > > >
    > > > Thanks

    John Saunders Guest

  5. #4

    Default 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

  6. #5

    Default 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 S
    Mike S Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139