I want to hide the controller name from the url. In my home controller there are number of actions like about, contact terms.... Nowe each url display like "http://localhost:1223/home/about","http://localhost:1223/home/contact" and so on. I want to display only the action name in url's like "http://localhost:1223/about". Can any one please help me to solve this.
I've an error when I try to get my developer license with a live ID account.
I just want to develop a Windows 8.1 store app.
First I start Visual Studio 2013, create a new projet Windows 8.1 Universal.
A prompt dialog ask me to loggon with my LiveID (which is an enterprise developer account, paid 75€) then the following error append : "We couldn’t get your developer license for Windows 8.1 - Error 0x8007000D"
Same error with the PowerShell cmdlet : Show-WindowsDeveloperLicenseRegistration
I already searched on differents topics but nothing is helping me.
I really need to activate the license cause the project began last week so I'm late...
Please help me to find a solution.
I am using the following code and it does create a B/W image as desired but it seems to be very slow. IS there a better way to do this? Thanks in advance.
Dim bm AsNew Bitmap(picCanvas.Image)
Dim X AsIntegerDim Y AsIntegerDim clr AsIntegerDim r AsIntegerDim g AsIntegerDim b AsIntegerFor X = 0To bm.Width - 1For Y = 0To bm.Height - 1
clr = (CInt(bm.GetPixel(X, Y).R) + _
bm.GetPixel(X, Y).G + _
bm.GetPixel(X, Y).B) \ 3
bm.SetPixel(X, Y, Color.FromArgb(clr, clr, clr))
r = 255 - bm.GetPixel(X, Y).R
g = 255 - bm.GetPixel(X, Y).G
b = 255 - bm.GetPixel(X, Y).B
bm.SetPixel(X, Y, Color.FromArgb(r, g, b))
picCanvas.Image = bm
You call bm.GetPixel 6 times with exactly the same X and Y values - do it once only and store the result.
Next, you calculate the average of RGB values, set that to the pixel, and call again that GetPixel method, just to substract its value from 255. Do you think the RGB values are different here from each other?
Why don't you just substract the average from 255 before the first SetPixel call (and throw away the second half of the method)?
I am using signtool for verifying the certificate in my application. Before calling signtool i am setting the visual studio variables using batch file "%VS100COMNTOOLS%....\VC\vcvarsall.bat. After this if I call signtool.exe then my build succeeds even if any files has certificate issues (not certified or bad signature)(More clearly we can say that the MSBuild will start a new process for signtool inside and check its return value, in this case though the return value is non-zero, the MSBuild call will not consider that and the last error will not be a non-zero). My issue is, i ported my solution from 2010 to 2013 and currently i am using new MSBuild version. For this i am calling "%VS120COMNTOOLS%....\VC\vcvarsall.bat to set all the VS variables. After calling this batch file the MSBuild engine version set to 12.0, in this case if I call the signtool.exe for a file with bad signature then the MSBuild project file will end with an error, because the signtool.exe will return 1 and as a result the MSBuild project build failed. How can treat the return value of signtool.exe in MSBuild file? How can i manage that return value? Is there any way we can suppress this return value?