I apologize in advance for the lengthy message but wanted to include as much
information as possible. Any insight/assistance would be appreciated.
The following line of code throws an error when I execute my application
using the output generated from a web deployment project. I have specified
"merge all outputs to a single assembly." If I use the "publish web site"
option, the application works fine. If I run the application within Visual
Studio, everything works fine. If I use a web setup project for deployment,
everything works fine. It is only a problem when executing the output from
the web deployment project.
ProfileCommon pc = Profile.GetProf ile(this.UserNa me);
The web.config file contains the following:
<profile enabled="true"
defaultProvider ="AspNetReadOnl yXmlProfileProv ider">
<providers>
<add name="AspNetRea dOnlyXmlProfile Provider"
type="Framework .Security.ReadO nlyXmlProfilePr ovider, Framework.UI"
description="Re ad-only Xml File-based profile provider"
xmlFileName="~/App_Data/Users.xml"/>
</providers>
<properties>
<add name="FirstName " type="string"/>
<add name="LastName" type="string"/>
<add name="Title" type="string"/>
</properties>
</profile>
The following is the error:
Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Argument NullException: Value cannot be null.
Parameter name: type
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullExc eption: Value cannot be null.
Parameter name: type]
System.Activato r.CreateInstanc e(Type type, Boolean nonPublic) +2797139
System.Web.Prof ile.ProfileBase .CreateMyInstan ce(String username, Boolean
isAuthenticated ) +76
System.Web.Prof ile.ProfileBase .Create(String username, Boolean
isAuthenticated ) +312
System.Web.Http Context.get_Pro file() +89
_Default.labUse rLogin_OnLogged In(Object sender, EventArgs e) +91
System.Web.UI.W ebControls.Logi n.OnLoggedIn(Ev entArgs e) +105
System.Web.UI.W ebControls.Logi n.AttemptLogin( ) +205
System.Web.UI.W ebControls.Logi n.OnBubbleEvent (Object source, EventArgs e)
+99
System.Web.UI.C ontrol.RaiseBub bleEvent(Object source, EventArgs args) +35
System.Web.UI.W ebControls.Butt on.OnCommand(Co mmandEventArgs e) +115
System.Web.UI.W ebControls.Butt on.RaisePostBac kEvent(String eventArgument)
+163
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +7
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +5102 5 3730
I resolved this by unmarking the checkbox “Treat as library component (remove
the App_Code.compil ed file)”.
Hi : i go exactly the same problem. can you please tell me where i can
find this check box ('Treat as library component '). i can't find it on
publish window or project properties.
thanks
eric
We received this exact same message when running our web deployment on a
Windows 2003 Server. The web site communicates with another 2003 server with
SQL Server 2005; it houses the aspnet database. We looked at our deployment
project and had not clicked the checkbox.
Any assistance would be greatly appreciated.
"ea********@gma il.com" wrote: Hi : i go exactly the same problem. can you please tell me where i can find this check box ('Treat as library component '). i can't find it on publish window or project properties.
thanks eric
I was receiving this error when trying to execute the output of a web
deployment project. If you right-click the web deployment project, then
click Property Pages, then select Output Assemblies, the "Treat as library
component" checkbox is underneath the "Merge all outputs to a single
assembly" radio button. Hope this helps.
"ea********@gma il.com" wrote: Hi : i go exactly the same problem. can you please tell me where i can find this check box ('Treat as library component '). i can't find it on publish window or project properties.
thanks eric
Our deployment project was already compiled without the checkbox marked. Can
you think of anything else that was modified on the server or your deployment
project that resolved the issue?
"Lynne" wrote: I was receiving this error when trying to execute the output of a web deployment project. If you right-click the web deployment project, then click Property Pages, then select Output Assemblies, the "Treat as library component" checkbox is underneath the "Merge all outputs to a single assembly" radio button. Hope this helps.
"ea********@gma il.com" wrote:
Hi : i go exactly the same problem. can you please tell me where i can find this check box ('Treat as library component '). i can't find it on publish window or project properties.
thanks eric
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sean |
last post by:
Hi,
I have my application running off my localhost and just transfered it to the production server. And when i ran my application, it came up with a Runtime Error.
The server is an IIS and has SDK already installed.
what are the issues that i have to deal with here
Any inputs.. will be greatly appreciated.
|
by: Dave |
last post by:
I understand that VS.NET is supposed to compile native Win32 apps that
do not require the .Net runtime. If that's the case then there is
something else from the VS200x package that is required.
MSVCR80.DLL and MSVCR80D.DLL are present and accounted for in
Windows\System32. This is something else.
Message says that the application configuration is incorrect. I just
compiled a simple "Hello.cpp" app that exhibits the same behavior so...
|
by: Calavera |
last post by:
Hi,
I have the following line my class
Dim objProfile As ProfileCommon = HttpContext.Current.Profile
When I compile the class I get the following error.
"error BC30002: Type 'ProfileCommon' is not defined."
Does anyone know the correct library to import for this ? I have tried
a bunch of different profile ones but the error remains.
|
by: AMP |
last post by:
Hello,
I have enabled Profiles in the web.config and seems to be working fine (I
can see the auto generated ProfileCommon class including my custom properties
in my \Temporary ASP.NET Files directory and I can see my Provider in the
ProfileManager.Providers ProfileProviderCollection).
BUT when I try to reference the ProfileCommon class in my VS project I get
"ProfileCommon could not be found".
Any ideas??
|
by: John |
last post by:
Hi
I am getting the below error when running one of the aspx webforms. What is
the problem and how can I fix it?
Thanks
Regards
| |
by: spacelabstudio |
last post by:
Hi, I'm observing some weird behavior and have written the following
test program to demonstrate. This works under cygwin/WinXP but not
Gentoo(kernel 2.6):
huh.py
-------------------------------------------
import pty,os,sys
# Fork
( pid, fd ) = pty.fork()
|
by: Phil |
last post by:
I'm trying to use a custom profile provider and I'm receiving this error
message after I deploy a published version of the app. The app works fine
when it is run in source code mode. It works fine if I run the published
version on the same machine it is developed on, but not when I copy the
published version to a different machine. The error goes away if I remove
all of the profile properties from the web config.
CS0433: The type...
|
by: Guy Cohen |
last post by:
Hi all
I have this line:
Dim P As New ProfileCommon()
Which worked until I added more profile items (It worked when I had a single
profile item)
Error = Type 'ProfileCommon' is not defined.
|
by: muriwai |
last post by:
Hi, I have a website which used the following web.config:
------
<profile defaultProvider="SqlProfileProvider">
<add name="SqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"
..../>
<properties>
<clear/>
<add name="ProfileInfo" type="My.Profiles.ProfileInfo"/>
------
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |