Visual studio ошибка 403

TFS 2013 Git push VS 2017 Forbidden error-403

unable to access. requested url returned error: 403

I got this error while trying to push my local git repository to on-prem TFS 2013 server. I got same error from VS 2017 and command line.

After spending lot of time on playing around with global config settings, I figured out that the

issue is caused by internal proxy server.

Cleared git credentials from Windows Credentials Manager (as mentioned in https://stackoverflow.com/a/29401455/1319157).

But problem still did not go away. So I added NO_PROXY to environment variables as mentioned in (Only use a proxy for certain git urls/domains?)

NO_PROXY  
my_internal_tfs,localhost,127.0.0.1

This worked like a charm. make sure to close and re-open Visual studio or command prompt after changing environment variables.

Below are some useful links I found about git credential manager. Hope this may be helpful for someone.

https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
https://github.com/Microsoft/Git-Credential-Manager-for-Windows
https://github.com/Microsoft/Git-Credential-Manager-for-Windows/blob/master/Docs/Faq.md#q-i-thought-microsoft-was-maintaining-this-why-does-the-gcm-not-work-as-expected-with-tfs

TFS 2013 Git push VS 2017 Forbidden error-403

unable to access. requested url returned error: 403

I got this error while trying to push my local git repository to on-prem TFS 2013 server. I got same error from VS 2017 and command line.

After spending lot of time on playing around with global config settings, I figured out that the

issue is caused by internal proxy server.

Cleared git credentials from Windows Credentials Manager (as mentioned in https://stackoverflow.com/a/29401455/1319157).

But problem still did not go away. So I added NO_PROXY to environment variables as mentioned in (Only use a proxy for certain git urls/domains?)

NO_PROXY  
my_internal_tfs,localhost,127.0.0.1

This worked like a charm. make sure to close and re-open Visual studio or command prompt after changing environment variables.

Below are some useful links I found about git credential manager. Hope this may be helpful for someone.

https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
https://github.com/Microsoft/Git-Credential-Manager-for-Windows
https://github.com/Microsoft/Git-Credential-Manager-for-Windows/blob/master/Docs/Faq.md#q-i-thought-microsoft-was-maintaining-this-why-does-the-gcm-not-work-as-expected-with-tfs

I have a web application project deployed to Azure. I have added existing project(console application) as Azure Web Job to web app project and configured the web job to run daily.

But now when I publish the web app, i am getting following error
An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden).

Note: The Azure Web App gets published successfully if i configure the web job to run on demand instead of recurring(daily)

Can anyone point what could be the resolution of this error and publish web job successfully?

Thanks in advance

  • azure
  • azure-webjobs

asked May 3, 2016 at 16:46

Anna Jhaveri's user avatar

7

  • any details for the 403 error?

    May 3, 2016 at 18:34

  • No i get this «An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden).» error in the Error window of visual studio. I have pay as you go subscription, would there be anything related to that?

    May 4, 2016 at 5:22

  • Just tried your process but didn’t encounter this issue, the web app was published successfully after adding console application as web job and configured recurring(daily). I find one similar issue here, it suggests change jobRecurrenceFrequency in webjob-publish-settings.json in the console application, I’ve checked after configuring the schedule from my side, the jobRecurrenceFrequency’s value is Day, in case missing anything, I’d suggest you check it from your side.

    May 4, 2016 at 7:17

  • I tried deploying from another computer but results into same error. Just want to mention that Azure Web App project is part of SharePoint provider hosted app to be deployed for Office 365, but i dont think that should be a problem. Below is the details of output window log when error occurs: 2>Publish Succeeded. 2><project location>\packages\Microsoft.Web.WebJobs.Publish.1.0.9\tools\webjobs.console.targets(110,5): Error : An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden).

    May 4, 2016 at 13:28

  • I got the issue resolved, once i got co-administrator privileges on the subscription.

    May 5, 2016 at 13:33

1 Answer

For anyone looking for the answer, I have found a couple of reasons people have observed this error:

  1. You do not have administrator privileges on the subscription you are attempting to publish within.
  2. You are attempting to set a frequency that is below 1 Hour on a free app service (web app).

answered Jun 28, 2016 at 20:11

Keith's user avatar

KeithKeith

5,3113 gold badges34 silver badges50 bronze badges

visual studio error :Unable to start debugging on the web server. The remote server returned an error: (403) Forbidden

Questions : visual studio error :Unable to start debugging on the web server. The remote server returned an error: (403) Forbidden

166

I want to run my application from IIS on my local machine. I created the virtual directory and added the application to it.When I run application from IIS it work properly but when I am trying to run through VS 2015 it throws error.

Total Answers 2

26

Answers 1 : of visual studio error :Unable to start debugging on the web server. The remote server returned an error: (403) Forbidden

Please run your app using «start without debugging» to get much more information in your side.

I met this kind of error message before which was related to the visit/write access.

Running an ASP.net project with an Application Pool with a specific Identity yields «(403) Forbidden»

Answer Link

mRahman

6

Answers 2 : of visual studio error :Unable to start debugging on the web server. The remote server returned an error: (403) Forbidden

I know this is an old post, however, I have had the same problem within vs2019 after switching to IIS debugging. In my case, I was confident that IIS was set up correctly, as another application was attaching fine.

Eventially after reviewing the documentation, I discovered that your web.config may need altering to include the following attribute:

<configuration>
     <system.web>
         <compilation defaultLanguage="VB"
             debug="true"

After setting debug=»true» as stated, the debugger attached fine. Just make sure you’re running VS as Admin!

Other things to consider, that I have found along the way:

  • Make sure you are running VS as Admin
  • Ensure your IIS App pool user is correctly set up (correct read/write permissions). Apparently for .Net 4, this also includes read/write to: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
  • A good old iisreset may also help (start > ‘cmd’ (as admin) > type: iisreset)
  • Some people have found that setting Load User Profile to false also helps. You can find this in IIS Manager > AppPools > [Your app pool] > Advanced Settings > (category) Process Model. The default will be true
  • The MS document also prompts to check your connection (request) limit (also within Advanced Settings > (category) Recycling

References

  • Microsoft’s guide to enabling debugging (where I ultimately found my solution)
  • Microsoft’s troubleshooting guide

A few other things to try

  • IIS error, Unable to start debugging on the webserver
  • Unable to start debugging on the web server. The remote server returned an error: (404) Not Found. Error when starting debug in Visual Studio (includes a screengrab of the required Windows Features — still applicable for 2021)

Answer Link

raja

  • Remove From My Forums
  • Вопрос

  • Hi,

     I’m new to Visual Studio. I was trying to create a new project — ASP.net web Application in location: localhost/projectname

    but Web server reported the following error:

    Unable to create web project located at the URL: http:/localhost/projectname

    HTTP1.1/403 Access Forbidden.

    How to resolve this problem?

    Please Help.

    Thanks

Ответы

  • This error is indicating that you don’t have permissions to put the files where you have specified (in the build options dialog box), — try choosing somewhere that you have read & write access to.

    If you are seeing this message in Internet Explorer (and have gotten beyond the creation step), it could also be the following:

    This error is caused by an access control restriction.  You need to check that the IUSR account has permission to access the files.  Also, if the files are coming from a network share, you should make sure that the IUSR account has (at least) read permissions on the files (and write, etc. if dictated by your particular application needs).

    You can see what the name of the IUSR account is in the internet explorer properties for the site that you are interested in, under IIS manager.

    Just post back if you need information about changing file permissions, etc.

    — Jeremy

Понравилась статья? Поделить с друзьями:
  • Vita shell ps vita ошибка c1 6775 5
  • Visual studio окно ошибок как открыть
  • Vita nostra работа над ошибками скачать торрент fb2
  • Vita nostra работа над ошибками скачать fb2 бесплатно
  • Visual studio обнаружена непредвиденная ошибка при компиляции