Problems running from source code located on a network drive.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: Problems running from source code located on a network drive.

  1. #1
    Join Date
    May 2004
    Posts
    474

    Problems running from source code located on a network drive.

    In order to facilitate backing up of source code developers are working on that they haven't yet checked in to TFS we have decided to check out source code onto a network drive instead of one's local computer. I mapped the network drive on my machine and downloaded all the source code and then opened up the project from the source located on the network drive.

    However my application won't run. I get these errors:

    Failed to start monitoring changes to 'Z:\\...'.

    If I then run the last successful build I get the following error in the browser:

    Server Error in '/' Application.

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'Z:\...'.

    Source Error:


    [No relevant source lines]


    Source File: Z:\...\web.config Line: 0


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456

    I have a feeling the problem is with the web.config file but I can't figure out what that problem is. Can anyone help?

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    Look for differences in your WEB.CONFIG file on the server. (Providing that you did install IIS on the target machine). http://localhost
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    How do I do that?

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    Open http://localhost to see if it works. Then, find the folder (x86 or 64 bit is different) to find the config file...
    Otherwise, follow my other advice, SPECIFICALLY!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    I clicked on http://localhost and it said it couldn't open it. What other advice should I follow specifically? I am really sorry - you've completely lost me.

  6. #6
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    ADVANCED Programs and Features - IIS. Install, and reboot. Then add .Net extensions
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    I am sorry, I have absolutely no clue what you are talking about. What advanced programs and features? What about IIS? Install and reboot what? What .NET extensions?

  8. #8
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  9. #9
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    What the dickens? Why are you asking me to add IIS? I already have it installed!

    Did you even read my question?

  10. #10
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    Quote Originally Posted by richiebabes View Post
    I clicked on http://localhost and it said it couldn't open it. What other advice should I follow specifically? I am really sorry - you've completely lost me.
    IIS works when you follow the advice.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  11. #11
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    Why are you trying to get me to get IIS to work? IIS already works. It was installed ages ago, it works fine.

    Again: did you even read my question? Why can't I run webconfig on my mapped drive?

  12. #12
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    IIS doesn't allow it. You may have different versions of IIS, or NET, or whatever. They are specified in EACH DIFFERENT FILE of web.config. One of your machine, and one of the target. Here's an old one...


    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    
    <configuration>
        <system.web>
          <compilation debug="true" targetFramework="4.5"><assemblies><add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /></assemblies></compilation>
          <httpRuntime targetFramework="4.5" />
        </system.web>
    <connectionStrings><add name="NorthwindEntities" connectionString="metadata=res://*/Northwind.csdl|res://*/Northwind.ssdl|res://*/Northwind.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\Northwind.mdf;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings><system.serviceModel><serviceHostingEnvironment aspNetCompatibilityEnabled="true" /></system.serviceModel>
        <system.webServer>
            <handlers>            
                <add name="svc-ISAPI-4.0-64" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
            </handlers>
        </system.webServer></configuration>
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  13. #13
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    But I am not changing the webconfig file. The webconfig file that works fine when I run the code contained on my local machine does not work when THE EXACT SAME webconfig file is on the mapped network drive. Why should the location of the file make any difference?

    Can I leave the webconfig file on my local drive and have the rest of the code on the mapped drive? How would I make that work?

  14. #14
    Join Date
    May 2004
    Posts
    474

    Re: Problems running from source code located on a network drive.

    Why can't I delete my own post?

  15. #15
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,981

    Re: Problems running from source code located on a network drive.

    Ask a moderator, if you have a pretty good reason
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center