+2 امتیاز

سلام

موقع یک برنامه این خطلا رو میده
ویندوز هم عوض کردم ولی درست نشد

Error while trying to run project:could not Error while trying to run project:could not load file or assembly 'Project.exe' or one of its dependencies.
The module was expected to contain an assembly manifest.or assembly 'Project.exe' or one of its dependencies.
The module was expected to contain an assembly manifest.

2 پاسخ

+2 امتیاز
معمولا دلیلش اینه که در نوشتن کدتان از یک منبع خارجی (References) استفاده شده که الان وجود نداره.
در منوی Project گزینه Show All Files را فعال کنید و در Solution Explorer یک نگاهی به لیست References هایی
بندازید که در پروژه تان ثبت شده.
+2 امتیاز
این مشکل زمانی پیش میاد که manifest فایل یک اسمبلی دچار مشکل شده باشد و در هنگام لود شدن خطا رخ میدهد.

فایل maifest اظلاعات مربوط به داده های اسمبلی را داراست اگر نمیدانید کدام فایل اسمبلی مشکل پیدا کرده کارهای زیر را بکنید.

properties -> [your project name] propertirs -> application

در این صفحه Target FrameWork را تغییر دهید، Bulid کنید.

اگر درست نشد

در همین پنجره از تب Build  مقادیر plat form را بررسی کنید با نوع ساختار ویندوز 32 با 64 بیتی شما تطابق دارد (ممکن است درست نباشد مخصوصا وقتی سورس از کسی میگیرید)

اگر درست نشد حتما یک فایل اسمبلی دچار مشکلی شده که لود نمیشه برای اینکه بفهمید کدوم فایله اینکار ها  رو انجام بدین

در ویندوز :

start->allprograms->Microsoft Visual Studio [2008-10] ->  visual studio tools ->

روی visual studio command prompt راست کلیک کنید و Run as Admin را بزنید

در صفحه command prompt دستور fuslogvm.exe را اجرا کنید
*** Assembly Binder Log Entry  (1/11/2017 @ 2:45:11 PM) ***

The operation failed.
Bind result: hr = 0x80131018. No description available.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Mehdi\Documents\Visual Studio 2010\Projects\ProjectS\ProjectS\bin\Debug\ProjectS.vshost.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = Mehdi-PC\Mehdi
LOG: DisplayName = ProjectS
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: ProjectS | Domain ID: 1
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///c:/users/mehdi/documents/visual studio 2010/Projects/ProjectS/ProjectS/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = ProjectS.vshost.exe
Calling assembly : Microsoft.VisualStudio.HostingProcess.Utilities, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///c:/users/mehdi/documents/visual studio 2010/Projects/ProjectS/ProjectS/bin/Debug/ProjectS.DLL.
LOG: Attempting download of new URL file:///c:/users/mehdi/documents/visual studio 2010/Projects/ProjectS/ProjectS/bin/Debug/ProjectS/ProjectS.DLL.
LOG: Attempting download of new URL file:///c:/users/mehdi/documents/visual studio 2010/Projects/ProjectS/ProjectS/bin/Debug/ProjectS.EXE.
LOG: Assembly download was successful. Attempting setup of file: c:\users\mehdi\documents\visual studio 2010\Projects\ProjectS\ProjectS\bin\Debug\ProjectS.exe
LOG: Entering run-from-source setup phase.
ERR: Error extracting manifest import from file (hr = 0x80131018).
ERR: Run-from-source setup phase failed with hr = 0x80131018.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

توسط (104 امتیاز) 1 4
این  صفحه برام اومد

به نظر تون مشکل از کجاست؟
توسط (104 امتیاز) 1 4
سوال جدید

2,337 سوال

2,871 پاسخ

3,725 دیدگاه

3,920 کاربر

دسته بندی ها

...