Duk
Duk

Reputation: 927

Getting error in visual studion whenver i publish

I formatted my system recently and installed windows 7. so i installed all software again. when after i installed VS it is working fine only. but when i am build / publish it is showing an error. how to resolve this issue?

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Is i have to install something ah? please instruct me?

Upvotes: 1

Views: 516

Answers (1)

Karthik G
Karthik G

Reputation: 1262

Check if the "System.Web.WebPages" dll is available in the solution/project references. If not add it (the required version). clean solution, build again. Publish.

Hope this helps.

Upvotes: 6

Related Questions