9 Replies - 532 Views - Last Post: 25 March 2011 - 03:47 PM Rate Topic: -----

#1 edwin g  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 18-August 10

c# & asp.net error

Posted 22 March 2011 - 02:33 PM

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!
Is This A Good Question/Topic? 0
  • +

Replies To: c# & asp.net error

#2 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4312
  • View blog
  • Posts: 7,467
  • Joined: 08-June 10

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.
Was This Post Helpful? 0
  • +
  • -

#3 edwin g  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 18-August 10

Re: c# & asp.net error

Posted 22 March 2011 - 02:41 PM

View PostinsertAlias, on 22 March 2011 - 11:35 PM, said:

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.



How can i do that?
Was This Post Helpful? 0
  • +
  • -

#4 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4312
  • View blog
  • Posts: 7,467
  • Joined: 08-June 10

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?
Was This Post Helpful? 0
  • +
  • -

#5 edwin g  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 18-August 10

Re: c# & asp.net error

Posted 22 March 2011 - 03:09 PM

View PostinsertAlias, 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?


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

Was This Post Helpful? 0
  • +
  • -

#6 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4312
  • View blog
  • Posts: 7,467
  • Joined: 08-June 10

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

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

Was This Post Helpful? 0
  • +
  • -

#7 edwin g  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 18-August 10

Re: c# & asp.net error

Posted 22 March 2011 - 03:15 PM

View Postedwin g, on 23 March 2011 - 12:09 AM, said:

View PostinsertAlias, 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?


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.
Was This Post Helpful? 0
  • +
  • -

#8 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4312
  • View blog
  • Posts: 7,467
  • Joined: 08-June 10

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.
Was This Post Helpful? 0
  • +
  • -

#9 edwin g  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 18-August 10

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
Was This Post Helpful? 0
  • +
  • -

#10 marinus  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 135
  • View blog
  • Posts: 575
  • Joined: 14-April 10

Re: c# & asp.net error

Posted 25 March 2011 - 03:47 PM

Have you tried putting this code in web.config ??

< authentication mode="None" />


You can follow this link

http://www.shabdar.o...ion-in-iis.html
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1