Click to See Complete Forum and Search --> : While uploading, web.config file giving problem in establishing connection


Rajesh Ranjan
11-03-2006, 12:28 AM
Hi everybody,

I have a web chat application. The application is divided into two parts.

In 1st part, there is a web service application and my service.asmx file contains the necessary connection string to database (I am using access database).

In 2nd part there is application containing chat.aspx, which uses connection from service.asmx.

The application is working fine in my local machine. When I uploaded it to another server using ftp and run it then I got following error message -

'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'

I want to know, whether this is problem in my application? If it is so how I can solve it because it is working fine in my local machine?

Next, is it so that this problem can be solved by accessing remote server's IIS only?

Please help.

Thanks
Rajesh

lmf232s
11-03-2006, 01:10 PM
See if this article helps you. Its the first question

http://www.microsoft.com/technet/community/columns/insider/iisi0204.mspx

Rajesh Ranjan
11-03-2006, 11:52 PM
Thanks for the reply. I tried steps mentioned there. But it didn't solve the problem. The error still goes to the web.config file at line

<authentication mode="Windows"/>.

My web.config file has following code -

<?xml version="1.0"?>

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>

<compilation debug="true"/>

<authentication mode="Windows"/>

</system.web>
</configuration>

Any more help?

Rajesh