WCF / ASMX :: WcfDataService Error "HTTP 500" Using IIS7 Running Under Windows 7
Feb 15, 2011
I have created an entity model and linked service which works fine when testing from within VStudio 2010 but when I publish and browse to svc I get an HTTP 500 error. Thought this might be linked to db credentials (anonymouss access) so set this to fixed sa login as test , no success. Also have set all IIS app pool to use v4.0 of .net. Using IIS7 running under Windows 7, svc entityaccessrule set to "*".
I've written a small MVC application and am having trouble deploying it to localhost. I use the publish feature when I browse http://localhost this is what I get: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this dir A sample aspx page is rendered correctly.
I've tried the aspnet_regiis -r I've made sure ASP.NET is installed in Windows Features. The web platform installer tells me MVC 2.0 is installed. I did install VS2010 first and then IIS so I suspect that maybe causing problems but in the past aspnet_regiis -r has fixed that.
I was hosting published site in IIS 7 on Windows 7 installed machine.I had done setting for .NET framework version, Security Options but got Error as shown below
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
I have published my site using Visual Stuido's 2008 publish feature. I have then copied these files to a windows 2008 web server with IIS7 installed, it also has .net 3.5 sp1 and MVC installed In IIS I added the site using the 'Add a new site' right click option and then pointed this at the directory my site files are located in, I used the default application pool and it is set to integrated. Then when I attempt to browse I got the error message The Web server is configured to not list the contents of this directory. So I added Default.aspx to the default document list and I then get the following error message
HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. Has anyone got any ideas on what I do next ? I have read lots of articles on this online but most are confusing and dont explain the solution in simple terms Surely it should be pretty straightforard to just deploy an MVC website to IIS7
I am trying to access a wcf service hosted on a server running on a virtual machine on a windows 2008 R2 hyperv. When i access this service when running my asp.net website through code everything works fine how ever when i deploy the application on the local IIS , in the deployed mode i am getting an securityaccessdeined exception. My Asp.net app is running on a IIS server on another virtual machine. The stack trace is as given below :
Environment Info: My asp.net app has built on .NET 4.0 framework using VS2010. My WCF services are based on .NET2.0 framework. Event code: 3005
Event message: An unhandled exception has occurred.
Hello all. I created a class that runs fine when using it with web forms, however when i create a Windows service and try to run it I recieve a NullReference error. Im not sure what else to do since the class works fine.Here is a snippet.
The service
public partial class Service1 : ServiceBase { //Timer object Timer RunTime; QBridge bridge_object = new QBridge() double test_interval = 40000; //test value public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { //Send email notification that intakes were pushed //bridge_object.SendNotification(bridge_object.service_startedtext); RunTime = new Timer(30000); //set the elapsed event RunTime.Elapsed += new ElapsedEventHandler(RunTime_Elapsed); //RunTime.Interval = SetInterval(); //calculated interval RunTime.Interval = test_interval; // test interval RunTime.Enbled = true; //set timer to true //QBridge bridge_object = new QBridge(); //bridge_object.SendNotification("start"); //SendNotification("start"); } protected override void OnStop() { RunTime.Enabled = false; RunTime.Dispose(); try { bridge_object.SendNotification("stop"); } catch (NullReferenceException nre) { System.Windows.Forms.MessageBox.Show("Error " + nre); } catch (Exception er) { System.Windows.Forms.MessageBox.Show("Error " + er); } //SendNotification("end"); } //Included this to test locally. works fine when just calling the method protected void RunTime_Elapsed(object source, ElapsedEventArgs e) { //SendNotification("run"); try { bridge_object.SendNotification(run); } catch (NullReferenceException nre) { System.Windows.Forms.MessageBox.Show("Error " + nre); } catch (Exception er) { System.Windows.Forms.MessageBox.Show("Error " + er); } } public void SendNotification(string email_text) { MailMessage initial = new MailMessage(); initial.Bcc.Add(new MailAddress("")); initial.From = new MailAddress(""); initial.Subject = "Web notification"; initial.IsBodyHtml = true; initial.Body = email_text; SmtpClient mailClient = new SmtpClient("192.168.1.1"); try { mailClient.Send(initial); } catch (Exception ex) { } } } Class using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net.Mail; using System.IO; using System.Configuration; using System.Data.SqlClient; using System.Data; namespace Intake { public class QBridge { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); private string login_error; public QBridge() { } public void SendNotification(string email_text) { MailMessage initial = new MailMessage(); initial.Bcc.Add(new MailAddress("")); initial.From = new MailAddress(""); initial.Subject = "Web notification"; initial.IsBodyHtml = true; initial.Body = email_text; SmtpClient mailClient = new SmtpClient("192.168.1.1"); try { mailClient.Send(initial); } catch (Exception ex) { } } } }
This is really weird I am really stuck on this issue. Now the Environment is WIN2K3 Server is my web server Database is SQL 2008 is in the domain itself I have deployed the application which was using the SSO from the parent Share Point Site and was having forms authentication Now the Users to access the application can be outside domain /inside domain so we have logic to get the internal employee or external But the Problem starts when we have got the request to have the application ready for Internal Users like a Intranet application and we need to have the windows authetication in place Now the problem was with WINDOWS authentication I am not able to get to the HTTP Handlers I have in my code thats really wierd as all was working well having the forms auth. I have changed the following things to make it windows auth. Changed the AUthentication in WEB.Config Unchecked the Anynomous user from Directory Security in IIS.
My Problem is ALL application works well except when I tried to call http_handler It is giving me 404 0 2 in IIS logs page not found when I tried to say window.location = "myhandler.myextension?id=285dc559-8293-44f3-a018-4e7024c82e5b" Gives me Page not found error.
I used visual webdeveloper 2008 express edition to make a new WCF Service Application.If I test it on my pc it works perfectly , But if I publish it to my shared hosting site I get this erroris has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.
we have a situation where we need to host two certificates on the same server and because we can't have two different certificates on the same server running off the same port we have assigned one certificate run through another port, which is 4443.
So the URL to our web app is now....
[URL]
If I punch this into a web browser I can access it fine, however, if I create a web reference using this URL in Visual Studio (2005) it can create the web reference fine and it builds ok. But whenever I call a web method on this service instance I get a HTTP 404 page not found Exception.
Is there any properties I need to set on the web service object to get this to work? I'm confused as to why it's not working.
While trying to access the service without specifing the user credentials everything work's ok and the current user(Thread.CurrentPrincipal.Identity.Name) at service is the logged in user.
When I try to set user credentials this way:
[Code]....
The service just ignores them.
When I try it this way:
[Code]....
I'm getting this error: "The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'."
3) Finally adding the reference of service contract project in a Hosting project (Console Application) with complete configurations.
I am adding one more windows app project as a client.When i am trying to add the service reference using the address "http://localhost:8000/Tasks", VS 2008 displays the below error.
There was an error downloading 'http://localhost:8000/Tasks'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8000
Metadata contains a reference that cannot be resolved: 'http://localhost:8000/Tasks'.
Could not connect to http://localhost:8000/Tasks. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8000.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8000
If the service is defined in the current solution, try building the solution and adding the service reference again.
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 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". 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 configuration tag to point to a custom error page URL. ----------------------------------- This error will be display when I am try to show the Crystal Report. Can anybody tell me what Property I have to ser in Windows Server 2008 R2 or in IIS7???
The XML element 'EnableTheming' from namespace 'http://tempuri.org/' is already present in the current scope. Use XML attributes to specify another XML name or namespace for the element. when i am running my webservice There is no error at build time its build up successfully.
I an getting this error when i return an asp.net pannel from my web method.. but when i am returning simple string its work fine..
I am trying to consume a webservice. I added the web reference. But when i try to access the method, I am getting the error as:"The request failed with HTTP status 401: Unauthorized."The web service has username as "user1", password as "pass".I tried this:
Service1.TestPrcsService serv = new Service1.TestPrcsService(); serv.PreAuthenticate = true; serv.Custom_methodname(true);
How to pass the username and password to access the method?
when i am adding service reference the Following erro shows Up..where as the same works on the Other machine. The url when tested in Internet explorer works but only while adding shows the error. The request failed with HTTP status 403: Forbidden. The HTTP request was forbidden with client authentication scheme 'Anonymous'.
This may be obvious to many of you (hopefully!) I have a site under asp.net created using Visual Web Developer 2008 and MSSQL 2007 (all express editions)All ok so far.My PSP requires the addition of a couple of traditional ASP 'screens' to redirect payments to them. I cannot run this under VWD2008 development server as .asp are not allowed, so am looking to move to running it locally under IIS7 which is turned on.How do I alter the site to run on the IIS7 instance?
I want my .net2.0 webservice application to run on IIS7.0 under CLR4.0, Is this possible simply creating an apppool with Classic,.netframework 4.0 settings and pointing my app to this pool? I have tried this and it works fine, but want to confirm on right track?
i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it.
I am trying to port an existing ASP.Net 1.1 website to another web server that currently runs IIS7 and a number of websites that target either .Net 2.0, 3.5 or 4.0. All other sites continue to work perfectly. Unfortunately, I can only browse static files on the newly imported site. If I try to access any of the Features in IIS7 for the new sit
Can someone tell me if its possible to run both a 64bit compiled web site and a 32bit compiled website on the same IIS7.5 machine. The core OS would be Windows 2008 R2 64bit. I looked around and can only find how to switch the appPools to 32 or 64. But the question I want answered is can you have one appPool 32bit and another 64bit?
Is it at all possible to use IIS7's rewrite capability in web.config to strip a particular HTTP header from a client request?We have an application that makes an HTTP POST to our website, and apparently the request contains the HTTP Expect header. Previously this was not a problem, but we've switched hosts and now the site is returning HTTP error 417 Expectation failed. So the real solution is to fix the software so it doesn't send the Expect header, but that can't happen soon enough for the folks in charge, who'd like to come up with an immediate web-based fix.I've used ISAPI_Rewrite before and I've read that it can strip a header, and the new host claimed they had ISAPI installed... but that seems to have been a lie, as I cannot get it to work, and support's only response on the subject is "use IIS7 Rewrite instead."