Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I followed the steps as below.
1) Open the project in VS2013.
2) Clean and Build the project
3) click on Publish website
4) Windows prompts for Profile, Connection, Settings, Preview. Here I entered publish method as File system, Target location as
\\astserv-02\claimform
My local server.
5) Click on Publish

I got success message in VS2013 output window. When I click on the link which we already had. It shows error saying
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.


I am not sure. What went wrong? Could someone help me please? Its Very important.
Posted
Comments
hypermellow 10-Apr-15 11:16am    
Check the destination IIS site is configured to use the same version of the .Net Framework as the source site. The error message suggests it's using a lower version.
sudevsu 10-Apr-15 11:31am    
I am not sure. I did it correct. I didn't use IIS in any step for publishing this. I just clicked on publish website on VS2013. and I gave location as my server (local network).
hypermellow 10-Apr-15 11:37am    
It could be that publish was successful, but your code uses a higher version of the .NET framework than IIS is configured to use. You can check by opening IIS Manager and looking at the application pool settings ... look at selected value for .NET version.
sudevsu 10-Apr-15 11:34am    
Well. I now get a different error.
Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

How can I include MySQL in my publish?
hypermellow 10-Apr-15 11:41am    
I'm not sure about MySql references, but you need to check your using the same version locally that is installed on the server. You should be able to add them to your projects as a reference, they will then get copied to your projects bin folder and included in the publish.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900