|
Hello Sir,
I googled a lot but from there I got the idea to configure the site to IIS. I did that.But again getting the same error.
cheers,
sneha
|
|
|
|
|
In IIS Virtual Directory Properties, click "Create" for application name.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
Hi,
I created the virtual directory but still giving the same error.
cheers,
sneha
|
|
|
|
|
It seems that you did not get me right. Just go to IIS Manager, choose your application and go to properties and check whether the application has been created or not. You can find a remove button if it was already created else you will find a create button. Also check whether your project directory contains multiple web.config file or not.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
I did the same you have suggested and I found that "Remove" button. And I am not having a single web.config file.
Can you tell me one thing that I am using Visual Studio 2008 so what should be the version of asp.net in the virtual directory.
cheers,
sneha
|
|
|
|
|
sneha Choudhary wrote: . And I am not having a single web.config file.
Do you have multiple web.config at root level?
sneha Choudhary wrote: Can you tell me one thing that I am using Visual Studio 2008 so what should be the version of asp.net in the virtual directory.
It should be 2.0 .
|
|
|
|
|
it is showing 2.0.50727 in the asp.net tab in the virtual directory.
cheers,
sneha
|
|
|
|
|
I got the problem may be. Just go to ASP.NET tab and check whether ASP.NET 1.X is selected or not. If it is then change it to ASP.NET 2.X or greater. You will get the solution.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
I Don't think so, because in her first post she said ASP.Net Version set to 2.x.x.x
|
|
|
|
|
sneha Choudhary wrote: I created the virtual directory but still giving the same error.
It seems Virtual Directory Still not created. Do as sannj suggested. Right Click on VD > Properties > In the Virtual Directory Tab There should be Create Button. Click on that, they try to access the site.
|
|
|
|
|
Firstly I opened the IIS then in the left pane there is a folder "web sites". Under this there is "Default Website". I right clicked on "Default Website" and selected new virtual directory.Then a wizard opened and successfully created a virtual directory named "vic". Now the "vic" is coming under the "Default Website". Then I right clicked the "vic" and then properties and I got a window named "vic properties" and in this there is virtual directory tab there is a label "application name" and in front there is a textbox and in it is showing "vic" and the there is remove button.
If I have done anything wrong please shout on me.
cheers,
sneha
|
|
|
|
|
I think you have perfectly configured the virtual directory. Check whether multiple web.config for the same project exists in the same parent directory or not. Check if your project has the same copy as a child folder in the root project directory. Refer the following figure:
Project A
>>>>>>Folder 1
>>>>>>Folder 2
>>>>>>Project A
Just check it.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
|
still the same error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
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.
Source Error:
Line 38: ASP.NET to identify an incoming user.
Line 39: -->
Line 40: <authentication mode="Forms">
Line 41: <forms name="MyAuth" cookieless="AutoDetect" />
Line 42: </authentication>
Source File: e:\inetpub\host134\vicinternational\vicinternational.vic.edu.au\www\vic\web.config Line: 40
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
cheers,
sneha
|
|
|
|
|
I checked this as well. But this is not the problem. I am unable to understand what is creating the problem.
cheers,
sneha
|
|
|
|
|
Most of the times this error comes if you have your project directory contains the backup copy of the same project. So in that case, multiple copies of web.config exist for the same project. It is very strange that it is not true in your case as you told that you already checked it. Can you check it once more? I think something is getting missed.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
I checked thoroughly but didn't find another web.config.
Is there any special settings in web.config for it to be configured.
I used
debug="false"
<authentication mode="Forms">
<forms name="MyAuth" cookieless="AutoDetect" />
</authentication>
<customErrors mode="Off" defaultRedirect="~/Error.aspx">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
these are the main settings I have done. Are they correct?
cheers,
sneha
|
|
|
|
|
Changes that you have done with the web.config should not have created an impact like this. Have you tried to run the project directlty from Visual Studio.NET? Is it giving error on that case also?
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
Yes yes tried that. It is running perfectly.
cheers,
sneha
|
|
|
|
|
Are you using IIS 6.0? If it is then create a new virtual directory with a separate application pool (not the default one). You can refer the following url:
http://aspalliance.com/1464_Deploying_ASPNET_Applications.all[^]
All the best and may your problem get solved soon.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
|
|
I have a user control with some textboxes and linkbuttons,
when I write some text in one of the textboxes and then hit the enter key, the page load event fires.
is it possible to cause one of the other page's events to fire?
|
|
|
|
|
Set defaultButton property of the form to the button that you want to use.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
hi benams,
What i have understood, the solution is "javascript" check for e.keycode (or e.which) and compare it with 13 the ascii value for enter key then u can call method __doPostBack("control_name","event_to_call") this will cause the postback to the spcified event in the code behind file. Check out if this helps
regards
|
|
|
|