Error: ConnectionRefused (0x274d). System.Net.Sockets.SocketException No connection could be made because the...
I had same issue ( link https://superuser.com/questions/394223/iis-cannot-access-folder-for-website-hosting)
I hosted web api service in iis when i hosted i got internal server error i found solution here for that http://support.microsoft.com/kb/942055 i changed as per this doc.
After that i got the error in
like this
Fiddler] The connection to 'localhost' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it {ip address}
How to resolve this?
Solution?
iis asp.net-web-api
add a comment |
I had same issue ( link https://superuser.com/questions/394223/iis-cannot-access-folder-for-website-hosting)
I hosted web api service in iis when i hosted i got internal server error i found solution here for that http://support.microsoft.com/kb/942055 i changed as per this doc.
After that i got the error in
like this
Fiddler] The connection to 'localhost' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it {ip address}
How to resolve this?
Solution?
iis asp.net-web-api
add a comment |
I had same issue ( link https://superuser.com/questions/394223/iis-cannot-access-folder-for-website-hosting)
I hosted web api service in iis when i hosted i got internal server error i found solution here for that http://support.microsoft.com/kb/942055 i changed as per this doc.
After that i got the error in
like this
Fiddler] The connection to 'localhost' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it {ip address}
How to resolve this?
Solution?
iis asp.net-web-api
I had same issue ( link https://superuser.com/questions/394223/iis-cannot-access-folder-for-website-hosting)
I hosted web api service in iis when i hosted i got internal server error i found solution here for that http://support.microsoft.com/kb/942055 i changed as per this doc.
After that i got the error in
like this
Fiddler] The connection to 'localhost' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it {ip address}
How to resolve this?
Solution?
iis asp.net-web-api
iis asp.net-web-api
edited Mar 20 '17 at 10:04
Community♦
11
11
asked Apr 18 '14 at 9:56
stpdevistpdevi
55321130
55321130
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
I believe this is related to project configuration file for IIS, when the virtual directory path in the config doesnt match the actual path to the project folder.
I encountered this error when my project folder structure was changed, but applicationhost.config wasn't changed accordingly.
What I did to fix it:
(My Web Project) -> Properties -> Web, at the "Server" settings, where the application url is set -> "Create Virtual Directory".
This introduced the following change in applicationhost.config
- <virtualDirectory path="/" physicalPath="D:GitprojectMeow" />
+ <virtualDirectory path="/" physicalPath="D:GitprojectsrcMeow" />
I also assume this can be the case if someone else commits his path to project into source control, and you pull it, overwriting your local changes.
add a comment |
I went to the XAMPP control panel, then to config/service and ports settings and I changed the Apache main port to 81
(the same in the httpd.conf
) and it worked for me since I was getting this error when I tried to access Mysql.
add a comment |
it's DNS problem try:
ipconfig /flushdns
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23151708%2ferror-connectionrefused-0x274d-system-net-sockets-socketexception-no-connect%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I believe this is related to project configuration file for IIS, when the virtual directory path in the config doesnt match the actual path to the project folder.
I encountered this error when my project folder structure was changed, but applicationhost.config wasn't changed accordingly.
What I did to fix it:
(My Web Project) -> Properties -> Web, at the "Server" settings, where the application url is set -> "Create Virtual Directory".
This introduced the following change in applicationhost.config
- <virtualDirectory path="/" physicalPath="D:GitprojectMeow" />
+ <virtualDirectory path="/" physicalPath="D:GitprojectsrcMeow" />
I also assume this can be the case if someone else commits his path to project into source control, and you pull it, overwriting your local changes.
add a comment |
I believe this is related to project configuration file for IIS, when the virtual directory path in the config doesnt match the actual path to the project folder.
I encountered this error when my project folder structure was changed, but applicationhost.config wasn't changed accordingly.
What I did to fix it:
(My Web Project) -> Properties -> Web, at the "Server" settings, where the application url is set -> "Create Virtual Directory".
This introduced the following change in applicationhost.config
- <virtualDirectory path="/" physicalPath="D:GitprojectMeow" />
+ <virtualDirectory path="/" physicalPath="D:GitprojectsrcMeow" />
I also assume this can be the case if someone else commits his path to project into source control, and you pull it, overwriting your local changes.
add a comment |
I believe this is related to project configuration file for IIS, when the virtual directory path in the config doesnt match the actual path to the project folder.
I encountered this error when my project folder structure was changed, but applicationhost.config wasn't changed accordingly.
What I did to fix it:
(My Web Project) -> Properties -> Web, at the "Server" settings, where the application url is set -> "Create Virtual Directory".
This introduced the following change in applicationhost.config
- <virtualDirectory path="/" physicalPath="D:GitprojectMeow" />
+ <virtualDirectory path="/" physicalPath="D:GitprojectsrcMeow" />
I also assume this can be the case if someone else commits his path to project into source control, and you pull it, overwriting your local changes.
I believe this is related to project configuration file for IIS, when the virtual directory path in the config doesnt match the actual path to the project folder.
I encountered this error when my project folder structure was changed, but applicationhost.config wasn't changed accordingly.
What I did to fix it:
(My Web Project) -> Properties -> Web, at the "Server" settings, where the application url is set -> "Create Virtual Directory".
This introduced the following change in applicationhost.config
- <virtualDirectory path="/" physicalPath="D:GitprojectMeow" />
+ <virtualDirectory path="/" physicalPath="D:GitprojectsrcMeow" />
I also assume this can be the case if someone else commits his path to project into source control, and you pull it, overwriting your local changes.
answered Oct 14 '16 at 7:09
evictednoiseevictednoise
410416
410416
add a comment |
add a comment |
I went to the XAMPP control panel, then to config/service and ports settings and I changed the Apache main port to 81
(the same in the httpd.conf
) and it worked for me since I was getting this error when I tried to access Mysql.
add a comment |
I went to the XAMPP control panel, then to config/service and ports settings and I changed the Apache main port to 81
(the same in the httpd.conf
) and it worked for me since I was getting this error when I tried to access Mysql.
add a comment |
I went to the XAMPP control panel, then to config/service and ports settings and I changed the Apache main port to 81
(the same in the httpd.conf
) and it worked for me since I was getting this error when I tried to access Mysql.
I went to the XAMPP control panel, then to config/service and ports settings and I changed the Apache main port to 81
(the same in the httpd.conf
) and it worked for me since I was getting this error when I tried to access Mysql.
edited May 30 '18 at 9:19
Jesse de Bruijne
2,47861327
2,47861327
answered May 30 '18 at 8:38
John CyperJohn Cyper
1
1
add a comment |
add a comment |
it's DNS problem try:
ipconfig /flushdns
add a comment |
it's DNS problem try:
ipconfig /flushdns
add a comment |
it's DNS problem try:
ipconfig /flushdns
it's DNS problem try:
ipconfig /flushdns
edited May 28 '15 at 6:38
Nima Derakhshanjan
1,14061829
1,14061829
answered May 28 '15 at 6:11
mamuka maisuradzemamuka maisuradze
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23151708%2ferror-connectionrefused-0x274d-system-net-sockets-socketexception-no-connect%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown