At one point, I had the QuickStart tutorials installed correctly on my
Windows 2000 Server machine, and I could access them by going to, for
example:
http://bennett2win2k/quickstart/aspplus/samples/portal/VB/default.aspx
But then I had to re-install Windows 2000 Server on that machine.
After I did, I reinstalled all components of Visual Basic .Net from
the CDs, including the .NET Framework SDK, whose description in the
install wizard says "The SDK also includes tools, QuickStarts,
tutorials, and samples." But after I installed it, the URL above
still would not work. How do I get the URLs for the QuickStart
tutorials working again?
I realized that the
C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\Samples\QuickStart
directory had not been automatically Web-shared, so I made it a Web
share with the name "quickstart". After I did that, I could view URLs
such as this with no errors:
http://bennett2win2k/quickstart/aspplus/doc/portalapp.aspx
but when I try to view the sample application at:
http://bennett2win2k/quickstart/aspplus/samples/portal/VB/default.aspx
I get the error:
>>>>>
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.
Source Error:
Line 12: <allow users="*" /> <!-- Allow all (other) users -->
Line 13: </authorization>
Line 14: <authentication mode="Forms" />
Line 15:
Line 16: <httpModules>
>>>>>
If I go to Internet Services Manager and right-click the listing for
"quickstart" under "Default Web site", it says "Application name:
quickstart", among other settings. So I don't know if the error has
something to do with the "virtual directory not being configured as an
application in IIS".
I seem to remember that the last time I set up the QuickStart
tutorials on the Windows 2000 Server machine, I didn't have to mess
around with configuring any virtual directories. That leaves me to
think that the QuickStart tutorials, and the virtual directories they
reside in, were originally configured by some installation program.
What is it that you have to install to get the QuickStart tutorials
set up and working?
I also tried downloading and installing the full .Net Framework 1.1
and .Net Framework SDK 1.1 from www.asp.net, but that didn't work
either, i.e. the C:\Program Files\Microsoft.NET\SDK\v1.1\QuickStart
directory that got created, was not automatically Web-shared, and when
I did Web-share it, I got the same error as above.
-Bennett |
Clarification of Question by
bennetthaselton-ga
on
04 Jun 2003 01:19 PDT
There was no web.config file in the C:\Program Files\Microsoft Visual
Studio .NET\FrameworkSDK\Samples\QuickStart\aspplus\samples\portal\VB\
directory, but there was a web.config file in the "portal" directory
one level higher. So, I went in to Internet Services Manager, browsed
to "Default Web Site\quickstart" to see the application I'd already
created, expanded the "quickstart" node and browsed to:
\quickstart\aspplus\samples\portal
and then right-clicked on that, picked Properties, and clicked
"Create" next to Application Name, to create an application named
"portal" at that root. However, after doing this, I still get the
same error as before when going to:
http://bennett2win2k/quickstart/aspplus/samples/portal/VB/default.aspx
On the other hand, if I delete that "portal" application, and then
just right-click Default Web Site in Internet Services Manager, and
create a new Virtual Directory with the alias "portal" that maps to
"C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\Samples\QuickStart\aspplus\samples\portal", then by
right-clicking on that virtual directory I can see that it says
"Application Name: portal", but then if I go to
http://bennett2win2k/portal/VB/default.aspx
I get the error message:
>>>
Parser Error Message: File or assembly name Personalization, or one of
its dependencies, was not found.
Source Error:
Line 15:
Line 16: <httpModules>
Line 17: <add name="Portal Personalization"
type="Personalization.UserStateModule,Personalization" />
Line 18: </httpModules>
Line 19:
>>>
I am pretty positive that the first time the QuickStart tutorials were
installed, the URL
http://bennett2win2k/quickstart/aspplus/samples/portal/VB/default.aspx
worked without me having to do any additional configuration of virtual
directories and things like that. If I just re-install the tutorials,
I'll bet they'll just work, but how do you re-install them so that
they automatically become available on the Web server where they're
installed?
-Bennett
|