Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

My aspnet_regsql.exe is broken setting cache dependency

$
0
0

Hi,

While doing a tutorial on cache dependency I ran into problems.
The error from the debugger was that my database was not setup for cache dependency.

So I searched on the web and found out you could use aspnet_regsql to fix that.

So I executed this from the cmd:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\aspnet_regsql.exe -S localhost\sqlexpress -E -d Pubs -ed

And I got this responce from the prompt:
Enabling the database for SQL cache dependency.
.

Finished.

All looked fine I thought and I runned the app again.

Again the debugger called me back saying I had to setup the table for cache dependency as well.

So I called the prompt again and pasted in another command but it didn't work the prompt gave me:
C:\....aspnet_regsql.exe is not a valid win32 applicaition and in the prompt an: "Access denied"

I thougth how strange so I looked up the exe to start it up manualy.
Again I received the same error. (And a half hour ago the wizard (UI) still worked by doubleclicking the exe file.....)

Close examination of my Windows explorer showed that the exe has been changed 5 minutes ago. (The time I set SQL dependency on the pubs table...)
And to get more spooky the file is now only 0kb large???

So somehow I feel I killed this exe file and I have no clue on how to fix it. Perhaps I should reïnstall the Framework but I'm not sure if that is a wise thing to do.

Someone got a clue?

Thanx.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>