I get this 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'll be very grateful if someone can help me. Thanks!
c# & asp.net error
Page 1 of 19 Replies - 352 Views - Last Post: 25 March 2011 - 03:47 PM
Replies To: c# & asp.net error
#2
Re: c# & asp.net error
Posted 22 March 2011 - 02:35 PM
Quote
This error can be caused by a virtual directory not being configured as an application in IIS.
That explains the exact problem. Configure the virtual directory as an application.
#3
Re: c# & asp.net error
Posted 22 March 2011 - 02:41 PM
#4
Re: c# & asp.net error
Posted 22 March 2011 - 02:53 PM
What have you tried? I don't want to sound unhelpful, but have you put any effort into this at all?
For that matter, you haven't even given us enough info to solve the problem. What version of IIS are you deploying this application to?
For that matter, you haven't even given us enough info to solve the problem. What version of IIS are you deploying this application to?
#5
Re: c# & asp.net error
Posted 22 March 2011 - 03:09 PM
insertAlias, on 22 March 2011 - 11:53 PM, said:
What have you tried? I don't want to sound unhelpful, but have you put any effort into this at all?
For that matter, you haven't even given us enough info to solve the problem. What version of IIS are you deploying this application to?
For that matter, you haven't even given us enough info to solve the problem. What version of IIS are you deploying this application to?
I've tried this http://msdn.microsof...y/zwk103ab.aspx but i can't do the second and the third steps for "configuring the virtual directory". I use IIS 7.
This post has been edited by edwin g: 22 March 2011 - 03:10 PM
#6
Re: c# & asp.net error
Posted 22 March 2011 - 03:15 PM
Well, of course that's not going to work, if you're using IIS 7. The title is
Right-click on the Virtual Directory in IIS that you deployed to, and click "Convert to Application".
Quote
How to: Create and Configure Virtual Directories in IIS 5.0 and 6.0
Right-click on the Virtual Directory in IIS that you deployed to, and click "Convert to Application".
This post has been edited by insertAlias: 22 March 2011 - 03:15 PM
#7
Re: c# & asp.net error
Posted 22 March 2011 - 03:15 PM
edwin g, on 23 March 2011 - 12:09 AM, said:
insertAlias, on 22 March 2011 - 11:53 PM, said:
What have you tried? I don't want to sound unhelpful, but have you put any effort into this at all?
For that matter, you haven't even given us enough info to solve the problem. What version of IIS are you deploying this application to?
For that matter, you haven't even given us enough info to solve the problem. What version of IIS are you deploying this application to?
I've tried this http://msdn.microsof...y/zwk103ab.aspx but i can't do the second and the third steps for "configuring the virtual directory". I use IIS 7.
If is more useful i have an website. In the project directory i have an web.config file. Also in this directory i have another directory(a cms) where is also an web.config file. I found on the internet that this might be the problem and of course the solution is to have a single web.config file in the project main directory. But i need the second web.config file because i make the authentication with a form file.
#8
Re: c# & asp.net error
Posted 22 March 2011 - 03:26 PM
Ok, you don't have to quote the entire previous post every time you post.
And also, I'm just not sure what you're saying. If you're making this project a subsite of another project, then you have to conform to certain rules. The web.configs do cascade, but you can't, for example, set the authorization mode differently. Unless you make it an application. Convert the child site, not the parent site, to an application. And then they can live together.
And also, I'm just not sure what you're saying. If you're making this project a subsite of another project, then you have to conform to certain rules. The web.configs do cascade, but you can't, for example, set the authorization mode differently. Unless you make it an application. Convert the child site, not the parent site, to an application. And then they can live together.
#9
Re: c# & asp.net error
Posted 23 March 2011 - 04:06 AM
how can i do that in visual studio. i need to do this in visual studio not in IIS
#10
Re: c# & asp.net error
Posted 25 March 2011 - 03:47 PM
Have you tried putting this code in web.config ??
You can follow this link
http://www.shabdar.o...ion-in-iis.html
< authentication mode="None" />
You can follow this link
http://www.shabdar.o...ion-in-iis.html
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|