How do I enable parent paths in Visual Studio 2013?

I am converting a classic ASP site to a Visual Studio 2013 MVC. When I run the ASP code inside of the Visual Studio 2013 debugger I get the following error message. How can I enable parent paths in 2013? 
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/prospect/contact/contact_search.asp, line 33
The Include file '../menu_inc/contacts.inc' cannot contain '..' to indicate the parent directory.


I discovered the answer myself.  Here is how I did it.
I opened Task Manager and saw that Visual Studio was running processes of IISExpress for the web server functionality.
I clicked on Start and entered IISExpress to find out where it was installed. To my surprise, but an obvious choice, it was located in documents.
I opened the C:\Users\Mike\Documents\IISExpress\config folder then opened Notepad as an administrator.  I then opened the applicationhost.config file and under the <system.webServer> element there is an <asp> element. I modified it
to read. <asp scriptErrorSentToBrowser="true" enableParentPaths="true">
I then opened by MVC solution and ran the Classic ASP program without any problems.  Everything works!

Similar Messages

  • How to get Crystal Reports Editor in Visual Studio 2013 Preview?

    In Visual Studio 2005, if I double-click a *.RPT file in Solution Explorer, the file opens in the Crystal Reports editor.
    In Visual Studio 2013 Preview, if I double-click a *.RPT file, it opens in Notepad.  How do I get it to use the Crystal Reports editor again, please?
    Thanks and RICKgards
    Rick Raubenheimer

    Hi Rick,
    Since Visual Studio 2013 is still Preview version, I don't think you can find  something like this:
    SAP Crystal Reports, developer version for Microsoft Visual Studio - 2012
    Please notice that you will need to install additional packages for latest VS version, such as Visual Studio 2010 and Visual Studio 2012,
    For more details, please reopen a new case on this forum:
    http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=content~objecttype~objecttype[thread]
    Or contact SAP for support since it is a third party feature to Visual Studio.
    Best regards,
    Barry Wang
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • How do I debug designer code in visual studio 2013

    VS crashes whenever I try and add my custom control to a form. How do I debug this situation.

    Hi trogan,
    If you add a simple custom control, how about the result?
    Actually it is hard for us to find the real solution directly for the VS crashed issue, but we could provide some suggestions to narrow down this issue.
    Like this case I met before:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/75a1c5d1-6baf-4b92-8fc8-7d87be09cbe1/visual-studio-2008-designer-crashes-when-dragging-a-usercontrol-from-toolbox-onto-a-form?forum=visualstudiogeneral
    If possible, you could refer to it even if it is about the VS2008 crash. At least, we would make sure that whether it is your VS or the specific project issue or others. 
    Best Regards,
    Jack 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I connect from mysql to visual studio 2013

    Hi,
    So currently, I have a database in mysql and I need to do the interface in visual studio.
    How do I connect the database to the interface in visual studio? I haven't create the interface yet because I don't know the right coding. Please help me.

    Take a look at the mysql .net connector. 
    http://dev.mysql.com/downloads/connector/net/

  • How can i see the output in Visual Studio 2013

    Below is some code rearrange a array, i want to see the result after it's sorted so i add a loop of cout myself, But after runing the code, nothing happened, i didn't see any result from the widow before it closed, any help?
    #include<iostream>
    const int Red = 1, White = 2, Blue = 3;
    void main()
    int arr[] = { 1, 1, 2, 2, 1, 3, 1, 2, 3, 3, 1, 1, 3, 2, 1, 2, 1, 3, 2, 1, 1, 3, 2, 1, 3, 1, 3, 2, 2, 3, 3, 3, 1, 2, 1, 2, 1, 3, 1, 2, 3, 3, 1, 2, 1, 2, 1, 2, 2, 1 };
    int n = sizeof(arr) / sizeof(int);
    int Insert_Red = 0, Insert_White = 0, i;
    for (int i = 0; i < n;i++)
    if (arr[i]==White)
    arr[i] = arr[Insert_White];
    arr[Insert_White] = White;
    Insert_White++;
    if (arr[i]==Red)
    arr[i] = arr[Insert_White];
    arr[Insert_White] = arr[Insert_Red];
    arr[Insert_Red] = Red;
    Insert_Red++;
    Insert_White++;
    for (int i = 0; i < n; i++)
    std::cout << arr[i];

    i didn't see any result from the widow before it closed
    Other choices which don't require any changes to your code:
    (1) Set a breakpoint at the last closing brace (assuming that there isn't a
    return statement before it - if there is then set the breakpoint on that
    return statement).
    (2) Put the cursor as described in (1) but instead of setting a breakpoint
    use "Run To Cursor" from the menu that pops up when you right-click the
    mouse. (Or use Ctrl-F10)
    (3) Run your program in the IDE using Ctrl-F5 (Run Without Debugging)
    Note that when using these methods, focus *may* remain on the IDE editor. If it
    does then your console window with the output will be a background window. You
    will then need to switch to it manually from the Taskbar, etc.
    Non-related observation:
    Standard C and C ++ require that the main() function return an int. e.g. -
    int main()
    Some compilers will accept void main() so as not to break old code, but new
    code should always return an int.
     - Wayne

  • Adding SQL Server Express to Visual Studio 2013 Pro on Windows 10 Preview

    I have installed VS 2013 Pro on Windows 10. I need to delevop unsing SQL Server Express. Do I download the full SQL Server 2012 Express Advanced (with full text search), or do I need only part of it? I was going to download the SQLEXPRADV_X64_ENU.exe. 
    Is this a good way to go?
    Do I also need to download any other .net frameworks?
    kciNDev

    Hello,
    Please read the following resources:
    http://msdn.microsoft.com/en-us/library/ms233763.aspx
    http://stackoverflow.com/questions/20333518/how-to-create-a-database-in-ms-visual-studio-2013
    http://msdn.microsoft.com/en-us/vstudio/bb643825.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Server Express and Visual Studio 2013

    In February I installed Visual Studio 2013 Professional. Looking in the Control Panel at all my installed programs, I see that I have a bunch of SQL server-related programs loaded, from the 2013 install and also from installs of previous Visual Studio versions.
    I've never done a thing with SQL server express, and am completely clueless about using it. I've already wanted to take a crack at it but it always seemed too daunting, so I backed off. It seems, however, that over the years the integration of SQL Server Express
    with Visual Studio is getting more and more seamless. Here is a list of all the SQL Server-related programs on my computer, with the ones installed automatically from the Visual Studio 2013 install bolded so they'll stand out. What I'm wondering is if I have
    everything I need to use SQL Server Express with Visual Studio 2013:
    Microsoft SQL Server 2005                                                  
    Microsoft Corporation   11/4/2013
    Microsoft SQL Server 2005 Mobile [ENU] De...                     
    Microsoft Corporation   4/29/2007
    Microsoft SQL Server 2008 R2 Data-Tier App...                    
    Microsoft Corporation   1217/2011
    Microsoft SQL Server 2008 R2 Data-Tier App...                    
    Microsoft Corporation   1217/2011
    Microsoft SQL Se1Ver 2008 R2 Management ...                   
    Microsoft Corporation   1217/2011
    Microsoft SQL Server 2008 R2 Transact-SQL ...                    
    Microsoft Corporation   12/7/2011
    Microsoft SQL Server 2012 Command Line ...                 
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Data-Tier App Fr...              
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Express LocalDB                 
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Management Ob...               
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Native Client                        
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Transact-SQL Co...                    
    Microsoft Corporation   9/21/2012
    Microsoft SQL Server 2012 Transact-SQL Ser...            
    Microsoft  Corporation 2/10/2014
    Microsoft SQL Server 2012 T-SQL Language ...             
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server Compact 3.5 Design T...                     
    Microsoft Corporation   2/14/2008
    Microsoft SQL Server Compact 3.5 SP2 ENU                       
    Microsoft Corporation   5/25/2010
    Microsoft SQL Server Compact 4.0SP1 ENU                        
    Microsoft Corporation   9/21/2012
     Microsoft SQL Se1Ver Data Tools - enu (11.1....                 
    Microsoft Corporation   5/19/2013
     Microsoft SQL Server Data Tools - enu (12.0....            
    Microsoft Corporation  2/10/2014
     Microsoft 
    SQL Server Data  Tools Build   Utiliti ...              
    Microsoft Corporation   5/19/2013
     Microsoft 
    SQL Server Data  Tools Build   Utiliti ...         
    Microsoft  Corporation 2/10/2014
     Microsoft SQL Server Database Publishing ...                     
    Microsoft Corporation   2/14/2008
    Microsoft SQL Server Database Publishing ...                      
    Microsoft Corporation   5/25/2010
    Microsoft SQL Server Native Client                                      
    Microsoft Corporation   4/1/2011
    Microsoft SQL Server Setup Support Files (E...                    
    Microsoft Corporation   4/1/2011
    Microsoft SQL Se1Ver System CLR Types                             
    Microsoft Corporation   1217/2011
    Microsoft SQL Server VSS Writer                                         
    Microsoft Corporation   4/1/2011

    Hello,
    Please read the following resources:
    http://msdn.microsoft.com/en-us/library/ms233763.aspx
    http://stackoverflow.com/questions/20333518/how-to-create-a-database-in-ms-visual-studio-2013
    http://msdn.microsoft.com/en-us/vstudio/bb643825.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Crystal Report for Visual Studio 2013

    I read on this forum that Crystal Report is available to be installed for Visual Studio 2013. How do I integrate CRVS into VS IDE you must run the install exe(!)?
    How to get Crystal Reports Editor in Visual Studio 2013 Preview?

    I did face the same error while installing SP9 (at the time of 64 bit runtimes).
    I got this resolved by below steps.
    1. Uninstall SP9 (whole of it)
    2. Install 'Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update' 
    Downloaded http://www.microsoft.com/en-us/download/confirmation.aspx?id=14431
    3. Reinstall SP9.
    See if it works.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • What to do if host wont allow "Enable Parent Paths"?

    Apart from moving host! :o)
    We just moved a site to WebFusion who don't have "Enable
    Parent Paths"
    enabled in the IIS on their Windows servers, nor will they
    allow it.
    Therefore, all of the include file references on the site, to
    files that are
    in a different directory:
    Connections/connNAME.asp
    ...aren't working, producing the following error:
    Server.MapPath() error 'ASP 0175 : 80004005'
    Disallowed Path Characters
    /index.asp, line 2
    The '..' characters are not allowed in the Path parameter for
    the MapPath
    method.
    Line 2 is:
    <!--#include file="../connNAME.asp" -->
    Is there a workaround? WebFusion mentioned something about
    Server.MapPath("..") but I'm not sure how to replace my
    Include file with
    this?
    My major issue is that we have InterAkt extensions on the
    site and these use
    extensive reference to include files in a parent directories
    so WebFusion
    has rendered the InterAkt extensions useless because of the
    refusal to allow
    "Enable Parent Paths".
    Hope someone can help.
    Thanks
    Nath.

    On Sat, 24 Mar 2007 12:55:31 -0000, "tradmusic.com"
    <[email protected]> wrote:
    ><!--#include file="../connNAME.asp" -->
    Change the above (assuming connNAME.asp is in the root
    directory) to:
    <!--#include virtual="/connNAME.asp" -->
    If the file is not in the root directory, adjust as
    necessary.
    Gary

  • How do I put a project using nmake (or other make util) into a visual studio 2013 project?

    I'm not asking how to convert it over to visual studio's internal setup.  I want to use the custom build feature to build the code prior to building the current project so that the library generated will be available to the project.
    Steps I've used I got from
    here:
    Create a win32 dll project.
    Copy the files into a subdirectory under the project.
    In the Solution Explorer, I create a Filter that I then add all of the source, headers and Makefile to.
    I select all of the items in that filter group and right click and select properties.
    In Configuration Properties->General, I change Item Type to Custom Build Tool and click Apply. (In the Visual Studio 2013 community, this sometimes comes up with:
    An error has occured while saving the edited properties listed below:
    One or more values are invalid. Object reference not set to an instance of and object.
    Yeah, that's not cryptic. 9.9.  When that happens, I just click Ok and then click on the parent window, and it will ask me
    Do you want to save the changes you've made to the property page?
    To which I click Yes and it seems to apply it to all the files and I then reopen the property page again.
    I then go to Configuration Properties->Custom Build Tool->General and set
    Command Line to:
    cd subfolder
    nmake
    For Outputs, I set it to subfolder\bin\output-file.lib.
    For Link Objects, I leave it as Yes.
    Clicking on ok and then building gets me the following error:
    LINK : fatal error LNK1104: cannot open file 'subfolder\bin\output-file.lib'.
    Yeah, no kidding, it hasn't been made yet.
    What am I doing wrong? Thanks for your help.
    A
    Adrian

    I was trying to get it to be part of another project, and the information from Specifying Custom Build Tools stated:
    If the Custom
    Build Tool folder does not appear, the file extension of the file you selected is associated with a default tool. For example,
    the default tool for .c and .cpp files is the compiler. To override a default tool setting, in the Configuration
    Properties node, in the General folder,
    in the Item Type property,
    click Custom Build Tool.
    Click Apply and
    the Custom Build Tool node
    is displayed.
    Indicating that what I was trying to accomplish could be done.  However, since this is 3rd party code, this seems to be a cleaner way of doing it.
    Thanks,
    A
    Adrian

  • How do I use infopath 2013 with visual studio 2013 to modify forms with code?

    Dear all,
    I am using sharepoint online and infopath 2013, I wonder how do I edit infopath 2013 forms with visual studio? When I try to edit form code it says  I need visual studio 2012 and some other tools, I installed them and visual studio 2013, I wonder how
    do I get rid of the message and start coding? Can someone provide a detailed procedure of doing so? I am having trouble with creating multiple items with single infopath form with repeating table on sharepoint online. Thanks.
    Timothy

    Hi,
    According to your post, my understanding is that you want to create InfoPath form with code using Visual Studio.
    More information about develop InfoPath form with Visual Studio:
    http://msdn.microsoft.com/en-us/library/office/ee526362(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/aa942693.aspx  
    For the second question, I suggest you can create another post , it will be easier for others to focus on one question in one thread.
    Best regards

  • How to configure a proxy server for Windows Azure Tools in Visual Studio 2013

    Hi Visual Studio/Azure Tools team
    I would like to use the Windows Azure tools in Visual Studio 2013 to manage my Azure Web sites (Server Explorer -> Windows Azure -> Web Sites) from within my corporate network which is secured using a proxy server. Unfortunately, I am not able to use
    the Windows Azure tools since the required HTTPS connection to windows azure is not going through the default configured proxy. Instead, Visual Studio tries directly to connect to port 443 which is blocked by our corporate firewall (and yes: there is no way
    around using our proxy server). Other visual studio features like NuGet, updates, etc. work fine and use the configured proxy server. 
    So my question: How can I configure visual studio respective its Azure tools to use a proxy server instead of a direct connection? I already tried configuring the proxy server within the file devenv.exe.config but this doesn't show any effect for Windows Azure
    tools.
    Regards
    tschaena

    As we have very similar problems I consider the found solution a work arround an existing problem which will not work if corporate FW policy does not allow such changes.
    In my mind, any tools in charge of dealing with some sort of FW protocols should deliver the following information, should make it absolute clear how to setup that the request packages are setup rigth at the first time.
    a) proxy server
    b) proxy port
    c) proxy user
    d) proxy users-password
    e) proxy.auth.Preference="BASIC"
    And for moste tools (including Visual Studio and AZUR Tools) it is absolut unclear
    a) how to setup that on a per tools basis
    b) OR who inherits this information from whom    i.e. use the same as IE does, what if we use FireFox or any other browsers?
    I understand that developers requested to cure such problem areas will often have difficulty to gain all required elemenst used to realy test the solution.
    But I can tell you: I loos more time figthing down the FW setups for my clients. WHat I do at home in a sniff, takes ages to be realised by all the various clients on the market where each has to deliver the same sort of information but actually does not,
    or has it just somewhere, but not in the vicinity of the demanding user.
    Good examples i.e. NetBeans IDE where the Option Menu shows very clearly what information is required to pass through a FW/Proxy; but even there, the hint to start with a BASIC authentication schema is not part of this OPTION menu and must be added a JAVA
    environment value. But at least, it works.
    Sepp

  • How to hide gray borders in Crystal reports Visual Studio 2013

    Hi All,
    I have a web application in ASP.NET 2013.
    I'm using latest developer version of Crystal reports.
    When I run the report, I see gray borders around the actual report.
    This was not the case with Crystal reports in Visual Studio 2005.
    How can I hide these gray borders in Crystal reports ASP.NET Visual studio 2013?
    Please see the attached image for more info.
    Thanks,

    Hi Anurag
    Please see if this KBA will help:
    1344534 - How to change the documentView for a Crystal Report web viewer
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to get standard Windows (7) title bars in Visual Studio 2013 Express?

    With the "title bar" background color changing when active vs inactive like all my other Windows.
    Using Win 7 in "Windows Classic" theme.

    Hi sponge_bob_128,
    >>How to get standard Windows (7) title bars in Visual Studio 2013 Express?
    Based on your issue, could you please tell me more detailed message about your issue.
    For example:
    (1)What did you would like to do in the Visual Studio 2013 Express?
    (2) If you want to develop a program like the "title bar" background color changing when active vs inactive from the VS2013 Express.
    Generally, I know that when we set the theme as "Windows Classic" theme on the Windows 7 and then start two VS windows, it will show an active VS window like the following screen shot.
    To further help you solve this issue, please tell me more detailed message for me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I make Visual Studio 2013 use my dedicated graphics card instead of integrated graphics on my laptop?

    I am using Alienware 13 as a portable workstation. I do game development on Unreal Engine 4 using Visual Studio 2013. The issue I am having is that when I want to debug codes in Visual Studio 2013, it launches Unreal Engine 4 through the debugger and uses
    the integrated graphics card rather than my dedicated graphics card, which is an nVida Geforce 860M.
    When I wanted to change the settings in the NVidia Control Panel, I see this:
    The drop-down menu is grayed out, so I cannot select to change the graphics card to my dedicated card.
    What should I do? How do I make it so that Visual Studio uses my dedicated card? Thanks in advance.

    Hi tom_mai78101,
    Thank you for posting in the MSDN forum.
    It seems that it is not the correct forum for this issue, since this forum is to discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    As you said that you want to change the setting so that Visual Studio uses your dedicated card in NVidia Control Panel, since this NVidia Control Panel is third-party tool, we are not support it. So please post this issue this issue directly
    to this NVidia Control Panel Official website:
    http://www.nvidia.com/object/nvidia-communities.html , you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Can't connect to colleagues' Windows machines

    Since upgrading to Leopard I haven't been able to get files from my colleagues' Windows machines. I can find their machines in the Finder window and connect as a guest, but only the first couple levels of folders are there (For example: I need files

  • Final Cut Pro X sharing and exporting issues?

    Hey! Okay so I made a Wedding video for my cousins wedding a couple of days ago. I want to share it to Facebook. I do everything correctly then it says " Preparing media for share.... " and it's loading. Then it just stops doing that and goes back to

  • I am getting error in an top of Base navigation page while signon....

    Java Exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file: finding basic class PeopleSoft.PeopleCode.Name (2,727) PT_FAV.AddToFav.OnExecute Name:getPTISSID PCPC:12703 Statement:248 Called from:PT_FAV.AddToFav.OnExecute

  • I am unable to install ios8 to an iphone with 8gb storage capacity

    my wifes iphone 5c will not install ios8 even though she has deleted 95% of her storage usage????

  • HOWTO : Computations on total ?

    I've a report with 3 columns two of them are numbers and the third is a computed % of the previous one (I compute the % directly in the query). In my interactive report I define 2 aggregates in order to obtain the sums the first 2 columns. Now I need