babgvant / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

App_Data deleted after removing ELMAH.Xml package #212

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Checkout branch RB-1.2-NuGet
2. Run pack.cmd in the root of the working directory.
3. Launch VS 2010.
4. Select File, then New, then Project, then ASP.NET Web Application (C#).
5. Select the web application project node in the Solution Explorer, then Add 
Library Reference Package.
6. Select Settings.
7. In Available package sources list, add one named ELMAH where Source points 
to the local directory where the packages are located. Click OK.
8. Again, select the web application project node in the Solution Explorer, 
then Add Library Reference Package.
9. In the Add Library Reference Package, select Online on the left and then 
ELMAH.
10. Select the ELMAH.Xml package and click Install.
11. Press F5.
12. When the browser finshes launching the home page, go to the address bar and 
type in the URL to the error log page, as http://www.example.com/elmah.axd.
13. Generate an error by navigating to http://www.example.com/elmah.axd/test.
14. Navigate back to the error log page using the browser's back button and 
verify that the the test error has been logged.
15. Go to the App_Data/Elmah.Errors directory and verify an XML file for the 
error was indeed generated.
16. Again, select the web application project node in the Solution Explorer, 
then Add Library Reference Package.
17. In the Add Library Reference Package, select “Installed packages” on 
the left.
18. Select the ELMAH.Xml package and click Uninstall.

What is the expected output? What do you see instead?

Expected that the App_Data directory contents to be still there. Instead the 
App_Data directory is removed along with all other content that may have been 
there prior to adding the package!

Additional information:

OS: Windows 7 Ultimate
ASP.NET: v4.0
Visual Studio: 2010 SP1
Web Server: ASP.NET Development Server
Revision: r799

Original issue reported on code.google.com by azizatif on 10 Mar 2011 at 11:00

GoogleCodeExporter commented 8 years ago
I've raised this as an issue with the NuGet team 
(http://nuget.codeplex.com/workitem/810).

I've thought of a workaround, but will see what they say before changing what 
I've got!

Original comment by jamesdriscoll71 on 11 Mar 2011 at 2:24

GoogleCodeExporter commented 8 years ago
This has been Accepted as a NuGet bug (http://nuget.codeplex.com/workitem/810).
It has been fixed and should be in the next NuGet release (I'm guessing that's 
1.3).

Original comment by jamesdriscoll71 on 7 Apr 2011 at 4:07