'Could not load type' error when viewing a web app package on IIS - deployment

I am new to Visual Studio 2012 and the Web Deploy 3.0 used to upload a package to IIS. While my application compiles and renders fine on my local development laptop, when I package the web app and then import the packaged zip file to my site on IIS I get error when I try to view the page. When I open IE on my local machine and browse to my site address by IP (_http://1.2.3.4/acme/tools/default.aspx) I get this error "Server Error in '/' Application." and then further below "Parser Error Message: Could not load type 'ACME.Default'". The source error is pointing to my page declaration. It appears that it is having trouble with the 'Inherits="ACME.Default"' , but why? And how to fix?
Many thanks.
Alex

Have you checked your AppPool version versus your app -- typical IIS configurations will still default to 2.0 not 4.0 and this is exactly the sort of error one sees when one has that kind of version mismatch.

Related

WPF Application Crashes when making HTTP request via Facebook's Graph API

I wrote an application that gets my personal info from Facebook using the Graph API. When debugging the application in Visual Studio, everything runs fine. I created an installer using Advanced Installer and installed the program on my system. When I click a button that requires an Graph API request, the program stalls and crashes.
I was just able to debug using Visual Studio and got a FileNotFound exception saying, "Could not load file or assembly 'Facebook, Version=6.0.10.0, Culture=neutral, PublicKeyToken...' or one of its dependencies. The system cannot find the file specified."
Not sure where to go from here, but any helpful tips would be appreciated.
This sounds like your setup package failed to deploy your app file or one of its dependencies. You should check into your installation folder for the deployed files and make sure all of them were successfully deployed/copied on local machine after installation.

HTTP Error 500.19 - Internal Server Error web config .net core web api

Detailed Error Information:
Module:
IIS Web Core
Notification:
BeginRequest
Handler:
Not yet determined
Error Code:
0x8007000d
Config Error:
Config File:
\?\C:\inetpub\wwwroot\webapi\web.config
can you help me?
I had similar challenge with an aspnet.core web application. I took these steps
1. I installed the Windows Server Hosting (.exe) from https://www.microsoft.com/net/download/windows
2. I granted full permission to the application directory
Hope this solved your problem
I had this same error, but different fix in case it helps someone. I thought sure that I had installed the .NET Core Runtime on the server. Turns out it wasn't actually there. Another sign that it's not installed is that in IIS Administrator, at the machine node, the Modules panel does not have the AspNetCoreModule registered (and indeed there was no aspnetcore.dll at \System32\inetsrv). Once I installed the .NET Core Runtime and restarted IIS, the application worked.
Another tip: installing the .NET Core SDK does not install the runtime components, including for IIS hosting. You must install specifically the Runtime to support apps on IIS.

GWT - DevMode: 'gwt.google.com not found' - 'Cannot display web page'

really need some help.
I have been working for the past 3 days trying to get a webpage to open when I run my web based Java-GWT-eclipse program. IE gives me error "Internet Explorer cannot display webpage" and chrome says "The webpage is not available- The server at gwt.google.com can't be found, because the DNS lookup failed."
I have tried this project on multiple other computers with an older eclipse-gwt plugin installed and it works great. All of these computers are dev boxes and do not have internet access. It does, however, have a solid connection to the database (SQL dev works fine).
what i have tried
copied eclipse and gwt plugin files from another dev box and installed. Gave me above error.
deleted/ uninstalled everything and installed newest version eclipse and gwt plugin. I was able to install gwt in eclipse but it could not locate GWT-user.jar file and would not allow me to create project.
Tried #2 again, same problem. Tried again on another computer, same problem.
Applied older version SDK to newer eclipse version. Gave same error as posted above/ #1.
ran wireshark on a working dev and the problem dev and the problem dev box was trying to communicate with google while the good one was going to some local IP address.
messed around with every setting in eclipse and nothing has worked.
What is left to try??? I am going insane.
What is the web page you are trying to open: http://gwt.google.com ?
Does this page load if you write the url directly in the address box of your browser ?
Does Internet work in that computer? try to access google or any other page.
This error is a clear case of a miss-configuration on your PC internet stack:
The server at gwt.google.com can't be found, because the DNS lookup failed.
What does return this command in your console?
nslookup gwt.google.com
EDITED:
After reading your comments I figure out what is happening: your browser has not the gwt-plugin installed, so the first time it connects to a gwt-dev-mode app, the app redirects it to the gwt site to download the plugin and install it.
You have either, connect this computer to the internet to install the plugin the first time it is requested, or download the plugin and install it manually.

how to publish a web service in juddiv3 using eclipse

I am new to Web Services. I was trying to publish a JAX-WS Web Service to apache juddiv3 using eclipse(indigo) Web Service Explorer. But each time I try to publish it following error is produced:
IWAB0135E An unexpected error has occurred.
UDDIException
Message part {urn:uddi-org:api_v2}get_authToken was not recognized. (Does it exist in service WSDL?)
I am using following components:
(i) Eclipse Indigo (EE version).
(ii) juddi-portal-bundle-3.1.2
(iii) Windows 7
While publishing the web service I am using following entries under the 'actions' section of the eclipse 'Web Service Explorer':
Publish=Business
Publication Format=Simple
Publish URL= "http://localhost:8080/juddiv3/services/publish"
UserID = root
Password = Root
Name = Business1
Many times when I press 'Go' button then 'Please wait. The operation is still in progress' message is also displayed even after a long time.
Kindly help me with this issue.
Kindly suggest if there is any other framework other than juddiv3 which could be used to create private UDDIs on local machines.
Thanks
Its a known issue the eclipse plugin. A bug has been filed.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307202
FYI, the jUDDI team is working on adding v2 endpoints to the v3 server. This use case is one of the drivers. It's almost in a working state now and will be released with the 3.2 version of jUDDI.

Create App_Data and register Excel application on ASP.NET deployment? (IIS7)

I am deploying an ASP.NET MVC3 application in IIS7. I already deployed other applications but they never made use of the App_Data folder or any additional component such as the Interop library.
I used the one click deployement and I sue the default application pool. When I launch the application I immediately get an error stating:
[web access] Sorry, an error occurred while processing your request.
[browse from IIS7] Could not find a part of the path 'D:\Data\Apps\OppUpdate\App_Data\Test.xlsx'.
Then I manually added the App_Data folder inside the deployment directory and the application starts regularly. Then when it comes to the taks that uses the Interop library, I get the following error:
[web access] Sorry, an error occurred while processing your request.
[browse from IIS7] Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Is there any way to automatically add the App_Data folder when using 1 click deploy? How can I register the Interop services?
Thanks you,
Francesco
Apparently the problem is linked with Server 2008. The Excel application to be executed on server side triggers the security popup which is now present in MS OS, such as Win 7 and Vista. This is the dialog it appears to the users everytime they run an application and warns them about the damages a not trusted application might bring to their PC.
Obviously when the application, in this case Excel, is run by another application, in this case a web application,the dialog does not popup and the server does not get the authorization to run Excel.
The solution for this appalling BUG in Microsoft IIS & Excel is terrific:
Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop"
Set Full control permissions for directory Desktop (for example in Win7 & IIS 7 & DefaultAppPool set permissions for user "IIS AppPool\DefaultAppPool")
source: http://forums.iis.net/t/1148371.aspx