Upgrade to Vs 2008 does not work

Upgrade to Vs 2008 does not work

am 02.04.2008 20:20:46 von Courtney

Ok I copied a VS 2005 web site to another folder.

Open my new VS 2008. Attempt to run.

I get the following:

Error 1 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. C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config
21


The error points to :




This is not a virtual directory. I have one but it is attached to IIS7.0
and is used when I publish.

Any ideas??

Thanks
Lloyd Sheen

Re: Upgrade to Vs 2008 does not work

am 02.04.2008 20:26:22 von Courtney

"Lloyd Sheen" wrote in message
news:uwC6G5OlIHA.748@TK2MSFTNGP04.phx.gbl...
> Ok I copied a VS 2005 web site to another folder.
>
> Open my new VS 2008. Attempt to run.
>
> I get the following:
>
> Error 1 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. C:\Visual Studio Projects\Music Player Web
> Site\MusicSite\Web.config 21
>
>
> The error points to :
>
>
>

>
> This is not a virtual directory. I have one but it is attached to IIS7.0
> and is used when I publish.
>
> Any ideas??
>
> Thanks
> Lloyd Sheen

When I delete the above I now get the following errors:

Message 2 Could not find schema information for the element 'validation'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 62 4
C:\...\MusicSite\
Message 3 Could not find schema information for the attribute
'validateIntegratedModeConfiguration'. C:\Visual Studio Projects\Music
Player Web Site\MusicSite\Web.config 62 15 C:\...\MusicSite\
Message 4 Could not find schema information for the element 'modules'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 63 4
C:\...\MusicSite\
Message 5 Could not find schema information for the element 'add'. C:\Visual
Studio Projects\Music Player Web Site\MusicSite\Web.config 64 5
C:\...\MusicSite\
Message 6 Could not find schema information for the attribute 'name'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 64 9
C:\...\MusicSite\
Message 7 Could not find schema information for the attribute
'preCondition'. C:\Visual Studio Projects\Music Player Web
Site\MusicSite\Web.config 64 29 C:\...\MusicSite\
Message 8 Could not find schema information for the attribute 'type'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 64 59
C:\...\MusicSite\
Message 9 Could not find schema information for the element 'handlers'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 66 4
C:\...\MusicSite\
Message 10 Could not find schema information for the element 'remove'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 67 5
C:\...\MusicSite\
Message 11 Could not find schema information for the attribute 'name'.
C:\Visual Studio Projects\Music Player Web Site\MusicSite\Web.config 67 12
C:\...\MusicSite\


Things could not go much worse I think.

LS

Re: Upgrade to Vs 2008 does not work

am 02.04.2008 20:28:20 von George Ter-Saakov

You must configured fresh folder you created as an application in IIS
management console..

George.

"Lloyd Sheen" wrote in message
news:uwC6G5OlIHA.748@TK2MSFTNGP04.phx.gbl...
> Ok I copied a VS 2005 web site to another folder.
>
> Open my new VS 2008. Attempt to run.
>
> I get the following:
>
> Error 1 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. C:\Visual Studio Projects\Music Player Web
> Site\MusicSite\Web.config 21
>
>
> The error points to :
>
>
>

>
> This is not a virtual directory. I have one but it is attached to IIS7.0
> and is used when I publish.
>
> Any ideas??
>
> Thanks
> Lloyd Sheen

Re: Upgrade to Vs 2008 does not work

am 02.04.2008 20:48:25 von Courtney

"George Ter-Saakov" wrote in message
news:uW4JV9OlIHA.1280@TK2MSFTNGP05.phx.gbl...
> You must configured fresh folder you created as an application in IIS
> management console..
>
> George.
>
> "Lloyd Sheen" wrote in message
> news:uwC6G5OlIHA.748@TK2MSFTNGP04.phx.gbl...
>> Ok I copied a VS 2005 web site to another folder.
>>
>> Open my new VS 2008. Attempt to run.
>>
>> I get the following:
>>
>> Error 1 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. C:\Visual Studio Projects\Music Player Web
>> Site\MusicSite\Web.config 21
>>
>>
>> The error points to :
>>
>>
>>

>>
>> This is not a virtual directory. I have one but it is attached to IIS7.0
>> and is used when I publish.
>>
>> Any ideas??
>>
>> Thanks
>> Lloyd Sheen
>
>

I created a new folder (file system). I copied the contents of my VS 2005
web site (file system) to the new folder. At this point I cannot see what
relationship this has to IIS. If I "Publish" the site then I would use the
virtual folder which is configure as an application.

Until I get a working version in VS 2008 I see no relationship between my
(file system) web site and ISS.

If so what do I get rid of or change or ....????

Thanks
Lloyd Sheen

Re: Upgrade to Vs 2008 does not work

am 02.04.2008 21:53:16 von George Ter-Saakov

Are you saying that you using Filesystem type of project for your ASP.NET
application?
Cause the error points that you are using IIS. And with IIS virtual (or not
virtual) folder must be configured as an application if you planning to have
web.config there...

George.


"Lloyd Sheen" wrote in message
news:%234CyjIPlIHA.1184@TK2MSFTNGP04.phx.gbl...
>
> "George Ter-Saakov" wrote in message
> news:uW4JV9OlIHA.1280@TK2MSFTNGP05.phx.gbl...
>> You must configured fresh folder you created as an application in IIS
>> management console..
>>
>> George.
>>
>> "Lloyd Sheen" wrote in message
>> news:uwC6G5OlIHA.748@TK2MSFTNGP04.phx.gbl...
>>> Ok I copied a VS 2005 web site to another folder.
>>>
>>> Open my new VS 2008. Attempt to run.
>>>
>>> I get the following:
>>>
>>> Error 1 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. C:\Visual Studio Projects\Music Player Web
>>> Site\MusicSite\Web.config 21
>>>
>>>
>>> The error points to :
>>>
>>>
>>>

>>>
>>> This is not a virtual directory. I have one but it is attached to
>>> IIS7.0 and is used when I publish.
>>>
>>> Any ideas??
>>>
>>> Thanks
>>> Lloyd Sheen
>>
>>
>
> I created a new folder (file system). I copied the contents of my VS 2005
> web site (file system) to the new folder. At this point I cannot see what
> relationship this has to IIS. If I "Publish" the site then I would use
> the virtual folder which is configure as an application.
>
> Until I get a working version in VS 2008 I see no relationship between my
> (file system) web site and ISS.
>
> If so what do I get rid of or change or ....????
>
> Thanks
> Lloyd Sheen

Re: Upgrade to Vs 2008 does not work

am 02.04.2008 22:18:30 von Courtney

"George Ter-Saakov" wrote in message
news:uTKwysPlIHA.484@TK2MSFTNGP04.phx.gbl...
> Are you saying that you using Filesystem type of project for your ASP.NET
> application?
> Cause the error points that you are using IIS. And with IIS virtual (or
> not virtual) folder must be configured as an application if you planning
> to have web.config there...
>
> George.
>
>
> "Lloyd Sheen" wrote in message
> news:%234CyjIPlIHA.1184@TK2MSFTNGP04.phx.gbl...
>>
>> "George Ter-Saakov" wrote in message
>> news:uW4JV9OlIHA.1280@TK2MSFTNGP05.phx.gbl...
>>> You must configured fresh folder you created as an application in IIS
>>> management console..
>>>
>>> George.
>>>
>>> "Lloyd Sheen" wrote in message
>>> news:uwC6G5OlIHA.748@TK2MSFTNGP04.phx.gbl...
>>>> Ok I copied a VS 2005 web site to another folder.
>>>>
>>>> Open my new VS 2008. Attempt to run.
>>>>
>>>> I get the following:
>>>>
>>>> Error 1 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. C:\Visual Studio Projects\Music Player Web
>>>> Site\MusicSite\Web.config 21
>>>>
>>>>
>>>> The error points to :
>>>>
>>>>
>>>>

>>>>
>>>> This is not a virtual directory. I have one but it is attached to
>>>> IIS7.0 and is used when I publish.
>>>>
>>>> Any ideas??
>>>>
>>>> Thanks
>>>> Lloyd Sheen
>>>
>>>
>>
>> I created a new folder (file system). I copied the contents of my VS
>> 2005 web site (file system) to the new folder. At this point I cannot
>> see what relationship this has to IIS. If I "Publish" the site then I
>> would use the virtual folder which is configure as an application.
>>
>> Until I get a working version in VS 2008 I see no relationship between my
>> (file system) web site and ISS.
>>
>> If so what do I get rid of or change or ....????
>>
>> Thanks
>> Lloyd Sheen
>
>

Yes I am using filesystem not IIS. The project (2005) is filesystem but has
a publish which sends it to IIS.

LS

Re: Upgrade to Vs 2008 does not work

am 02.04.2008 23:05:04 von Courtney

"Lloyd Sheen" wrote in message
news:%23N3w56PlIHA.1680@TK2MSFTNGP06.phx.gbl...
>
> "George Ter-Saakov" wrote in message
> news:uTKwysPlIHA.484@TK2MSFTNGP04.phx.gbl...
>> Are you saying that you using Filesystem type of project for your ASP.NET
>> application?
>> Cause the error points that you are using IIS. And with IIS virtual (or
>> not virtual) folder must be configured as an application if you planning
>> to have web.config there...
>>
>> George.
>>
>>
>> "Lloyd Sheen" wrote in message
>> news:%234CyjIPlIHA.1184@TK2MSFTNGP04.phx.gbl...
>>>
>>> "George Ter-Saakov" wrote in message
>>> news:uW4JV9OlIHA.1280@TK2MSFTNGP05.phx.gbl...
>>>> You must configured fresh folder you created as an application in IIS
>>>> management console..
>>>>
>>>> George.
>>>>
>>>> "Lloyd Sheen" wrote in message
>>>> news:uwC6G5OlIHA.748@TK2MSFTNGP04.phx.gbl...
>>>>> Ok I copied a VS 2005 web site to another folder.
>>>>>
>>>>> Open my new VS 2008. Attempt to run.
>>>>>
>>>>> I get the following:
>>>>>
>>>>> Error 1 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. C:\Visual Studio Projects\Music Player Web
>>>>> Site\MusicSite\Web.config 21
>>>>>
>>>>>
>>>>> The error points to :
>>>>>
>>>>>
>>>>>

>>>>>
>>>>> This is not a virtual directory. I have one but it is attached to
>>>>> IIS7.0 and is used when I publish.
>>>>>
>>>>> Any ideas??
>>>>>
>>>>> Thanks
>>>>> Lloyd Sheen
>>>>
>>>>
>>>
>>> I created a new folder (file system). I copied the contents of my VS
>>> 2005 web site (file system) to the new folder. At this point I cannot
>>> see what relationship this has to IIS. If I "Publish" the site then I
>>> would use the virtual folder which is configure as an application.
>>>
>>> Until I get a working version in VS 2008 I see no relationship between
>>> my (file system) web site and ISS.
>>>
>>> If so what do I get rid of or change or ....????
>>>
>>> Thanks
>>> Lloyd Sheen
>>
>>
>
> Yes I am using filesystem not IIS. The project (2005) is filesystem but
> has a publish which sends it to IIS.
>
> LS

Ok now it seems that somehow I managed to convince VS 2008 that my folder
structure required that the top level folder was the solution. Now the
original solution contained the web site and a project with the DAL. Simply
creating a new folder with the web site folder and the DAL folder did not
work and all the references were totally out of wack.

What I had to do was delete all this so that VS 2008 told me it could not
find it and then recopy the two folders under a general folder I have
created for VS projects.

I could then open the web site and add an existing project (DAL). This
brings things back to "normal"

LS