I have an asp.net application that requires some editing of the machine.config file in order to work properly. On my development machine(running windows xp), I edited the machine.config file at the location: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"
This is the line of code I modified, with modifications(adding user/pass):
<processModel autoConfig="true" userName="SYSTEM" password="AutoGenerate">
On the server(running windows server 2003) I made the same changes to the same file at the same location. However, when I debug the solution, it does not work properly(nothing happens and it times out, the same issue I had on my development machine before making these changes to the config file).
I have come down to the fact that my application is not using the machine.config file at the same location on both my machine and the server. To confirm this, I added random numbers to the end of userName and password in both config files. On my machine, the application does not even run after I do this. On the server, it runs and errs out the same way before the random numbers were added.
My question, in short, is how do I figure out what machine.config file the server is actually using and/or how can I set it to use the one at the location mentioned?
It's possible that your server is a 64-bit server, which means it will be in:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727
The 64-bit runtime uses a different machine.config. The basic rules are this:
%WINDIR%\Microsoft.NET\Framework\v1.1.4322
%WINDIR%\Microsoft.NET\Framework\v2.0.50727
%WINDIR%\Microsoft.NET\Framework64\v2.0.50727
%WINDIR%\Microsoft.NET\Framework\v4.0.30319
%WINDIR%\Microsoft.NET\Framework64\v4.0.30319
Which version of ASP.NET you use depends on your ASP.NET Tab (IIS 6) or AppPool (IIS 7+)
x64 vs. x86 depends on the metadata setting W3SVC/AppPools/Enable32BitAppOnWin64
for IIS 6, or the AppPool in IIS 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With