当前位置: 动力学知识库 > 问答 > 编程问答 >

C# project properties mistakes

问题描述:

I've played with c# project properties, since this even I've reset the parameters I get those messages in warning window. Is this important for the compiled program ? How can I rectify this ? Because before playing with project properties i was not getting those warnings.

Warning

The referenced assembly "MySql.Data.Entity, Version=6.1.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" has a dependency on "System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which is not listed as part of the "Client" TargetFrameworkSubset. If this dependent reference is required, you may get compilation errors.

Warning

Reference 'System.Data.SqlServerCe' does not allow partially trusted callers.

Warning

Reference 'MySql.Data.Entity' does not allow partially trusted callers.

网友答案:
  1. Go to your project's properties.
  2. Go to the Application tab
  3. From the "Target Framework" dropdown list, select ".Net Framework 3.5" instead of ".Net Framework 3.5 Client Profile".

(Use 4 instead of 3.5 if you're using 4, but from the error it looks like you're using 3.5)

网友答案:

In VS Project Properties window -> Target framework (it shouldn't point to the "Client Profile" distribution of .NET)

网友答案:

Ismail Never change a running system lol. I'm wonderuning why you does not have stored your work on repository.

If you have the default standalone application than you have to check the following:

Select:

  • Publisch tab and then select "The application is available offline as well....".
  • Security tab "Enable clickOnce security settings" must be not hecked!
  • Signing tab "Sign the ClickOne mainfests" must be not checked!
  • Services tab "Enable client applicaiton service" must be not checked!

REBUILD

If you have ASP application or you have some code security or your application need permissions than you have to determine the Permissions for a ClickOnce Application.

http://msdn.microsoft.com/en-us/library/91z17fc9(v=vs.80).aspx

I have this will solve your problem.

网友答案:

Finally I've found the answer of the debility I've did. It's shown in the picture. I've checked the JIT option. Because, when I have used the exe program in another computer as I' did not take a copy of "MySql.Data.dll" my program was not working and was finishing by an exception. In the warning of this exception it was saying about to check the JIT. I've checked it(and I forgot it). After trying all the possiblity I found the solution. But I don't understand why this dll is protected. It must be a part of GNU ??

reason of the problem http://turcguide.com/stack/mysqldll.jpg

分享给朋友:
您可能感兴趣的文章:
随机阅读: