4
Answers

allowDefinition='MachineToApplication'

Sunil Rawat

Sunil Rawat

9y
1.1k
1
Hello Friends
I am maintaining a project in visual studio 4.0 . When i am trying to build a solution of project. It is throwing an error.
"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."
I have made virtual directory in IIS . Still i am getting same error. Please help me to resolve this problem..
Answers (4)
0
swilkinson

swilkinson

NA 48 0 20y
The client machines NEEDS the .net framework that your app was written with. You can get the resistibutable here http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en Install this and you should just be able to copy the exe onto the client and it will run. You can deploy it if you wish to have the add/remove program stuff. To do this in VS.Pro (sorry have not seen standard so it might not help). Start a new project and select setup and deployment and pick setup project. Then add the built exe you wish to deploy, you can also add registry and shortcust stuff with this windows installer project. The only thing I could not get it to do was to install the framework (something to do with windows installer using it!?!). We had to switch to install sheild and write a proper setup to bundle it in. Cheers, Si