Thanks. What change needs to apply to my Handler? When I put these
<system.web>
<httpHandlers>
<add verb="*" path="*.bmp" type="Edit_user_rec.Handler1,Edit_user_rec"/>
<add verb="*" path="*.jpg" type="Edit_user_rec.Handler1,Edit_user_rec"/>
<add verb="*" path="*.gif" type="Edit_user_rec.Handler1,Edit_user_rec"/>
<add verb="*" path="*.png" type="Edit_user_rec.Handler1,Edit_user_rec"/>
</httpHandlers>
into Web.config and then rerun the project, I get these
Server Error in Application "WIN-BVDIC8GIAHI/EDIT_USER_REC"Internet Information Services 7.5
Error Summary
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Detailed Error InformationModule ConfigurationValidationModule
Notification BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070032
Requested URL http://win-bvdic8giahi:81/Edit_user_rec/Default.aspx?user_id=wmec
Physical Path C:\inetpub\Edit_user_rec\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Most likely causes:
This application defines configuration in the system.web/httpHandlers section.
Things you can try:
Migrate the configuration to the system.webServer/handlers section. You can do so manually or by using AppCmd from the command line - for example, %SystemRoot%\system32\inetsrv\appcmd migrate config "Default Web Site/". Using appcmd to migrate your application
will enable it to work in Integrated mode, and continue to work in Classic mode and on previous versions of IIS.
If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
Alternatively, switch the application to a Classic mode application pool - for example, appcmd set app "Default Web Site/" /applicationPool:"Classic .NET AppPool". Only do this if you are unable to migrate your application.
(Set "Default Web Site" and "Classic .NET AppPool" to your application path and application pool name) Links and More InformationIntegrated mode is the preferred mode for running ASP.NET applications on IIS 7.0 and above.
View more information »
I've put 'Classic' for 1st 3 options below but I can't select the last one as 'Classic' as it will cause other problem in other projects.
http://dl.dropbox.com/u/40211031/t274.png
But now I still get this with the original project.
Server Error in Application "WIN-BVDIC8GIAHI/EDIT_USER_REC"Internet Information Services 7.5
Error Summary
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Detailed Error InformationModule ConfigurationValidationModule
Notification BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070032
Requested URL http://win-bvdic8giahi:81/Edit_user_rec/Default.aspx?user_id=wmec
Physical Path C:\inetpub\Edit_user_rec\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Most likely causes:
This application defines configuration in the system.web/httpHandlers section.
Things you can try:
Migrate the configuration to the system.webServer/handlers section. You can do so manually or by using AppCmd from the command line - for example, %SystemRoot%\system32\inetsrv\appcmd migrate config "Default Web Site/". Using appcmd to migrate your application
will enable it to work in Integrated mode, and continue to work in Classic mode and on previous versions of IIS.
If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
Alternatively, switch the application to a Classic mode application pool - for example, appcmd set app "Default Web Site/" /applicationPool:"Classic .NET AppPool". Only do this if you are unable to migrate your application.
(Set "Default Web Site" and "Classic .NET AppPool" to your application path and application pool name)
wmec
Contributor
6228 Points
3226 Posts
Re: Nothing is shown
Nov 30, 2012 01:08 AM|LINK
Any help?
HuaMin Chen
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Nothing is shown
Dec 01, 2012 04:26 AM|LINK
Hello,
You should configure your httphandler at web.config here:
And this is the full sample for you:
http://www.c-sharpcorner.com/UploadFile/desaijm/HTTPHandlersForImages11152005062705AM/HTTPHandlersForImages.aspx
wmec
Contributor
6228 Points
3226 Posts
Re: Nothing is shown
Dec 03, 2012 08:16 AM|LINK
Hi,
what should be put for the path? With this,
<httpHandlers>
<add path="..\xml"/>
</httpHandlers>
I am getting this.
Server Error in Application "WIN-BVDIC8GIAHI/EDIT_USER_REC"Internet Information Services 7.5
Error Summary
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 InformationModule ConfigurationValidationModule
Notification BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x8007000d
Config Error Missing required attribute 'type'
Config File \\?\C:\inetpub\Edit_user_rec\web.config
Requested URL http://win-bvdic8giahi:81/Edit_user_rec/Default.aspx?user_id=wmec
Physical Path C:\inetpub\Edit_user_rec\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Config Source
12: <httpHandlers>
13: <add path="..\xml" />
14: </httpHandlers>
HuaMin Chen
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Nothing is shown
Dec 04, 2012 12:24 AM|LINK
No. You are wrong.
You should put the specific path that will analyze the image from your db.
Check this sample very carefully:
http://www.c-sharpcorner.com/UploadFile/desaijm/HTTPHandlersForImages11152005062705AM/HTTPHandlersForImages.aspx
wmec
Contributor
6228 Points
3226 Posts
Re: Nothing is shown
Dec 04, 2012 01:40 AM|LINK
Thanks. What change needs to apply to my Handler? When I put these
<system.web>
<httpHandlers>
<add verb="*" path="*.bmp" type="Edit_user_rec.Handler1,Edit_user_rec"/>
<add verb="*" path="*.jpg" type="Edit_user_rec.Handler1,Edit_user_rec"/>
<add verb="*" path="*.gif" type="Edit_user_rec.Handler1,Edit_user_rec"/>
<add verb="*" path="*.png" type="Edit_user_rec.Handler1,Edit_user_rec"/>
</httpHandlers>
into Web.config and then rerun the project, I get these
Server Error in Application "WIN-BVDIC8GIAHI/EDIT_USER_REC"Internet Information Services 7.5
Error Summary
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Detailed Error InformationModule ConfigurationValidationModule
Notification BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070032
Requested URL http://win-bvdic8giahi:81/Edit_user_rec/Default.aspx?user_id=wmec
Physical Path C:\inetpub\Edit_user_rec\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Most likely causes:
This application defines configuration in the system.web/httpHandlers section.
Things you can try:
Migrate the configuration to the system.webServer/handlers section. You can do so manually or by using AppCmd from the command line - for example, %SystemRoot%\system32\inetsrv\appcmd migrate config "Default Web Site/". Using appcmd to migrate your application will enable it to work in Integrated mode, and continue to work in Classic mode and on previous versions of IIS.
If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
Alternatively, switch the application to a Classic mode application pool - for example, appcmd set app "Default Web Site/" /applicationPool:"Classic .NET AppPool". Only do this if you are unable to migrate your application.
(Set "Default Web Site" and "Classic .NET AppPool" to your application path and application pool name) Links and More InformationIntegrated mode is the preferred mode for running ASP.NET applications on IIS 7.0 and above.
View more information »
HuaMin Chen
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Nothing is shown
Dec 04, 2012 05:52 AM|LINK
Hello Contributor;)
From the error description, it seems that your problem is something to do with this:
try going into IIS and changing the app pool for your application to use classic mode instead of integreted mode
wmec
Contributor
6228 Points
3226 Posts
Re: Nothing is shown
Dec 04, 2012 06:24 AM|LINK
Thanks. Is it OK to change that for the current project only? I don't see the option to change this.
HuaMin Chen
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Nothing is shown
Dec 04, 2012 06:27 AM|LINK
Please enter IIS,
And the right click your published website and set the property.
for more you can continue your question at:
http://forums.iis.net
wmec
Contributor
6228 Points
3226 Posts
Re: Nothing is shown
Dec 06, 2012 02:48 AM|LINK
I've put 'Classic' for 1st 3 options below but I can't select the last one as 'Classic' as it will cause other problem in other projects.
http://dl.dropbox.com/u/40211031/t274.png
But now I still get this with the original project.
Server Error in Application "WIN-BVDIC8GIAHI/EDIT_USER_REC"Internet Information Services 7.5
Error Summary
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Detailed Error InformationModule ConfigurationValidationModule
Notification BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070032
Requested URL http://win-bvdic8giahi:81/Edit_user_rec/Default.aspx?user_id=wmec
Physical Path C:\inetpub\Edit_user_rec\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Most likely causes:
This application defines configuration in the system.web/httpHandlers section.
Things you can try:
Migrate the configuration to the system.webServer/handlers section. You can do so manually or by using AppCmd from the command line - for example, %SystemRoot%\system32\inetsrv\appcmd migrate config "Default Web Site/". Using appcmd to migrate your application will enable it to work in Integrated mode, and continue to work in Classic mode and on previous versions of IIS.
If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
Alternatively, switch the application to a Classic mode application pool - for example, appcmd set app "Default Web Site/" /applicationPool:"Classic .NET AppPool". Only do this if you are unable to migrate your application.
(Set "Default Web Site" and "Classic .NET AppPool" to your application path and application pool name)
Do you want to see my project?
HuaMin Chen