My MVC2 web project is deployed using the VS 2010 "web deploy" feature. It used to run fine but now it is timing out more often than not with this error message:
Web deployment task failed.((10/11/2010 1:01:59 a.m.) An error occurred
when the request was processed on the remote computer.)
(10/11/2010 1:01:59 a.m.) An error occurred when the request was processed on the remote
computer. The remote host closed the connection. The error code is 0x800704CD.
Searching for the error code 0x800704CD does not return anything helpful.
Is there a way to increase the timeout period, or should I be looking for an alternative method and forgetting about web deploy?
I haven't answered the timeout problem (could not see any problems on the server log). But I did find a workaround:
Physically copy the webdeploy.zip file to the web server.
In IIS select the website, right click and choose "Deploy - Import Application ..."
Select the zip file copied in #1
Forget the error message. That error message is the local one. You are not interested in this - the reason it fails is that the remote host closed the connection. What you want is to see the server side logs for the server side error message. Could be a timeout, but the server side should have more information. Start with the IIS logs and event logs.
Related
I'm trying to deploy an ASP.NET MVC 5 application to a shared hosting account (SmarterASP). It was working perfectly fine but recently it mysteriously stopped working for no reason. I tried contacting support, spent 2 days talking to them and they say "it's working fine for us, something's wrong at your end". I'm not sure whether it's my end. The task always fails with this:
3>Start Web Deploy Publish the Application/package to *url removed* ...
3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4295,5): Error : Web deployment task failed. ((12-Nov-16 3:07:55 PM) An error occurred when the request was processed on the remote computer.)
3>
3>(12-Nov-16 3:07:55 PM) An error occurred when the request was processed on the remote computer.
3>The server experienced an issue processing the request. Contact the server administrator for more information.
3>Publish failed to deploy.
Nothing else at all. No further error messages. Is there any I could get a detailed error message what EXACTLY is causing the process to fail? I'm already considering to move to a VPS if the issue persists.
I have VS 2013 ultimate. I'm trying to add a sql database file to my project App_Data. What I did was I right-clicked App_Data, added new item, named my file database1.mdf, and then tried to add the file, but when i do it gives me this error
A network-related or instance-specific error occurred while establishing a connection to sql server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL server is configured to allow remote connections. (provider: SQL Network interfaces, error: 50 - local Database runtime error occurred: Cannot create an automatic instance. See the windows application event log).
Now the werid part is. This USE to work. Til last night when I deleted something something or messed with something, I really can't remember what. I also noticed my master.mdf file is gone.
I went into control panel and services to see if an instance of sql server is running. It is not, but it is set to automatic. I tried to run it through services, and got this error.
"Windows could not start the SQL server (SQLEXPRESS) on local computer. For more information, review the system event log. If this is a non-microsoft service, contact the service vendor, and refer to service-specific error code 17113"
This is driving me crazy, I'm about to format my windows, and reinstall everything. I spent a day trying to figure out what i might have messed with or deleted that screwed this up, because it was working correctly the other day. Please help.
Open up the Command window(run->cmd or "Win"+"R") and type:
C:\Users\xxx\sqllocaldb delete "v11.0"
The following row should be shown:
LocalDB instance "v11.0" deleted
Then type the following row:
C:\Users\xxx\sqllocaldb create "v11.0"
The following row should be shown:
LocalDB instance "v11.0" created with version 11.0
I keep getting an error when trying to access the database from a web site it returns an error that it can't find the server or it's inaccessible.
Now I did a search and I found many possible reasons - I turned on named pipes and also did what this link suggested (i.e. set the IP addresses to "enabled") yet I'm still getting the error.
Error SqlException: System.Data.SqlClient.SqlException (0x80131904):
Error An error has occurred with the network or the occurrence when
connecting to SQL Server. Can not find server or is not available.
Verify that the instance name is correct and that the configuration of
SQL Server allow remote connections. (provider: Named Pipes Provider,
error: 40 - Could not open a connection to SQL Server) at
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection) at
I also downloaded this little app and I copy/pasted the connection string from the web.config used in IIS for this site and the app is able to connect and query the same database being targeted by the web site.
And, as the title says, this error is utterly missing when I debug it in VS2010. What could be causing this error when launching from the server?
Edit: the connection string includes a user name and password (it's not Windows Authentication).
Most likely a security issue. If using windows authentication then make sure the thread pool that the web application is running as has sufficient DB access\privileges.
The issue is that the web.config references another config file
<appSettings file="config/dev.config">
and so the connection string in web.config is ignored over the one in dev.config - an error to have it in both (the one on the test server was created by someone else and worked on static pages - it only failed when the website had to query the database), that's why the version in Visual Studio was running fine.
This has been really painful for the last few hours and I just have no more ideas what to do.
Tried many solutions that I found on here without any luck...
I have an iis server that is hosting a wcf web service. Simple stuff.
I can connect to this (example: http://mydomain.com/Service.svc?wsdl) from the iis server and all other computers without any problems.
So I went on to make a php client on my computer - (using xampp via localhost) - (not on the iis server)
$wcfClient = new SoapClient('http://mydomain.com/Service.svc?wsdl');
$args = //input data
$response = $wcfClient->GetData($args);
print_r($response->GetDataResult->Post);
This works perfect. No problems at all. It returns all the data... Then I went on to upload this to my hosting account. This is the error I keep getting.
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ....
I have no more ideas. Disabled firewall, changed web.config a million times and still no luck. I tried the file_get_contents method to see what's up. I keep getting:
failed to open stream: Connection refused
I just fixed this by changing the port to 80 on the iis server...
Ok, so I'm learning about ASP.NET by making a simple program to read in a user's gmail credentials and construct an email from their input into the Console, but I'm getting a new error that I was not get yesterday, and I have not changed ANY code. The error is on line 41, so I have provided that (the rest of the code is just reading input into Strings) I have disabled my firewall to no avail, and have also tried "http://localhost/Service.asmx", which doesn't work either. I've also tried restarting IIS.
I'm completely new to this subject, but the error suggests, to me, that the program is communicating with the server but is being denied by a blocked port, but I have disabled my firewall and the error persists. Any ideas? Thanks in advance!
/*40*/ Communication_Service.Service CommServiceProxy = new Communication_Service.Service();
/*41*/ Result = CommServiceProxy.SendMail(GmailAccount, Password, To, Subject, Body);
There was an error dowloading http://localhost:4932/Service.asmx. Unable to connect to the remove server. No connection could be made because the target machine actively refused it 127.0.0.1:4492
Sounds like you are running cassini (development server). The application at http://localhost:4932/ needs to be started. You probably have multiple sites and need multiple start up projects. Right click your solution and click set start up project, pick multiple, and select all your websites. On VS goto debug, run without debugging and they should all start.