-
January 2nd, 2013, 11:21 AM
#1
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?
-
January 2nd, 2013, 05:27 PM
#2
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
-
January 3rd, 2013, 09:16 AM
#3
Re: Problems running from source code located on a network drive.
-
January 4th, 2013, 01:17 AM
#4
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!
-
January 4th, 2013, 08:31 AM
#5
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.
-
January 4th, 2013, 02:05 PM
#6
Re: Problems running from source code located on a network drive.
ADVANCED Programs and Features - IIS. Install, and reboot. Then add .Net extensions
-
January 4th, 2013, 02:57 PM
#7
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?
-
January 4th, 2013, 11:51 PM
#8
Re: Problems running from source code located on a network drive.
-
January 8th, 2013, 02:18 PM
#9
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?
-
January 8th, 2013, 05:27 PM
#10
Re: Problems running from source code located on a network drive.
Originally Posted by richiebabes
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.
-
January 9th, 2013, 09:56 AM
#11
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?
-
January 10th, 2013, 01:11 AM
#12
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="Data Source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\Northwind.mdf;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" 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>
-
January 10th, 2013, 09:58 AM
#13
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?
-
January 10th, 2013, 09:59 AM
#14
Re: Problems running from source code located on a network drive.
Why can't I delete my own post?
-
January 10th, 2013, 06:43 PM
#15
Re: Problems running from source code located on a network drive.
Ask a moderator, if you have a pretty good reason
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|