VS2013 Pro: debug web site on remote IIS - iis

I have just tried to open a VS2012 project (VB.net web site) in VS 2013 Professional RTM and the "Start Options" dialog does not allow me to enter a custom server.
Under "Start Options" all I see is a disabled text box for "Base URL"
Any idea how I can enable this option so I can enter the address of the web site?

According to Microsoft support, this is currently not possible using VS2013:
The product group will look into the possibility to add this
functionality back. They are looking into adding it back (but it is
not guaranteed) in Update 1.

I found a solution.
You need to open your .sln and edit the file with your custom server like this :
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Project name", "**your custom server url**", "{029F2DEE-E3D8-488E-9719-AA0C4B9DB9BD}"
And set UseIISExpress to false.

Related

Prevent VS2017 from connecting to SQL database

I am working on a ASP.NET MVC project in Visual Studio.
Since today I see am seeing every now and then
a dialog window "Connect to SQL Server" that uses {0} as user name:
I always click Cancel as the user name is just a place holder. It is read - as the rest of the database configuration - from Web.config.
The documentation just states:
This dialog box appears when specific access permission is required
for the current database process.
I believe I do not need this access. How can I prevent Visual Studio from showing this dialog?
PS: I do not want to remove the configuration from Web.config as it is needed by my project.
After a little debugging, it turned out that it was the awesome Meene VS Tools 2017 extension which caused this problem. Specifically, the Enable tasks provider option. Just disabling it helped to get rid of the nasty dialog. Maybe one could also add the Web.config to the Excluded file name patterns to fix the problem. Since I do not use the tasks, I did not try though.

Publish Web wizard does not appear per microsoft's instructions

According to this page, "right-click the project and select Publish (or Publish Web Site for web site projects) to open the Publish Web wizard". What then comes up looks nothing like what is shown on that page, instead I get this:
which looks nothing like the "Publish Web wizard" described on the MS page. I have tried many of the options on that page, none of them lead to asking me to import my host's "publish profile".
Is there another way I can get to the Publish Web wizard so I can import my host's "publish profile"?
Try install this update: http://msdn.microsoft.com/library/jj161045
I had the same problem. This worked for me.
AFAIK, the Publish Web wizard (just like the one that is shown in the link you provided) is only available for Web application projects, not for Web Site projects, whereas the screenshot in your original question is the tool provided in Visual Studio to publish web sites.
In my case, I found it useful to convert the web site project to a web application project following the suggestions given here and explained in detail at the LearnAsp4.com site.
Hope it helps someone :).
Hi download upgrade 5 for VS 2012 from Microsoft site and install the executable. Then VS 2012 will display the publish wizard as shown for web application.
I had an existing publish profile under App_Data that had an invalid path in the pubxml, deleting that or fixing the path fixed it for me. I found this by going to "View > Other Windows > Web Publish Activity" then either select existing or try to create a new profile from the dropdown. This then gave me an error message which "Build > Publish Web App" didn't.

Team Foundation 2010 - Excel server workbook security prompts

When trying to open excel TFS reports from within Visual Studio we keep getting prompted by excel for security credentials. It says it is trying to connect to
'http://myserver.mydomain.com'.
When I open the project portal using the above domain name in a browser and then try to open the report I get the prompt.
When I use just the server name, in other words,
'http://myserver'
to access the report, the security prompt goes away.
How do I configure TFS (or Visual Studio or whatever) so that when opening excel TFS reports it uses just the server name?
I have definitely run into this one before. It's a safety feature for Excel paired with SharePoint Document Libraries.
Essentially, here are the steps to "trust" the site:
Open Excel
Open Excel Options from the Backstage View
Head to Trust Center on right side at the very bottom.
Click "Trust Center Settings"
Click Trusted Locations
There are several things you want to do here next. If you want to trust network locations then click that option to enable it.
If you want to add a new trusted location then click "Add new location..."
Type in the full URL for the new location and then choose the box for "Subfolders of this location are also trusted."
That should do it!
BTW - from my un, you can have your IT department send these settings to all computers on your Active Directory domain through global policies so others don't have to go through these steps. They can also add this site to the Intranet Sites group in Internet Explorer for everyone internally which should help out in other similar scenarios.

Page Not Found Error on SharePoint Sites in TFS

I'm in big trouble here, today i was asked to add a new user to TFS, the first thing I do is adding it to SharePoint, but now every time I tried to enter the project portal (Team Explorer -> right click on project -> Show project portal) I got an page not found error, with every single project, Here are some basic info about the setup:
2 Tier TFS, TFS server, ReportServices and SharePoint are on the same server.
If I try to enter administration portal on this server (cd21vids1 is the tfs server)
http://cd21vids1:17012/ -- I get Directory Listing Denied
http://cd21vids1:17012/default.aspx -- I get the default page, which works OK.
If i enter a project site i get this results (88 is the default port for SharePoint in this server):
http://cd21vids1:88/Sites/Cnbv.Framework/ -- Page not found
http://cd21vids1:88/Sites/Cnbv.Framework/default.aspx -- I get the page but with no styles and the layout is wrong, also i get an error on the "remaining work" report (directory listing denied), the reports that have problems are "Issues List" and "Exit Criteria Status" (Directory Listing Denied on both cases).
Everything else seems to work OK, (builds, check-ins), I hope you can help me out, thanks.
Juan Zamudio
UPDATE: I did some more tests, i get a page not found error in the url
http://cd21vids1:88/Sites/Cnbv.Framework/_styles/core.css
Maybe this is way I get the default page without the correct layout.
UPDATE2: Also when I click the "Windows Sharepoint Services Site Administration" link I get this error:
"The Team Foundation Server could not locate the online Site Administration application for this team project portal in Windows SharePoint Services. The most likely cause of this error is that the language settings on the team project portal do not match the current language of your Visual Studio client. The location of Site Administration is specific to the language of the project portal. Contact the Team Foundation Server administrator for availability information of Site Administration for this project portal. For more information, see the Windows SharePoint Services Administrator's Guide."
Someone changed the language to the server from English US to Spanish MX, I changed the language back to English and restarted the server but no dice (BTW I already had a folder named 2058 in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\" like explained in this post
my SharePoint problem is fixed, here are the details.
Run "SharePoint Product Technologies Configuration Wizard"
1.1. Select do not disconnect from this server farm, click next
1.2. Select No, this machine will continue to host the web site, click next.
1.3 Click Next
Restart IIS
I have had the same problem with the core.css file. I didn't want to use Sharepoint designer to solve it cause it would have unghosted my site!
So I tried this (it works) : on the site administration, go to "master page", and down the page you have a way to redefine the css used for the site. So i put there the url :/_layouts/1036/Styles/core.css (1036= French, so use 1033 if you are site is in english!), and after validation it worked.
The problem is that the page still try to get the core.css from http://MYServeur/_styles/core.css ..and return a 404!
But at least I have my style back. I just post it in case... I still hope a real better solution...
AJ

IIS ASP Caching

I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true
The software instructions point to that article.
The problem i'm having is that the "ASP File Cache section" that's mentioned there does not exist in my IIS dialog...
Am I missing something?
Is there any configuration that'll make it appear?
I'm running IIS 6.0 on W2003 Server Enterprise Edition.
Update 1: I am logged in as the local administrator (the box is not in a domain)
Right click on "Web sites" in IIS manager. Choose Properties->Home directory->Configuration and you'll see "Cache options" tab.
The trick is to click on "Web sites" as opposed to proceeding to specific web site.

Resources