Can't run uploadify for asp.net - c#

I have downloaded the example code/demo from:
http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html
and when I try to run any of the aspx files, I just get the following message from the server:
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 46: ASP.NET to identify an incoming user.
Line 47: -->
Line 48: <authentication mode="Windows"/>
Line 49: <!--
Line 50: The <customErrors> section enables configuration
Source File: C:\Inetpub\wwwroot\test_uploader\uploadify\web.config Line: 48
Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
Anyone know why this is happening? I can normally run asp.net 2.0 and above web-forms perfectly will on this server.

You get this error because you have place a web.config in a subdirectory and this contains sessions that should be there, except if you define a new application/pool asp.net in this subdirectory of your iis.
From you question, here is the path of your web.config, but this must be one directory up, or not exist at all, or remove the lines that can not be there.
C:\Inetpub\wwwroot\test_uploader\uploadify\web.config

Related

Getting configuration error once try to browse the site inside the default website

I created asp.net application. then I build that on visual studio and then I added web.config file and added following section in that web.config file
<remotingSetting baseRemoteAddress="http://localhost/application_name/{0}"/>
<securitySetting accessDeniedUrl="~/Default.aspx"/>
then I created a site as application_name in Default Website using IIS manager
Then I try to browse this application in IIS manager, I'm getting following configuration error.
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: An error occurred loading a configuration file:
Directory 'C:\Users\kelum\Documents\Visual Studio 2015\Projects\Sample_Project\SampleApp\ConfigSetting' does not exist. Failed to start monitoring file changes.
exist. Failed to start monitoring file changes.
Source Error:
[No relevant source lines]
.

How to build a solution or run an asp.net project from a folder containing .aspx.cs, .cs, .config and .css files

NET and C#. I have a fair understanding of executing a web app built on wamp/lamp framework. However here I have the following files for the project (mentioned below). I am unable to figure out how to get the web app running on my local machine.
With wamp/lamp, all we need to do is put the .php file in www root folder and it runs. However here I am clueless on how to proceed.
I have got the IIS running on my local.
The below files are located in this path:
C:\inetpub\wwwroot\Project\code
aboutus.aspx
aboutus.aspx.cs
Accountpage.aspx
Accountpage.aspx.cs
addphotos.aspx
addphotos.aspx.cs
chatid.aspx
chatid.aspx.cs
chatroom.aspx
chatroom.aspx.cs
composemail.aspx
composemail.aspx.cs
confirm.aspx
confirm.aspx.cs
confirmok.aspx
confirmok.aspx.cs
createaccount.aspx
createaccount.aspx.cs
Default2.aspx
Default2.aspx.cs
eo_web.ashx
Faq.aspx
Faq.aspx.cs
file manager.aspx
file manager.aspx.cs
homepage.aspx
homepage.aspx.cs
inbox.aspx
inbox.aspx.cs
login.aspx
login.aspx.cs
registration.aspx
registration.aspx.cs
send sms.aspx
send sms.aspx.cs
StyleSheet.css
uploadfile.aspx
uploadfile.aspx.cs
useraccount.aspx
useraccount.aspx.cs
video.aspx
video.aspx.cs
web.config
But when I point my browser to
http://localhost/Project/code
I get this error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x800700b7
Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
Config File \?\C:\inetpub\wwwroot\Project\Code\web.config
Requested URL http://localhost:80/Project/Code
Physical Path C:\inetpub\wwwroot\Project\Code
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
13:
14:
15:
More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
Please help me get started with this.

IIS Error This configuration section cannot be used at this path

I am facing a strange behavior in that I have an application thats hosted on two nodes. works fine on one node, on the other throws up the following error,
Server Error in '/***_Service' 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: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
Source Error:
Line 34: </context>
Line 35: </spring>
Line 36: <appSettings>
I have compared the applicationHost.config files on both the boxes and they are same. Not facing the problem in Dev environment too. Am I missing something? Can someone please give me some pointers?
Thanks

ASP.net Configuration Error- allowDefinition='MachineToApplication'

I uploaded my webapplication using FTP to a space. I am getting this error. I have created the virtual directory and configured it in IIS.I am getting this error.
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 52: ASP.NET to identify an incoming user.
Line 53: -->
Line 54: <authentication mode="Windows"/>
Line 55:
Line 56: <!--The <customErrors> section enables configuration
You created a virtual directory which is not an application.
In IIS, Right click on it and Convert To Application

launching a web service (.asmx) in a IIS 6.0

I have developed a web service with the .asmx extension using C# and i want to deploy this into my VPS which has Windows Server 2003 with IIS 6.
Service is running with Framework 4.0 and it's installed in the VPS also. When I upload the precompiled version into the VPS it shows a runtime error
Server Error in '/' Application.
Runtime Error
Description: An application error
occurred on the server. The current
custom error settings for this
application prevent the details of the
application error from being viewed
remotely (for security reasons). It
could, however, be viewed by browsers
running on the local server machine.
Details: To enable the details of this
specific error message to be viewable
on remote machines, please create a
<customErrors> tag within a
"web.config" configuration file
located in the root directory of the
current web application. This
tag should then have
its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are
seeing can be replaced by a custom
error page by modifying the
"defaultRedirect" attribute of the
application's <customErrors>
configuration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
can anyone help me on this?
Update
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: Unrecognized attribute 'targetFramework'. Note that attribute names >are case-sensitive.
Source Error:
Line 26:
Line 27:
Line 28:
Line 29:
Line 30: Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Source File: C:\Inetpub\vhosts\akashvahini.com\httpdocs\web.config
Line: 28
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET >Version:2.0.50727.3053
this is the new error message after enabling debugging in the web.config
You should enable debugging to diagnose the problem.
Microsoft has a very detailed explanation on how to enable detailed debugging over here.
Server Error in '/' Application.
That error is too generic, check the output after you enabled debugging and post the results.
And don't forget to disable debugging after your site goes live.
Update:
Seems to be permission related:
http://forums.iis.net/p/1042369/1454379.aspx
The ASPNET user account needs permissions for the folder that contains your asmx service.
Update2:
You can give the ASPNET user permissions using the file system permission dialog:
http://www.asp.net/learn/whitepapers/denied-access-to-iis-directories
Might look different on newer versions of Windows.
From my experience "Server Application Unavailable" means that you have got web sites that use different versions of .net in the same application pool.
the site that hosts your webservice needs to be in an app pool that only has .net 4.0 web sites. The application pool is configured on the Home Directory tab in the web site properties.
Looks to me like the application pool is trying to run two difference versions on .net.
Make a new application pool and call it something like .Net4 and then move the new site across to use this app pool and everything should work.
This error is shown by
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET >Version:2.0.50727.3053
Where the site with a .asmx should say .Microsoft .NET Framework Version:4.0 etc...

Categories

Resources